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.46", 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 00248 void setNumScan (int numScan); 00249 00250 00251 00252 00253 00254 00255 00256 // ===> Attribute frequencyGroup, which is optional 00257 00258 00259 00264 bool isFrequencyGroupExists() const; 00265 00266 00267 00273 int getFrequencyGroup() const throw(IllegalAccessException); 00274 00275 00276 00277 00284 void setFrequencyGroup (int frequencyGroup); 00285 00286 00287 00288 00292 void clearFrequencyGroup (); 00293 00294 00295 00296 00297 // ===> Attribute scanSet 00298 00299 00300 00301 00302 00307 vector<int > getScanSet() const; 00308 00309 00310 00311 00319 void setScanSet (vector<int > scanSet); 00320 00321 00322 00323 00324 00325 00326 00327 // ===> Attribute calType 00328 00329 00330 00331 00332 00337 CalTypeMod::CalType getCalType() const; 00338 00339 00340 00341 00349 void setCalType (CalTypeMod::CalType calType); 00350 00351 00352 00353 00354 00355 00356 00357 // ===> Attribute freqGroupName, which is optional 00358 00359 00360 00365 bool isFreqGroupNameExists() const; 00366 00367 00368 00374 string getFreqGroupName() const throw(IllegalAccessException); 00375 00376 00377 00378 00385 void setFreqGroupName (string freqGroupName); 00386 00387 00388 00389 00393 void clearFreqGroupName (); 00394 00395 00396 00397 00398 // ===> Attribute fieldName, which is optional 00399 00400 00401 00406 bool isFieldNameExists() const; 00407 00408 00409 00415 string getFieldName() const throw(IllegalAccessException); 00416 00417 00418 00419 00426 void setFieldName (string fieldName); 00427 00428 00429 00430 00434 void clearFieldName (); 00435 00436 00437 00438 00439 // ===> Attribute fieldCode, which is optional 00440 00441 00442 00447 bool isFieldCodeExists() const; 00448 00449 00450 00456 vector<string > getFieldCode() const throw(IllegalAccessException); 00457 00458 00459 00460 00467 void setFieldCode (vector<string > fieldCode); 00468 00469 00470 00471 00475 void clearFieldCode (); 00476 00477 00478 00479 00480 // ===> Attribute startTimeObserved 00481 00482 00483 00484 00485 00490 ArrayTime getStartTimeObserved() const; 00491 00492 00493 00494 00502 void setStartTimeObserved (ArrayTime startTimeObserved); 00503 00504 00505 00506 00507 00508 00509 00510 // ===> Attribute endTimeObserved 00511 00512 00513 00514 00515 00520 ArrayTime getEndTimeObserved() const; 00521 00522 00523 00524 00532 void setEndTimeObserved (ArrayTime endTimeObserved); 00533 00534 00535 00536 00537 00538 00539 00540 // ===> Attribute sourceName, which is optional 00541 00542 00543 00548 bool isSourceNameExists() const; 00549 00550 00551 00557 vector<string > getSourceName() const throw(IllegalAccessException); 00558 00559 00560 00561 00568 void setSourceName (vector<string > sourceName); 00569 00570 00571 00572 00576 void clearSourceName (); 00577 00578 00579 00580 00581 // ===> Attribute sourceCode, which is optional 00582 00583 00584 00589 bool isSourceCodeExists() const; 00590 00591 00592 00598 vector<string > getSourceCode() const throw(IllegalAccessException); 00599 00600 00601 00602 00609 void setSourceCode (vector<string > sourceCode); 00610 00611 00612 00613 00617 void clearSourceCode (); 00618 00619 00620 00621 00622 // ===> Attribute scanIntent, which is optional 00623 00624 00625 00630 bool isScanIntentExists() const; 00631 00632 00633 00639 vector<ScanIntentMod::ScanIntent > getScanIntent() const throw(IllegalAccessException); 00640 00641 00642 00643 00650 void setScanIntent (vector<ScanIntentMod::ScanIntent > scanIntent); 00651 00652 00653 00654 00658 void clearScanIntent (); 00659 00660 00661 00662 00663 // ===> Attribute assocCalDataId, which is optional 00664 00665 00666 00671 bool isAssocCalDataIdExists() const; 00672 00673 00674 00680 Tag getAssocCalDataId() const throw(IllegalAccessException); 00681 00682 00683 00684 00691 void setAssocCalDataId (Tag assocCalDataId); 00692 00693 00694 00695 00699 void clearAssocCalDataId (); 00700 00701 00702 00703 00704 // ===> Attribute assocCalNature, which is optional 00705 00706 00707 00712 bool isAssocCalNatureExists() const; 00713 00714 00715 00721 AssociatedCalNatureMod::AssociatedCalNature getAssocCalNature() const throw(IllegalAccessException); 00722 00723 00724 00725 00732 void setAssocCalNature (AssociatedCalNatureMod::AssociatedCalNature assocCalNature); 00733 00734 00735 00736 00740 void clearAssocCalNature (); 00741 00742 00743 00744 00745 // ===> Attribute calDataType 00746 00747 00748 00749 00750 00755 CalDataOriginMod::CalDataOrigin getCalDataType() const; 00756 00757 00758 00759 00767 void setCalDataType (CalDataOriginMod::CalDataOrigin calDataType); 00768 00769 00770 00771 00772 00773 00775 // Extrinsic Table Attributes // 00777 00779 // Links // 00781 00782 00783 00784 00789 bool compareNoAutoInc(int numScan, vector<int > scanSet, CalTypeMod::CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOriginMod::CalDataOrigin calDataType); 00790 00791 00792 00793 00794 bool compareRequiredValue(int numScan, vector<int > scanSet, CalTypeMod::CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOriginMod::CalDataOrigin calDataType); 00795 00796 00805 bool equalByRequiredValue(CalDataRow* x) ; 00806 00807 private: 00811 CalDataTable &table; 00815 bool hasBeenAdded; 00816 00817 // This method is used by the Table class when this row is added to the table. 00818 void isAdded(); 00819 00820 00829 CalDataRow (CalDataTable &table); 00830 00848 CalDataRow (CalDataTable &table, CalDataRow &row); 00849 00851 // Intrinsic Table Attributes // 00853 00854 00855 // ===> Attribute calDataId 00856 00857 00858 00859 Tag calDataId; 00860 00861 00862 00863 00873 void setCalDataId (Tag calDataId); 00874 00875 00876 00877 00878 // ===> Attribute numScan 00879 00880 00881 00882 int numScan; 00883 00884 00885 00886 00887 00888 00889 // ===> Attribute frequencyGroup, which is optional 00890 00891 00892 bool frequencyGroupExists; 00893 00894 00895 int frequencyGroup; 00896 00897 00898 00899 00900 00901 00902 // ===> Attribute scanSet 00903 00904 00905 00906 vector<int > scanSet; 00907 00908 00909 00910 00911 00912 00913 // ===> Attribute calType 00914 00915 00916 00917 CalTypeMod::CalType calType; 00918 00919 00920 00921 00922 00923 00924 // ===> Attribute freqGroupName, which is optional 00925 00926 00927 bool freqGroupNameExists; 00928 00929 00930 string freqGroupName; 00931 00932 00933 00934 00935 00936 00937 // ===> Attribute fieldName, which is optional 00938 00939 00940 bool fieldNameExists; 00941 00942 00943 string fieldName; 00944 00945 00946 00947 00948 00949 00950 // ===> Attribute fieldCode, which is optional 00951 00952 00953 bool fieldCodeExists; 00954 00955 00956 vector<string > fieldCode; 00957 00958 00959 00960 00961 00962 00963 // ===> Attribute startTimeObserved 00964 00965 00966 00967 ArrayTime startTimeObserved; 00968 00969 00970 00971 00972 00973 00974 // ===> Attribute endTimeObserved 00975 00976 00977 00978 ArrayTime endTimeObserved; 00979 00980 00981 00982 00983 00984 00985 // ===> Attribute sourceName, which is optional 00986 00987 00988 bool sourceNameExists; 00989 00990 00991 vector<string > sourceName; 00992 00993 00994 00995 00996 00997 00998 // ===> Attribute sourceCode, which is optional 00999 01000 01001 bool sourceCodeExists; 01002 01003 01004 vector<string > sourceCode; 01005 01006 01007 01008 01009 01010 01011 // ===> Attribute scanIntent, which is optional 01012 01013 01014 bool scanIntentExists; 01015 01016 01017 vector<ScanIntentMod::ScanIntent > scanIntent; 01018 01019 01020 01021 01022 01023 01024 // ===> Attribute assocCalDataId, which is optional 01025 01026 01027 bool assocCalDataIdExists; 01028 01029 01030 Tag assocCalDataId; 01031 01032 01033 01034 01035 01036 01037 // ===> Attribute assocCalNature, which is optional 01038 01039 01040 bool assocCalNatureExists; 01041 01042 01043 AssociatedCalNatureMod::AssociatedCalNature assocCalNature; 01044 01045 01046 01047 01048 01049 01050 // ===> Attribute calDataType 01051 01052 01053 01054 CalDataOriginMod::CalDataOrigin calDataType; 01055 01056 01057 01058 01059 01061 // Extrinsic Table Attributes // 01063 01065 // Links // 01067 01068 01069 }; 01070 01071 } // End namespace asdm 01072 01073 #endif /* CalData_CLASS */

Generated on Tue Nov 18 17:43:40 2008 for ASDM C++ Implementation by doxygen 1.3.8