PointingModelRow.h

00001 
00002 /*
00003  * ALMA - Atacama Large Millimeter Array
00004  * (c) European Southern Observatory, 2002
00005  * (c) Associated Universities Inc., 2002
00006  * Copyright by ESO (in the framework of the ALMA collaboration),
00007  * Copyright by AUI (in the framework of the ALMA collaboration),
00008  * All rights reserved.
00009  * 
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  * 
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY, without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  * 
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00023  * MA 02111-1307  USA
00024  *
00025  * Warning!
00026  *  -------------------------------------------------------------------- 
00027  * | This is generated code!  Do not modify this file.                  |
00028  * | If you do, all changes will be lost when the file is re-generated. |
00029  *  --------------------------------------------------------------------
00030  *
00031  * File PointingModelRow.h
00032  */
00033  
00034 #ifndef PointingModelRow_CLASS
00035 #define PointingModelRow_CLASS
00036 
00037 #include <vector>
00038 #include <string>
00039 #include <set>
00040 using std::vector;
00041 using std::string;
00042 using std::set;
00043 
00044 #ifndef WITHOUT_ACS
00045 #include <asdmIDLC.h>
00046 using asdmIDL::PointingModelRowIDL;
00047 #endif
00048 
00049 #include <Angle.h>
00050 #include <AngularRate.h>
00051 #include <ArrayTime.h>
00052 #include <ArrayTimeInterval.h>
00053 #include <Complex.h>
00054 #include <Entity.h>
00055 #include <EntityId.h>
00056 #include <EntityRef.h>
00057 #include <Flux.h>
00058 #include <Frequency.h>
00059 #include <Humidity.h>
00060 #include <Interval.h>
00061 #include <Length.h>
00062 #include <Pressure.h>
00063 #include <Speed.h>
00064 #include <Tag.h>
00065 #include <Temperature.h>
00066 #include <ConversionException.h>
00067 #include <NoSuchRow.h>
00068 #include <IllegalAccessException.h>
00069 
00070 /*
00071 #include <Enumerations.h>
00072 using namespace enumerations;
00073  */
00074 
00075 
00076 
00077 
00078         
00079 
00080         
00081 
00082         
00083 
00084         
00085 
00086         
00087 
00088         
00089 
00090 
00091 
00092 using asdm::Angle;
00093 using asdm::AngularRate;
00094 using asdm::ArrayTime;
00095 using asdm::Complex;
00096 using asdm::Entity;
00097 using asdm::EntityId;
00098 using asdm::EntityRef;
00099 using asdm::Flux;
00100 using asdm::Frequency;
00101 using asdm::Humidity;
00102 using asdm::Interval;
00103 using asdm::Length;
00104 using asdm::Pressure;
00105 using asdm::Speed;
00106 using asdm::Tag;
00107 using asdm::Temperature;
00108 using asdm::ConversionException;
00109 using asdm::NoSuchRow;
00110 using asdm::IllegalAccessException;
00111 
00112 /*\file PointingModel.h
00113     \brief Generated from model's revision "1.41", branch "HEAD"
00114 */
00115 
00116 namespace asdm {
00117 
00118 //class asdm::PointingModelTable;
00119 
00120 
00121 // class asdm::AntennaRow;
00122 class AntennaRow;
00123         
00124 
00131 class PointingModelRow {
00132 friend class asdm::PointingModelTable;
00133 
00134 public:
00135 
00136         virtual ~PointingModelRow();
00137 
00141         PointingModelTable &getTable() const;
00142         
00143 #ifndef WITHOUT_ACS
00144 
00148         PointingModelRowIDL *toIDL() const;
00149 #endif
00150         
00151 #ifndef WITHOUT_ACS
00152 
00156         void setFromIDL (PointingModelRowIDL x) throw(ConversionException);
00157 #endif
00158         
00163         string toXML() const;
00164 
00170         void setFromXML (string rowDoc) throw(ConversionException);
00171         
00173         // Intrinsic Table Attributes //
00175         
00176         
00177         // ===> Attribute pointingModelId
00178         
00179         
00180         
00181 
00182         
00187         int getPointingModelId() const;
00188         
00189  
00190         
00191         
00198         void setPointingModelId (int pointingModelId) throw(IllegalAccessException);
00199                 
00200         
00201         
00202         
00203 
00204 
00205         
00206         // ===> Attribute numCoeff
00207         
00208         
00209         
00210 
00211         
00216         int getNumCoeff() const;
00217         
00218  
00219         
00220         
00226         void setNumCoeff (int numCoeff);
00227                 
00228         
00229         
00230         
00231 
00232 
00233         
00234         // ===> Attribute coeffName
00235         
00236         
00237         
00238 
00239         
00244         vector<string > getCoeffName() const;
00245         
00246  
00247         
00248         
00254         void setCoeffName (vector<string > coeffName);
00255                 
00256         
00257         
00258         
00259 
00260 
00261         
00262         // ===> Attribute coeffVal
00263         
00264         
00265         
00266 
00267         
00272         vector<float > getCoeffVal() const;
00273         
00274  
00275         
00276         
00282         void setCoeffVal (vector<float > coeffVal);
00283                 
00284         
00285         
00286         
00287 
00288 
00289         
00290         // ===> Attribute numFormula, which is optional
00291         
00292         
00293         
00298         bool isNumFormulaExists() const;
00299         
00300 
00301         
00307         int getNumFormula() const throw(IllegalAccessException);
00308         
00309  
00310         
00311         
00317         void setNumFormula (int numFormula);
00318                 
00319         
00320         
00321         
00325         void clearNumFormula ();
00326         
00327 
00328 
00329         
00330         // ===> Attribute coeffFormula, which is optional
00331         
00332         
00333         
00338         bool isCoeffFormulaExists() const;
00339         
00340 
00341         
00347         vector<string > getCoeffFormula() const throw(IllegalAccessException);
00348         
00349  
00350         
00351         
00357         void setCoeffFormula (vector<string > coeffFormula);
00358                 
00359         
00360         
00361         
00365         void clearCoeffFormula ();
00366         
00367 
00368 
00370         // Extrinsic Table Attributes //
00372         
00373         
00374         // ===> Attribute antennaId
00375         
00376         
00377         
00378 
00379         
00384         Tag getAntennaId() const;
00385         
00386  
00387         
00388         
00395         void setAntennaId (Tag antennaId) throw(IllegalAccessException);
00396                 
00397         
00398         
00399         
00400 
00401 
00403         // Links //
00405         
00406         
00407 
00408         
00409                 
00416          AntennaRow* getAntennaUsingAntennaId();
00417          
00418 
00419         
00420 
00421         
00422         
00423         
00428         bool compareNoAutoInc(Tag antennaId, int pointingModelId, int numCoeff, vector<string > coeffName, vector<float > coeffVal);
00429         
00430         
00431 
00432         
00433         bool compareRequiredValue(int numCoeff, vector<string > coeffName, vector<float > coeffVal); 
00434                  
00435         
00444         bool equalByRequiredValue(PointingModelRow* x) ;
00445 
00446 private:
00450         PointingModelTable &table;
00454         bool hasBeenAdded;
00455 
00456         // This method is used by the Table class when this row is added to the table.
00457         void isAdded();
00458 
00459 
00468         PointingModelRow (PointingModelTable &table);
00469 
00487          PointingModelRow (PointingModelTable &table, PointingModelRow &row);
00488                 
00490         // Intrinsic Table Attributes //
00492         
00493         
00494         // ===> Attribute pointingModelId
00495         
00496         
00497 
00498         int pointingModelId;
00499 
00500         
00501         
00502         
00503 
00504         
00505         // ===> Attribute numCoeff
00506         
00507         
00508 
00509         int numCoeff;
00510 
00511         
00512         
00513         
00514 
00515         
00516         // ===> Attribute coeffName
00517         
00518         
00519 
00520         vector<string > coeffName;
00521 
00522         
00523         
00524         
00525 
00526         
00527         // ===> Attribute coeffVal
00528         
00529         
00530 
00531         vector<float > coeffVal;
00532 
00533         
00534         
00535         
00536 
00537         
00538         // ===> Attribute numFormula, which is optional
00539         
00540         
00541         bool numFormulaExists;
00542         
00543 
00544         int numFormula;
00545 
00546         
00547         
00548         
00549 
00550         
00551         // ===> Attribute coeffFormula, which is optional
00552         
00553         
00554         bool coeffFormulaExists;
00555         
00556 
00557         vector<string > coeffFormula;
00558 
00559         
00560         
00561         
00562 
00564         // Extrinsic Table Attributes //
00566         
00567         
00568         // ===> Attribute antennaId
00569         
00570         
00571 
00572         Tag antennaId;
00573 
00574         
00575         
00576         
00577 
00579         // Links //
00581         
00582         
00583                 
00584 
00585          
00586 
00587         
00588 
00589 
00590 };
00591 
00592 } // End namespace asdm
00593 
00594 #endif /* PointingModel_CLASS */

Generated on Thu Nov 29 16:46:46 2007 for ASDM C++ Implementation by  doxygen 1.5.1