CalReductionRow.h

Go to the documentation of this file.
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 CalReductionRow.h
00032  */
00033  
00034 #ifndef CalReductionRow_CLASS
00035 #define CalReductionRow_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::CalReductionRowIDL;
00047 #endif
00048 
00049 
00050 
00051 
00052 
00053 
00054 #include <ArrayTime.h>
00055 using  asdm::ArrayTime;
00056 
00057 #include <Tag.h>
00058 using  asdm::Tag;
00059 
00060 
00061 
00062 
00063         
00064 
00065         
00066 
00067         
00068 
00069         
00070 
00071         
00072 
00073         
00074 
00075         
00076 #include "CInvalidatingCondition.h"
00077 using namespace InvalidatingConditionMod;
00078         
00079 
00080         
00081 
00082         
00083 
00084         
00085 
00086         
00087 
00088 
00089 
00090 #include <ConversionException.h>
00091 #include <NoSuchRow.h>
00092 #include <IllegalAccessException.h>
00093 
00094 
00095 /*\file CalReduction.h
00096     \brief Generated from model's revision "1.55", branch "HEAD"
00097 */
00098 
00099 namespace asdm {
00100 
00101 //class asdm::CalReductionTable;
00102 
00103         
00104 
00105 class CalReductionRow;
00106 typedef void (CalReductionRow::*CalReductionAttributeFromBin) (EndianISStream& eiss);
00107 
00114 class CalReductionRow {
00115 friend class asdm::CalReductionTable;
00116 
00117 public:
00118 
00119         virtual ~CalReductionRow();
00120 
00124         CalReductionTable &getTable() const;
00125         
00130         bool isAdded() const;
00131                 
00133         // Intrinsic Table Attributes //
00135         
00136         
00137         // ===> Attribute calReductionId
00138         
00139         
00140         
00141 
00142         
00147         Tag getCalReductionId() const;
00148         
00149  
00150         
00151         
00152         
00153         
00154 
00155 
00156         
00157         // ===> Attribute numApplied
00158         
00159         
00160         
00161 
00162         
00167         int getNumApplied() const;
00168         
00169  
00170         
00171         
00179         void setNumApplied (int numApplied);
00180                 
00181         
00182         
00183         
00184 
00185 
00186         
00187         // ===> Attribute appliedCalibrations
00188         
00189         
00190         
00191 
00192         
00197         vector<string > getAppliedCalibrations() const;
00198         
00199  
00200         
00201         
00209         void setAppliedCalibrations (vector<string > appliedCalibrations);
00210                 
00211         
00212         
00213         
00214 
00215 
00216         
00217         // ===> Attribute numParam
00218         
00219         
00220         
00221 
00222         
00227         int getNumParam() const;
00228         
00229  
00230         
00231         
00239         void setNumParam (int numParam);
00240                 
00241         
00242         
00243         
00244 
00245 
00246         
00247         // ===> Attribute paramSet
00248         
00249         
00250         
00251 
00252         
00257         vector<string > getParamSet() const;
00258         
00259  
00260         
00261         
00269         void setParamSet (vector<string > paramSet);
00270                 
00271         
00272         
00273         
00274 
00275 
00276         
00277         // ===> Attribute numInvalidConditions
00278         
00279         
00280         
00281 
00282         
00287         int getNumInvalidConditions() const;
00288         
00289  
00290         
00291         
00299         void setNumInvalidConditions (int numInvalidConditions);
00300                 
00301         
00302         
00303         
00304 
00305 
00306         
00307         // ===> Attribute invalidConditions
00308         
00309         
00310         
00311 
00312         
00317         vector<InvalidatingConditionMod::InvalidatingCondition > getInvalidConditions() const;
00318         
00319  
00320         
00321         
00329         void setInvalidConditions (vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions);
00330                 
00331         
00332         
00333         
00334 
00335 
00336         
00337         // ===> Attribute timeReduced
00338         
00339         
00340         
00341 
00342         
00347         ArrayTime getTimeReduced() const;
00348         
00349  
00350         
00351         
00359         void setTimeReduced (ArrayTime timeReduced);
00360                 
00361         
00362         
00363         
00364 
00365 
00366         
00367         // ===> Attribute messages
00368         
00369         
00370         
00371 
00372         
00377         string getMessages() const;
00378         
00379  
00380         
00381         
00389         void setMessages (string messages);
00390                 
00391         
00392         
00393         
00394 
00395 
00396         
00397         // ===> Attribute software
00398         
00399         
00400         
00401 
00402         
00407         string getSoftware() const;
00408         
00409  
00410         
00411         
00419         void setSoftware (string software);
00420                 
00421         
00422         
00423         
00424 
00425 
00426         
00427         // ===> Attribute softwareVersion
00428         
00429         
00430         
00431 
00432         
00437         string getSoftwareVersion() const;
00438         
00439  
00440         
00441         
00449         void setSoftwareVersion (string softwareVersion);
00450                 
00451         
00452         
00453         
00454 
00455 
00457         // Extrinsic Table Attributes //
00459         
00461         // Links //
00463         
00464         
00465         
00466         
00492         bool compareNoAutoInc(int numApplied, vector<string > appliedCalibrations, int numParam, vector<string > paramSet, int numInvalidConditions, vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions, ArrayTime timeReduced, string messages, string software, string softwareVersion);
00493         
00494         
00495 
00496         
00522         bool compareRequiredValue(int numApplied, vector<string > appliedCalibrations, int numParam, vector<string > paramSet, int numInvalidConditions, vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions, ArrayTime timeReduced, string messages, string software, string softwareVersion); 
00523                  
00524         
00533         bool equalByRequiredValue(CalReductionRow* x) ;
00534         
00535 #ifndef WITHOUT_ACS
00536 
00540         CalReductionRowIDL *toIDL() const;
00541 #endif
00542         
00543 #ifndef WITHOUT_ACS
00544 
00549         void setFromIDL (CalReductionRowIDL x) ;
00550 #endif
00551         
00556         string toXML() const;
00557 
00564         void setFromXML (string rowDoc) ;       
00565 
00566 private:
00570         CalReductionTable &table;
00574         bool hasBeenAdded;
00575 
00576         // This method is used by the Table class when this row is added to the table.
00577         void isAdded(bool added);
00578 
00579 
00588         CalReductionRow (CalReductionTable &table);
00589 
00607          CalReductionRow (CalReductionTable &table, CalReductionRow &row);
00608                 
00610         // Intrinsic Table Attributes //
00612         
00613         
00614         // ===> Attribute calReductionId
00615         
00616         
00617 
00618         Tag calReductionId;
00619 
00620         
00621         
00622         
00632         void setCalReductionId (Tag calReductionId);
00633                 
00634         
00635 
00636         
00637         // ===> Attribute numApplied
00638         
00639         
00640 
00641         int numApplied;
00642 
00643         
00644         
00645         
00646 
00647         
00648         // ===> Attribute appliedCalibrations
00649         
00650         
00651 
00652         vector<string > appliedCalibrations;
00653 
00654         
00655         
00656         
00657 
00658         
00659         // ===> Attribute numParam
00660         
00661         
00662 
00663         int numParam;
00664 
00665         
00666         
00667         
00668 
00669         
00670         // ===> Attribute paramSet
00671         
00672         
00673 
00674         vector<string > paramSet;
00675 
00676         
00677         
00678         
00679 
00680         
00681         // ===> Attribute numInvalidConditions
00682         
00683         
00684 
00685         int numInvalidConditions;
00686 
00687         
00688         
00689         
00690 
00691         
00692         // ===> Attribute invalidConditions
00693         
00694         
00695 
00696         vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions;
00697 
00698         
00699         
00700         
00701 
00702         
00703         // ===> Attribute timeReduced
00704         
00705         
00706 
00707         ArrayTime timeReduced;
00708 
00709         
00710         
00711         
00712 
00713         
00714         // ===> Attribute messages
00715         
00716         
00717 
00718         string messages;
00719 
00720         
00721         
00722         
00723 
00724         
00725         // ===> Attribute software
00726         
00727         
00728 
00729         string software;
00730 
00731         
00732         
00733         
00734 
00735         
00736         // ===> Attribute softwareVersion
00737         
00738         
00739 
00740         string softwareVersion;
00741 
00742         
00743         
00744         
00745 
00747         // Extrinsic Table Attributes //
00749         
00751         // Links //
00753         
00754         
00756         // binary-deserialization material//
00758         map<string, CalReductionAttributeFromBin> fromBinMethods;
00759 void calReductionIdFromBin( EndianISStream& eiss);
00760 void numAppliedFromBin( EndianISStream& eiss);
00761 void appliedCalibrationsFromBin( EndianISStream& eiss);
00762 void numParamFromBin( EndianISStream& eiss);
00763 void paramSetFromBin( EndianISStream& eiss);
00764 void numInvalidConditionsFromBin( EndianISStream& eiss);
00765 void invalidConditionsFromBin( EndianISStream& eiss);
00766 void timeReducedFromBin( EndianISStream& eiss);
00767 void messagesFromBin( EndianISStream& eiss);
00768 void softwareFromBin( EndianISStream& eiss);
00769 void softwareVersionFromBin( EndianISStream& eiss);
00770 
00771                 
00772         
00777          void toBin(EndianOSStream& eoss);
00778                  
00786          static CalReductionRow* fromBin(EndianISStream& eiss, CalReductionTable& table, const vector<string>& attributesSeq);   
00787 
00788 };
00789 
00790 } // End namespace asdm
00791 
00792 #endif /* CalReduction_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines