CalDataRow.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 CalDataRow.h
00032  */
00033  
00034 #ifndef CalDataRow_CLASS
00035 #define CalDataRow_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::CalDataRowIDL;
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 #include "CCalType.h"
00088 using namespace CalTypeMod;
00089         
00090 
00091         
00092 
00093         
00094 
00095         
00096 
00097         
00098 
00099         
00100 
00101         
00102 
00103         
00104 
00105         
00106 #include "CScanIntent.h"
00107 using namespace ScanIntentMod;
00108         
00109 
00110         
00111 
00112         
00113 #include "CAssociatedCalNature.h"
00114 using namespace AssociatedCalNatureMod;
00115         
00116 
00117         
00118 #include "CCalDataOrigin.h"
00119 using namespace CalDataOriginMod;
00120         
00121 
00122 
00123 
00124 using asdm::Angle;
00125 using asdm::AngularRate;
00126 using asdm::ArrayTime;
00127 using asdm::Complex;
00128 using asdm::Entity;
00129 using asdm::EntityId;
00130 using asdm::EntityRef;
00131 using asdm::Flux;
00132 using asdm::Frequency;
00133 using asdm::Humidity;
00134 using asdm::Interval;
00135 using asdm::Length;
00136 using asdm::Pressure;
00137 using asdm::Speed;
00138 using asdm::Tag;
00139 using asdm::Temperature;
00140 using asdm::ConversionException;
00141 using asdm::NoSuchRow;
00142 using asdm::IllegalAccessException;
00143 
00144 /*\file CalData.h
00145     \brief Generated from model's revision "1.41", branch "HEAD"
00146 */
00147 
00148 namespace asdm {
00149 
00150 //class asdm::CalDataTable;
00151 
00152         
00153 
00160 class CalDataRow {
00161 friend class asdm::CalDataTable;
00162 
00163 public:
00164 
00165         virtual ~CalDataRow();
00166 
00170         CalDataTable &getTable() const;
00171         
00172 #ifndef WITHOUT_ACS
00173 
00177         CalDataRowIDL *toIDL() const;
00178 #endif
00179         
00180 #ifndef WITHOUT_ACS
00181 
00185         void setFromIDL (CalDataRowIDL x) throw(ConversionException);
00186 #endif
00187         
00192         string toXML() const;
00193 
00199         void setFromXML (string rowDoc) throw(ConversionException);
00200         
00202         // Intrinsic Table Attributes //
00204         
00205         
00206         // ===> Attribute calDataId
00207         
00208         
00209         
00210 
00211         
00216         Tag getCalDataId() const;
00217         
00218  
00219         
00220         
00221         
00222         
00223 
00224 
00225         
00226         // ===> Attribute numScan
00227         
00228         
00229         
00230 
00231         
00236         int getNumScan() const;
00237         
00238  
00239         
00240         
00246         void setNumScan (int numScan);
00247                 
00248         
00249         
00250         
00251 
00252 
00253         
00254         // ===> Attribute frequencyGroup, which is optional
00255         
00256         
00257         
00262         bool isFrequencyGroupExists() const;
00263         
00264 
00265         
00271         int getFrequencyGroup() const throw(IllegalAccessException);
00272         
00273  
00274         
00275         
00281         void setFrequencyGroup (int frequencyGroup);
00282                 
00283         
00284         
00285         
00289         void clearFrequencyGroup ();
00290         
00291 
00292 
00293         
00294         // ===> Attribute scanSet
00295         
00296         
00297         
00298 
00299         
00304         vector<int > getScanSet() const;
00305         
00306  
00307         
00308         
00314         void setScanSet (vector<int > scanSet);
00315                 
00316         
00317         
00318         
00319 
00320 
00321         
00322         // ===> Attribute calType
00323         
00324         
00325         
00326 
00327         
00332         CalType getCalType() const;
00333         
00334  
00335         
00336         
00342         void setCalType (CalType calType);
00343                 
00344         
00345         
00346         
00347 
00348 
00349         
00350         // ===> Attribute freqGroupName, which is optional
00351         
00352         
00353         
00358         bool isFreqGroupNameExists() const;
00359         
00360 
00361         
00367         string getFreqGroupName() const throw(IllegalAccessException);
00368         
00369  
00370         
00371         
00377         void setFreqGroupName (string freqGroupName);
00378                 
00379         
00380         
00381         
00385         void clearFreqGroupName ();
00386         
00387 
00388 
00389         
00390         // ===> Attribute fieldName, which is optional
00391         
00392         
00393         
00398         bool isFieldNameExists() const;
00399         
00400 
00401         
00407         string getFieldName() const throw(IllegalAccessException);
00408         
00409  
00410         
00411         
00417         void setFieldName (string fieldName);
00418                 
00419         
00420         
00421         
00425         void clearFieldName ();
00426         
00427 
00428 
00429         
00430         // ===> Attribute fieldCode, which is optional
00431         
00432         
00433         
00438         bool isFieldCodeExists() const;
00439         
00440 
00441         
00447         vector<string > getFieldCode() const throw(IllegalAccessException);
00448         
00449  
00450         
00451         
00457         void setFieldCode (vector<string > fieldCode);
00458                 
00459         
00460         
00461         
00465         void clearFieldCode ();
00466         
00467 
00468 
00469         
00470         // ===> Attribute startTimeObserved
00471         
00472         
00473         
00474 
00475         
00480         ArrayTime getStartTimeObserved() const;
00481         
00482  
00483         
00484         
00490         void setStartTimeObserved (ArrayTime startTimeObserved);
00491                 
00492         
00493         
00494         
00495 
00496 
00497         
00498         // ===> Attribute endTimeObserved
00499         
00500         
00501         
00502 
00503         
00508         ArrayTime getEndTimeObserved() const;
00509         
00510  
00511         
00512         
00518         void setEndTimeObserved (ArrayTime endTimeObserved);
00519                 
00520         
00521         
00522         
00523 
00524 
00525         
00526         // ===> Attribute sourceName, which is optional
00527         
00528         
00529         
00534         bool isSourceNameExists() const;
00535         
00536 
00537         
00543         vector<string > getSourceName() const throw(IllegalAccessException);
00544         
00545  
00546         
00547         
00553         void setSourceName (vector<string > sourceName);
00554                 
00555         
00556         
00557         
00561         void clearSourceName ();
00562         
00563 
00564 
00565         
00566         // ===> Attribute sourceCode, which is optional
00567         
00568         
00569         
00574         bool isSourceCodeExists() const;
00575         
00576 
00577         
00583         vector<string > getSourceCode() const throw(IllegalAccessException);
00584         
00585  
00586         
00587         
00593         void setSourceCode (vector<string > sourceCode);
00594                 
00595         
00596         
00597         
00601         void clearSourceCode ();
00602         
00603 
00604 
00605         
00606         // ===> Attribute scanIntent, which is optional
00607         
00608         
00609         
00614         bool isScanIntentExists() const;
00615         
00616 
00617         
00623         vector<ScanIntent > getScanIntent() const throw(IllegalAccessException);
00624         
00625  
00626         
00627         
00633         void setScanIntent (vector<ScanIntent > scanIntent);
00634                 
00635         
00636         
00637         
00641         void clearScanIntent ();
00642         
00643 
00644 
00645         
00646         // ===> Attribute assocCalDataId, which is optional
00647         
00648         
00649         
00654         bool isAssocCalDataIdExists() const;
00655         
00656 
00657         
00663         Tag getAssocCalDataId() const throw(IllegalAccessException);
00664         
00665  
00666         
00667         
00673         void setAssocCalDataId (Tag assocCalDataId);
00674                 
00675         
00676         
00677         
00681         void clearAssocCalDataId ();
00682         
00683 
00684 
00685         
00686         // ===> Attribute assocCalNature, which is optional
00687         
00688         
00689         
00694         bool isAssocCalNatureExists() const;
00695         
00696 
00697         
00703         AssociatedCalNature getAssocCalNature() const throw(IllegalAccessException);
00704         
00705  
00706         
00707         
00713         void setAssocCalNature (AssociatedCalNature assocCalNature);
00714                 
00715         
00716         
00717         
00721         void clearAssocCalNature ();
00722         
00723 
00724 
00725         
00726         // ===> Attribute calDataType
00727         
00728         
00729         
00730 
00731         
00736         CalDataOrigin getCalDataType() const;
00737         
00738  
00739         
00740         
00746         void setCalDataType (CalDataOrigin calDataType);
00747                 
00748         
00749         
00750         
00751 
00752 
00754         // Extrinsic Table Attributes //
00756         
00758         // Links //
00760         
00761         
00762         
00763         
00768         bool compareNoAutoInc(int numScan, vector<int > scanSet, CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOrigin calDataType);
00769         
00770         
00771 
00772         
00773         bool compareRequiredValue(int numScan, vector<int > scanSet, CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOrigin calDataType); 
00774                  
00775         
00784         bool equalByRequiredValue(CalDataRow* x) ;
00785 
00786 private:
00790         CalDataTable &table;
00794         bool hasBeenAdded;
00795 
00796         // This method is used by the Table class when this row is added to the table.
00797         void isAdded();
00798 
00799 
00808         CalDataRow (CalDataTable &table);
00809 
00827          CalDataRow (CalDataTable &table, CalDataRow &row);
00828                 
00830         // Intrinsic Table Attributes //
00832         
00833         
00834         // ===> Attribute calDataId
00835         
00836         
00837 
00838         Tag calDataId;
00839 
00840         
00841         
00842         
00849         void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00850                 
00851         
00852 
00853         
00854         // ===> Attribute numScan
00855         
00856         
00857 
00858         int numScan;
00859 
00860         
00861         
00862         
00863 
00864         
00865         // ===> Attribute frequencyGroup, which is optional
00866         
00867         
00868         bool frequencyGroupExists;
00869         
00870 
00871         int frequencyGroup;
00872 
00873         
00874         
00875         
00876 
00877         
00878         // ===> Attribute scanSet
00879         
00880         
00881 
00882         vector<int > scanSet;
00883 
00884         
00885         
00886         
00887 
00888         
00889         // ===> Attribute calType
00890         
00891         
00892 
00893         CalType calType;
00894 
00895         
00896         
00897         
00898 
00899         
00900         // ===> Attribute freqGroupName, which is optional
00901         
00902         
00903         bool freqGroupNameExists;
00904         
00905 
00906         string freqGroupName;
00907 
00908         
00909         
00910         
00911 
00912         
00913         // ===> Attribute fieldName, which is optional
00914         
00915         
00916         bool fieldNameExists;
00917         
00918 
00919         string fieldName;
00920 
00921         
00922         
00923         
00924 
00925         
00926         // ===> Attribute fieldCode, which is optional
00927         
00928         
00929         bool fieldCodeExists;
00930         
00931 
00932         vector<string > fieldCode;
00933 
00934         
00935         
00936         
00937 
00938         
00939         // ===> Attribute startTimeObserved
00940         
00941         
00942 
00943         ArrayTime startTimeObserved;
00944 
00945         
00946         
00947         
00948 
00949         
00950         // ===> Attribute endTimeObserved
00951         
00952         
00953 
00954         ArrayTime endTimeObserved;
00955 
00956         
00957         
00958         
00959 
00960         
00961         // ===> Attribute sourceName, which is optional
00962         
00963         
00964         bool sourceNameExists;
00965         
00966 
00967         vector<string > sourceName;
00968 
00969         
00970         
00971         
00972 
00973         
00974         // ===> Attribute sourceCode, which is optional
00975         
00976         
00977         bool sourceCodeExists;
00978         
00979 
00980         vector<string > sourceCode;
00981 
00982         
00983         
00984         
00985 
00986         
00987         // ===> Attribute scanIntent, which is optional
00988         
00989         
00990         bool scanIntentExists;
00991         
00992 
00993         vector<ScanIntent > scanIntent;
00994 
00995         
00996         
00997         
00998 
00999         
01000         // ===> Attribute assocCalDataId, which is optional
01001         
01002         
01003         bool assocCalDataIdExists;
01004         
01005 
01006         Tag assocCalDataId;
01007 
01008         
01009         
01010         
01011 
01012         
01013         // ===> Attribute assocCalNature, which is optional
01014         
01015         
01016         bool assocCalNatureExists;
01017         
01018 
01019         AssociatedCalNature assocCalNature;
01020 
01021         
01022         
01023         
01024 
01025         
01026         // ===> Attribute calDataType
01027         
01028         
01029 
01030         CalDataOrigin calDataType;
01031 
01032         
01033         
01034         
01035 
01037         // Extrinsic Table Attributes //
01039         
01041         // Links //
01043         
01044 
01045 };
01046 
01047 } // End namespace asdm
01048 
01049 #endif /* CalData_CLASS */

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