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.64", 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         
00551          void toIDL(asdmIDL::CalReductionRowIDL& x) const;
00552 #endif
00553         
00554 #ifndef WITHOUT_ACS
00555 
00560         void setFromIDL (asdmIDL::CalReductionRowIDL x) ;
00561 #endif
00562         
00567         std::string toXML() const;
00568 
00575         void setFromXML (std::string rowDoc) ;
00576 
00579         // binary-deserialization material from an EndianIStream  //
00581 
00582         std::map<std::string, CalReductionAttributeFromBin> fromBinMethods;
00583 void calReductionIdFromBin( EndianIStream& eis);
00584 void numAppliedFromBin( EndianIStream& eis);
00585 void appliedCalibrationsFromBin( EndianIStream& eis);
00586 void numParamFromBin( EndianIStream& eis);
00587 void paramSetFromBin( EndianIStream& eis);
00588 void numInvalidConditionsFromBin( EndianIStream& eis);
00589 void invalidConditionsFromBin( EndianIStream& eis);
00590 void timeReducedFromBin( EndianIStream& eis);
00591 void messagesFromBin( EndianIStream& eis);
00592 void softwareFromBin( EndianIStream& eis);
00593 void softwareVersionFromBin( EndianIStream& eis);
00594 
00595         
00596 
00604          static CalReductionRow* fromBin(EndianIStream& eis, CalReductionTable& table, const std::vector<std::string>& attributesSeq);   
00605  
00612          void fromText(const std::string& attributeName, const std::string&  t);
00614 
00615 private:
00619         CalReductionTable &table;
00623         bool hasBeenAdded;
00624 
00625         // This method is used by the Table class when this row is added to the table.
00626         void isAdded(bool added);
00627 
00628 
00637         CalReductionRow (CalReductionTable &table);
00638 
00656          CalReductionRow (CalReductionTable &table, CalReductionRow &row);
00657                 
00659         // Intrinsic Table Attributes //
00661         
00662         
00663         // ===> Attribute calReductionId
00664         
00665         
00666 
00667         Tag calReductionId;
00668 
00669         
00670         
00671         
00681         void setCalReductionId (Tag calReductionId);
00682                 
00683         
00684 
00685         
00686         // ===> Attribute numApplied
00687         
00688         
00689 
00690         int numApplied;
00691 
00692         
00693         
00694         
00695 
00696         
00697         // ===> Attribute appliedCalibrations
00698         
00699         
00700 
00701         vector<string > appliedCalibrations;
00702 
00703         
00704         
00705         
00706 
00707         
00708         // ===> Attribute numParam
00709         
00710         
00711 
00712         int numParam;
00713 
00714         
00715         
00716         
00717 
00718         
00719         // ===> Attribute paramSet
00720         
00721         
00722 
00723         vector<string > paramSet;
00724 
00725         
00726         
00727         
00728 
00729         
00730         // ===> Attribute numInvalidConditions
00731         
00732         
00733 
00734         int numInvalidConditions;
00735 
00736         
00737         
00738         
00739 
00740         
00741         // ===> Attribute invalidConditions
00742         
00743         
00744 
00745         vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions;
00746 
00747         
00748         
00749         
00750 
00751         
00752         // ===> Attribute timeReduced
00753         
00754         
00755 
00756         ArrayTime timeReduced;
00757 
00758         
00759         
00760         
00761 
00762         
00763         // ===> Attribute messages
00764         
00765         
00766 
00767         string messages;
00768 
00769         
00770         
00771         
00772 
00773         
00774         // ===> Attribute software
00775         
00776         
00777 
00778         string software;
00779 
00780         
00781         
00782         
00783 
00784         
00785         // ===> Attribute softwareVersion
00786         
00787         
00788 
00789         string softwareVersion;
00790 
00791         
00792         
00793         
00794 
00796         // Extrinsic Table Attributes //
00798         
00800         // Links //
00802         
00803         
00804 /*
00806         // binary-deserialization material from an EndianIStream  //
00808         std::map<std::string, CalReductionAttributeFromBin> fromBinMethods;
00809 void calReductionIdFromBin( EndianIStream& eis);
00810 void numAppliedFromBin( EndianIStream& eis);
00811 void appliedCalibrationsFromBin( EndianIStream& eis);
00812 void numParamFromBin( EndianIStream& eis);
00813 void paramSetFromBin( EndianIStream& eis);
00814 void numInvalidConditionsFromBin( EndianIStream& eis);
00815 void invalidConditionsFromBin( EndianIStream& eis);
00816 void timeReducedFromBin( EndianIStream& eis);
00817 void messagesFromBin( EndianIStream& eis);
00818 void softwareFromBin( EndianIStream& eis);
00819 void softwareVersionFromBin( EndianIStream& eis);
00820 
00821         
00822 */
00823         
00825         // text-deserialization material //
00827         std::map<std::string, CalReductionAttributeFromText> fromTextMethods;
00828         
00829 void calReductionIdFromText (const string & s);
00830         
00831         
00832 void numAppliedFromText (const string & s);
00833         
00834         
00835 void appliedCalibrationsFromText (const string & s);
00836         
00837         
00838 void numParamFromText (const string & s);
00839         
00840         
00841 void paramSetFromText (const string & s);
00842         
00843         
00844 void numInvalidConditionsFromText (const string & s);
00845         
00846         
00847 void invalidConditionsFromText (const string & s);
00848         
00849         
00850 void timeReducedFromText (const string & s);
00851         
00852         
00853 void messagesFromText (const string & s);
00854         
00855         
00856 void softwareFromText (const string & s);
00857         
00858         
00859 void softwareVersionFromText (const string & s);
00860         
00861 
00862                 
00863         
00868          void toBin(EndianOSStream& eoss);
00869                  
00879 };
00880 
00881 } // End namespace asdm
00882 
00883 #endif /* CalReduction_CLASS */