casa  $Rev:20696$
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.62", 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);   
00596  
00603          void fromText(const std::string& attributeName, const std::string&  t);
00605 
00606 private:
00610         CalReductionTable &table;
00614         bool hasBeenAdded;
00615 
00616         // This method is used by the Table class when this row is added to the table.
00617         void isAdded(bool added);
00618 
00619 
00628         CalReductionRow (CalReductionTable &table);
00629 
00647          CalReductionRow (CalReductionTable &table, CalReductionRow &row);
00648                 
00650         // Intrinsic Table Attributes //
00652         
00653         
00654         // ===> Attribute calReductionId
00655         
00656         
00657 
00658         Tag calReductionId;
00659 
00660         
00661         
00662         
00672         void setCalReductionId (Tag calReductionId);
00673                 
00674         
00675 
00676         
00677         // ===> Attribute numApplied
00678         
00679         
00680 
00681         int numApplied;
00682 
00683         
00684         
00685         
00686 
00687         
00688         // ===> Attribute appliedCalibrations
00689         
00690         
00691 
00692         vector<string > appliedCalibrations;
00693 
00694         
00695         
00696         
00697 
00698         
00699         // ===> Attribute numParam
00700         
00701         
00702 
00703         int numParam;
00704 
00705         
00706         
00707         
00708 
00709         
00710         // ===> Attribute paramSet
00711         
00712         
00713 
00714         vector<string > paramSet;
00715 
00716         
00717         
00718         
00719 
00720         
00721         // ===> Attribute numInvalidConditions
00722         
00723         
00724 
00725         int numInvalidConditions;
00726 
00727         
00728         
00729         
00730 
00731         
00732         // ===> Attribute invalidConditions
00733         
00734         
00735 
00736         vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions;
00737 
00738         
00739         
00740         
00741 
00742         
00743         // ===> Attribute timeReduced
00744         
00745         
00746 
00747         ArrayTime timeReduced;
00748 
00749         
00750         
00751         
00752 
00753         
00754         // ===> Attribute messages
00755         
00756         
00757 
00758         string messages;
00759 
00760         
00761         
00762         
00763 
00764         
00765         // ===> Attribute software
00766         
00767         
00768 
00769         string software;
00770 
00771         
00772         
00773         
00774 
00775         
00776         // ===> Attribute softwareVersion
00777         
00778         
00779 
00780         string softwareVersion;
00781 
00782         
00783         
00784         
00785 
00787         // Extrinsic Table Attributes //
00789         
00791         // Links //
00793         
00794         
00795 /*
00797         // binary-deserialization material from an EndianIStream  //
00799         std::map<std::string, CalReductionAttributeFromBin> fromBinMethods;
00800 void calReductionIdFromBin( EndianIStream& eis);
00801 void numAppliedFromBin( EndianIStream& eis);
00802 void appliedCalibrationsFromBin( EndianIStream& eis);
00803 void numParamFromBin( EndianIStream& eis);
00804 void paramSetFromBin( EndianIStream& eis);
00805 void numInvalidConditionsFromBin( EndianIStream& eis);
00806 void invalidConditionsFromBin( EndianIStream& eis);
00807 void timeReducedFromBin( EndianIStream& eis);
00808 void messagesFromBin( EndianIStream& eis);
00809 void softwareFromBin( EndianIStream& eis);
00810 void softwareVersionFromBin( EndianIStream& eis);
00811 
00812         
00813 */
00814         
00816         // text-deserialization material //
00818         std::map<std::string, CalReductionAttributeFromText> fromTextMethods;
00819         
00820 void calReductionIdFromText (const string & s);
00821         
00822         
00823 void numAppliedFromText (const string & s);
00824         
00825         
00826 void appliedCalibrationsFromText (const string & s);
00827         
00828         
00829 void numParamFromText (const string & s);
00830         
00831         
00832 void paramSetFromText (const string & s);
00833         
00834         
00835 void numInvalidConditionsFromText (const string & s);
00836         
00837         
00838 void invalidConditionsFromText (const string & s);
00839         
00840         
00841 void timeReducedFromText (const string & s);
00842         
00843         
00844 void messagesFromText (const string & s);
00845         
00846         
00847 void softwareFromText (const string & s);
00848         
00849         
00850 void softwareVersionFromText (const string & s);
00851         
00852 
00853                 
00854         
00859          void toBin(EndianOSStream& eoss);
00860                  
00870 };
00871 
00872 } // End namespace asdm
00873 
00874 #endif /* CalReduction_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines