casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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 
00041 #ifndef WITHOUT_ACS
00042 #include <asdmIDLC.h>
00043 #endif
00044 
00045 
00046 
00047 
00048 
00049 
00050          
00051 #include <ArrayTime.h>
00052         
00053 
00054          
00055 #include <Tag.h>
00056         
00057 
00058 
00059 
00060 
00061         
00062 
00063         
00064 
00065         
00066 
00067         
00068 
00069         
00070 
00071         
00072 
00073         
00074 #include "CInvalidatingCondition.h"
00075         
00076 
00077         
00078 
00079         
00080 
00081         
00082 
00083         
00084 
00085 
00086 
00087 #include <ConversionException.h>
00088 #include <NoSuchRow.h>
00089 #include <IllegalAccessException.h>
00090 
00091 #include <RowTransformer.h>
00092 //#include <TableStreamReader.h>
00093 
00094 /*\file CalReduction.h
00095     \brief Generated from model's revision "1.61", branch "HEAD"
00096 */
00097 
00098 namespace asdm {
00099 
00100 //class asdm::CalReductionTable;
00101 
00102         
00103 
00104 class CalReductionRow;
00105 typedef void (CalReductionRow::*CalReductionAttributeFromBin) (EndianIStream& eis);
00106 typedef void (CalReductionRow::*CalReductionAttributeFromText) (const string& s);
00107 
00114 class CalReductionRow {
00115 friend class asdm::CalReductionTable;
00116 friend class asdm::RowTransformer<CalReductionRow>;
00117 //friend class asdm::TableStreamReader<CalReductionTable, CalReductionRow>;
00118 
00119 public:
00120 
00121         virtual ~CalReductionRow();
00122 
00126         CalReductionTable &getTable() const;
00127         
00132         bool isAdded() const;
00133                 
00135         // Intrinsic Table Attributes //
00137         
00138         
00139         // ===> Attribute calReductionId
00140         
00141         
00142         
00143 
00144         
00149         Tag getCalReductionId() const;
00150         
00151  
00152         
00153         
00154         
00155         
00156 
00157 
00158         
00159         // ===> Attribute numApplied
00160         
00161         
00162         
00163 
00164         
00169         int getNumApplied() const;
00170         
00171  
00172         
00173         
00181         void setNumApplied (int numApplied);
00182                 
00183         
00184         
00185         
00186 
00187 
00188         
00189         // ===> Attribute appliedCalibrations
00190         
00191         
00192         
00193 
00194         
00199         vector<string > getAppliedCalibrations() const;
00200         
00201  
00202         
00203         
00211         void setAppliedCalibrations (vector<string > appliedCalibrations);
00212                 
00213         
00214         
00215         
00216 
00217 
00218         
00219         // ===> Attribute numParam
00220         
00221         
00222         
00223 
00224         
00229         int getNumParam() const;
00230         
00231  
00232         
00233         
00241         void setNumParam (int numParam);
00242                 
00243         
00244         
00245         
00246 
00247 
00248         
00249         // ===> Attribute paramSet
00250         
00251         
00252         
00253 
00254         
00259         vector<string > getParamSet() const;
00260         
00261  
00262         
00263         
00271         void setParamSet (vector<string > paramSet);
00272                 
00273         
00274         
00275         
00276 
00277 
00278         
00279         // ===> Attribute numInvalidConditions
00280         
00281         
00282         
00283 
00284         
00289         int getNumInvalidConditions() const;
00290         
00291  
00292         
00293         
00301         void setNumInvalidConditions (int numInvalidConditions);
00302                 
00303         
00304         
00305         
00306 
00307 
00308         
00309         // ===> Attribute invalidConditions
00310         
00311         
00312         
00313 
00314         
00319         vector<InvalidatingConditionMod::InvalidatingCondition > getInvalidConditions() const;
00320         
00321  
00322         
00323         
00331         void setInvalidConditions (vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions);
00332                 
00333         
00334         
00335         
00336 
00337 
00338         
00339         // ===> Attribute timeReduced
00340         
00341         
00342         
00343 
00344         
00349         ArrayTime getTimeReduced() const;
00350         
00351  
00352         
00353         
00361         void setTimeReduced (ArrayTime timeReduced);
00362                 
00363         
00364         
00365         
00366 
00367 
00368         
00369         // ===> Attribute messages
00370         
00371         
00372         
00373 
00374         
00379         string getMessages() const;
00380         
00381  
00382         
00383         
00391         void setMessages (string messages);
00392                 
00393         
00394         
00395         
00396 
00397 
00398         
00399         // ===> Attribute software
00400         
00401         
00402         
00403 
00404         
00409         string getSoftware() const;
00410         
00411  
00412         
00413         
00421         void setSoftware (string software);
00422                 
00423         
00424         
00425         
00426 
00427 
00428         
00429         // ===> Attribute softwareVersion
00430         
00431         
00432         
00433 
00434         
00439         string getSoftwareVersion() const;
00440         
00441  
00442         
00443         
00451         void setSoftwareVersion (string softwareVersion);
00452                 
00453         
00454         
00455         
00456 
00457 
00459         // Extrinsic Table Attributes //
00461         
00463         // Links //
00465         
00466         
00467         
00468         
00494         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);
00495         
00496         
00497 
00498         
00524         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); 
00525                  
00526         
00535         bool equalByRequiredValue(CalReductionRow* x) ;
00536         
00537 #ifndef WITHOUT_ACS
00538 
00542         asdmIDL::CalReductionRowIDL *toIDL() const;
00543 #endif
00544         
00545 #ifndef WITHOUT_ACS
00546 
00551         void setFromIDL (asdmIDL::CalReductionRowIDL x) ;
00552 #endif
00553         
00558         std::string toXML() const;
00559 
00566         void setFromXML (std::string rowDoc) ;
00567 
00570         // binary-deserialization material from an EndianIStream  //
00572 
00573         std::map<std::string, CalReductionAttributeFromBin> fromBinMethods;
00574 void calReductionIdFromBin( EndianIStream& eis);
00575 void numAppliedFromBin( EndianIStream& eis);
00576 void appliedCalibrationsFromBin( EndianIStream& eis);
00577 void numParamFromBin( EndianIStream& eis);
00578 void paramSetFromBin( EndianIStream& eis);
00579 void numInvalidConditionsFromBin( EndianIStream& eis);
00580 void invalidConditionsFromBin( EndianIStream& eis);
00581 void timeReducedFromBin( EndianIStream& eis);
00582 void messagesFromBin( EndianIStream& eis);
00583 void softwareFromBin( EndianIStream& eis);
00584 void softwareVersionFromBin( EndianIStream& eis);
00585 
00586         
00587 
00595          static CalReductionRow* fromBin(EndianIStream& eis, CalReductionTable& table, const std::vector<std::string>& attributesSeq);   
00597 
00598 private:
00602         CalReductionTable &table;
00606         bool hasBeenAdded;
00607 
00608         // This method is used by the Table class when this row is added to the table.
00609         void isAdded(bool added);
00610 
00611 
00620         CalReductionRow (CalReductionTable &table);
00621 
00639          CalReductionRow (CalReductionTable &table, CalReductionRow &row);
00640                 
00642         // Intrinsic Table Attributes //
00644         
00645         
00646         // ===> Attribute calReductionId
00647         
00648         
00649 
00650         Tag calReductionId;
00651 
00652         
00653         
00654         
00664         void setCalReductionId (Tag calReductionId);
00665                 
00666         
00667 
00668         
00669         // ===> Attribute numApplied
00670         
00671         
00672 
00673         int numApplied;
00674 
00675         
00676         
00677         
00678 
00679         
00680         // ===> Attribute appliedCalibrations
00681         
00682         
00683 
00684         vector<string > appliedCalibrations;
00685 
00686         
00687         
00688         
00689 
00690         
00691         // ===> Attribute numParam
00692         
00693         
00694 
00695         int numParam;
00696 
00697         
00698         
00699         
00700 
00701         
00702         // ===> Attribute paramSet
00703         
00704         
00705 
00706         vector<string > paramSet;
00707 
00708         
00709         
00710         
00711 
00712         
00713         // ===> Attribute numInvalidConditions
00714         
00715         
00716 
00717         int numInvalidConditions;
00718 
00719         
00720         
00721         
00722 
00723         
00724         // ===> Attribute invalidConditions
00725         
00726         
00727 
00728         vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions;
00729 
00730         
00731         
00732         
00733 
00734         
00735         // ===> Attribute timeReduced
00736         
00737         
00738 
00739         ArrayTime timeReduced;
00740 
00741         
00742         
00743         
00744 
00745         
00746         // ===> Attribute messages
00747         
00748         
00749 
00750         string messages;
00751 
00752         
00753         
00754         
00755 
00756         
00757         // ===> Attribute software
00758         
00759         
00760 
00761         string software;
00762 
00763         
00764         
00765         
00766 
00767         
00768         // ===> Attribute softwareVersion
00769         
00770         
00771 
00772         string softwareVersion;
00773 
00774         
00775         
00776         
00777 
00779         // Extrinsic Table Attributes //
00781         
00783         // Links //
00785         
00786         
00787 /*
00789         // binary-deserialization material from an EndianIStream  //
00791         std::map<std::string, CalReductionAttributeFromBin> fromBinMethods;
00792 void calReductionIdFromBin( EndianIStream& eis);
00793 void numAppliedFromBin( EndianIStream& eis);
00794 void appliedCalibrationsFromBin( EndianIStream& eis);
00795 void numParamFromBin( EndianIStream& eis);
00796 void paramSetFromBin( EndianIStream& eis);
00797 void numInvalidConditionsFromBin( EndianIStream& eis);
00798 void invalidConditionsFromBin( EndianIStream& eis);
00799 void timeReducedFromBin( EndianIStream& eis);
00800 void messagesFromBin( EndianIStream& eis);
00801 void softwareFromBin( EndianIStream& eis);
00802 void softwareVersionFromBin( EndianIStream& eis);
00803 
00804         
00805 */
00806         
00808         // text-deserialization material //
00810         std::map<std::string, CalReductionAttributeFromText> fromTextMethods;
00811         
00812 void calReductionIdFromText (const string & s);
00813         
00814         
00815 void numAppliedFromText (const string & s);
00816         
00817         
00818 void appliedCalibrationsFromText (const string & s);
00819         
00820         
00821 void numParamFromText (const string & s);
00822         
00823         
00824 void paramSetFromText (const string & s);
00825         
00826         
00827 void numInvalidConditionsFromText (const string & s);
00828         
00829         
00830 void invalidConditionsFromText (const string & s);
00831         
00832         
00833 void timeReducedFromText (const string & s);
00834         
00835         
00836 void messagesFromText (const string & s);
00837         
00838         
00839 void softwareFromText (const string & s);
00840         
00841         
00842 void softwareVersionFromText (const string & s);
00843         
00844 
00845                 
00846         
00847         void fromText(const std::string& attributeName, const std::string&  t);
00848         
00853          void toBin(EndianOSStream& eoss);
00854                  
00864 };
00865 
00866 } // End namespace asdm
00867 
00868 #endif /* CalReduction_CLASS */