MainRow.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 MainRow.h 00032 */ 00033 00034 #ifndef MainRow_CLASS 00035 #define MainRow_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::MainRowIDL; 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 #include "CTimeSampling.h" 00086 using namespace TimeSamplingMod; 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 using asdm::Angle; 00100 using asdm::AngularRate; 00101 using asdm::ArrayTime; 00102 using asdm::Complex; 00103 using asdm::Entity; 00104 using asdm::EntityId; 00105 using asdm::EntityRef; 00106 using asdm::Flux; 00107 using asdm::Frequency; 00108 using asdm::Humidity; 00109 using asdm::Interval; 00110 using asdm::Length; 00111 using asdm::Pressure; 00112 using asdm::Speed; 00113 using asdm::Tag; 00114 using asdm::Temperature; 00115 using asdm::ConversionException; 00116 using asdm::NoSuchRow; 00117 using asdm::IllegalAccessException; 00118 00119 /*\file Main.h 00120 \brief Generated from model's revision "1.46", branch "HEAD" 00121 */ 00122 00123 namespace asdm { 00124 00125 //class asdm::MainTable; 00126 00127 00128 // class asdm::ConfigDescriptionRow; 00129 class ConfigDescriptionRow; 00130 00131 // class asdm::FieldRow; 00132 class FieldRow; 00133 00134 // class asdm::StateRow; 00135 class StateRow; 00136 00137 // class asdm::ExecBlockRow; 00138 class ExecBlockRow; 00139 00140 00147 class MainRow { 00148 friend class asdm::MainTable; 00149 00150 public: 00151 00152 virtual ~MainRow(); 00153 00157 MainTable &getTable() const; 00158 00159 #ifndef WITHOUT_ACS 00160 00164 MainRowIDL *toIDL() const; 00165 #endif 00166 00167 #ifndef WITHOUT_ACS 00168 00172 void setFromIDL (MainRowIDL x) throw(ConversionException); 00173 #endif 00174 00179 string toXML() const; 00180 00186 void setFromXML (string rowDoc) throw(ConversionException); 00187 00189 // Intrinsic Table Attributes // 00191 00192 00193 // ===> Attribute time 00194 00195 00196 00197 00198 00203 ArrayTime getTime() const; 00204 00205 00206 00207 00217 void setTime (ArrayTime time); 00218 00219 00220 00221 00222 00223 00224 00225 // ===> Attribute scanNumber 00226 00227 00228 00229 00230 00235 int getScanNumber() const; 00236 00237 00238 00239 00247 void setScanNumber (int scanNumber); 00248 00249 00250 00251 00252 00253 00254 00255 // ===> Attribute subscanNumber 00256 00257 00258 00259 00260 00265 int getSubscanNumber() const; 00266 00267 00268 00269 00277 void setSubscanNumber (int subscanNumber); 00278 00279 00280 00281 00282 00283 00284 00285 // ===> Attribute timeSampling 00286 00287 00288 00289 00290 00295 TimeSamplingMod::TimeSampling getTimeSampling() const; 00296 00297 00298 00299 00307 void setTimeSampling (TimeSamplingMod::TimeSampling timeSampling); 00308 00309 00310 00311 00312 00313 00314 00315 // ===> Attribute numIntegration 00316 00317 00318 00319 00320 00325 int getNumIntegration() const; 00326 00327 00328 00329 00337 void setNumIntegration (int numIntegration); 00338 00339 00340 00341 00342 00343 00344 00345 // ===> Attribute dataOid 00346 00347 00348 00349 00350 00355 EntityRef getDataOid() const; 00356 00357 00358 00359 00367 void setDataOid (EntityRef dataOid); 00368 00369 00370 00371 00372 00373 00374 00375 // ===> Attribute flagRow 00376 00377 00378 00379 00380 00385 bool getFlagRow() const; 00386 00387 00388 00389 00397 void setFlagRow (bool flagRow); 00398 00399 00400 00401 00402 00403 00404 00405 // ===> Attribute interval 00406 00407 00408 00409 00410 00415 Interval getInterval() const; 00416 00417 00418 00419 00427 void setInterval (Interval interval); 00428 00429 00430 00431 00432 00433 00435 // Extrinsic Table Attributes // 00437 00438 00439 // ===> Attribute configDescriptionId 00440 00441 00442 00443 00444 00449 Tag getConfigDescriptionId() const; 00450 00451 00452 00453 00463 void setConfigDescriptionId (Tag configDescriptionId); 00464 00465 00466 00467 00468 00469 00470 00471 // ===> Attribute execBlockId 00472 00473 00474 00475 00476 00481 Tag getExecBlockId() const; 00482 00483 00484 00485 00493 void setExecBlockId (Tag execBlockId); 00494 00495 00496 00497 00498 00499 00500 00501 // ===> Attribute fieldId 00502 00503 00504 00505 00506 00511 Tag getFieldId() const; 00512 00513 00514 00515 00525 void setFieldId (Tag fieldId); 00526 00527 00528 00529 00530 00531 00532 00533 // ===> Attribute stateId 00534 00535 00536 00537 00538 00543 vector<Tag> getStateId() const; 00544 00545 00546 00547 00555 void setStateId (vector<Tag> stateId); 00556 00557 00558 00559 00560 00561 00563 // Links // 00565 00566 00567 00568 00569 00576 ConfigDescriptionRow* getConfigDescriptionUsingConfigDescriptionId(); 00577 00578 00579 00580 00581 00582 00583 00584 00591 FieldRow* getFieldUsingFieldId(); 00592 00593 00594 00595 00596 00597 00605 void setStateId (int i, Tag stateId); 00606 00607 00608 00609 00610 00615 void addStateId(Tag id); 00616 00621 void addStateId(const vector<Tag> & id); 00622 00623 00629 const Tag getStateId(int i); 00630 00638 StateRow* getState(int i); 00639 00644 vector<StateRow *> getStates(); 00645 00646 00647 00648 00649 00650 00651 00652 00659 ExecBlockRow* getExecBlockUsingExecBlockId(); 00660 00661 00662 00663 00664 00665 00666 00671 bool compareNoAutoInc(Tag configDescriptionId, Tag fieldId, ArrayTime time, Tag execBlockId, vector<Tag> stateId, int scanNumber, int subscanNumber, TimeSamplingMod::TimeSampling timeSampling, int numIntegration, EntityRef dataOid, bool flagRow, Interval interval); 00672 00673 00674 00675 00676 bool compareRequiredValue(Tag execBlockId, vector<Tag> stateId, int scanNumber, int subscanNumber, TimeSamplingMod::TimeSampling timeSampling, int numIntegration, EntityRef dataOid, bool flagRow, Interval interval); 00677 00678 00687 bool equalByRequiredValue(MainRow* x) ; 00688 00689 private: 00693 MainTable &table; 00697 bool hasBeenAdded; 00698 00699 // This method is used by the Table class when this row is added to the table. 00700 void isAdded(); 00701 00702 00711 MainRow (MainTable &table); 00712 00730 MainRow (MainTable &table, MainRow &row); 00731 00733 // Intrinsic Table Attributes // 00735 00736 00737 // ===> Attribute time 00738 00739 00740 00741 ArrayTime time; 00742 00743 00744 00745 00746 00747 00748 // ===> Attribute scanNumber 00749 00750 00751 00752 int scanNumber; 00753 00754 00755 00756 00757 00758 00759 // ===> Attribute subscanNumber 00760 00761 00762 00763 int subscanNumber; 00764 00765 00766 00767 00768 00769 00770 // ===> Attribute timeSampling 00771 00772 00773 00774 TimeSamplingMod::TimeSampling timeSampling; 00775 00776 00777 00778 00779 00780 00781 // ===> Attribute numIntegration 00782 00783 00784 00785 int numIntegration; 00786 00787 00788 00789 00790 00791 00792 // ===> Attribute dataOid 00793 00794 00795 00796 EntityRef dataOid; 00797 00798 00799 00800 00801 00802 00803 // ===> Attribute flagRow 00804 00805 00806 00807 bool flagRow; 00808 00809 00810 00811 00812 00813 00814 // ===> Attribute interval 00815 00816 00817 00818 Interval interval; 00819 00820 00821 00822 00823 00825 // Extrinsic Table Attributes // 00827 00828 00829 // ===> Attribute configDescriptionId 00830 00831 00832 00833 Tag configDescriptionId; 00834 00835 00836 00837 00838 00839 00840 // ===> Attribute execBlockId 00841 00842 00843 00844 Tag execBlockId; 00845 00846 00847 00848 00849 00850 00851 // ===> Attribute fieldId 00852 00853 00854 00855 Tag fieldId; 00856 00857 00858 00859 00860 00861 00862 // ===> Attribute stateId 00863 00864 00865 00866 vector<Tag> stateId; 00867 00868 00869 00870 00871 00873 // Links // 00875 00876 00877 00878 00879 00880 00881 00882 00883 00884 00885 00886 00887 00888 00889 00890 00891 00892 00893 00894 00895 00896 00897 00898 00899 00900 00901 00902 00903 00904 }; 00905 00906 } // End namespace asdm 00907 00908 #endif /* Main_CLASS */

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