casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
CalSeeingRow.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 CalSeeingRow.h
00032  */
00033  
00034 #ifndef CalSeeingRow_CLASS
00035 #define CalSeeingRow_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 <Angle.h>
00056         
00057 
00058          
00059 #include <Interval.h>
00060         
00061 
00062          
00063 #include <Tag.h>
00064         
00065 
00066          
00067 #include <Length.h>
00068         
00069 
00070          
00071 #include <Frequency.h>
00072         
00073 
00074 
00075 
00076 
00077         
00078 #include "CAtmPhaseCorrection.h"
00079         
00080 
00081         
00082 
00083         
00084 
00085         
00086 
00087         
00088 
00089         
00090 
00091         
00092 
00093         
00094 
00095         
00096 
00097         
00098 
00099         
00100 
00101         
00102 
00103         
00104 
00105 
00106 
00107 #include <ConversionException.h>
00108 #include <NoSuchRow.h>
00109 #include <IllegalAccessException.h>
00110 
00111 #include <RowTransformer.h>
00112 //#include <TableStreamReader.h>
00113 
00114 /*\file CalSeeing.h
00115     \brief Generated from model's revision "1.61", branch "HEAD"
00116 */
00117 
00118 namespace asdm {
00119 
00120 //class asdm::CalSeeingTable;
00121 
00122 
00123 // class asdm::CalDataRow;
00124 class CalDataRow;
00125 
00126 // class asdm::CalReductionRow;
00127 class CalReductionRow;
00128         
00129 
00130 class CalSeeingRow;
00131 typedef void (CalSeeingRow::*CalSeeingAttributeFromBin) (EndianIStream& eis);
00132 typedef void (CalSeeingRow::*CalSeeingAttributeFromText) (const string& s);
00133 
00140 class CalSeeingRow {
00141 friend class asdm::CalSeeingTable;
00142 friend class asdm::RowTransformer<CalSeeingRow>;
00143 //friend class asdm::TableStreamReader<CalSeeingTable, CalSeeingRow>;
00144 
00145 public:
00146 
00147         virtual ~CalSeeingRow();
00148 
00152         CalSeeingTable &getTable() const;
00153         
00158         bool isAdded() const;
00159                 
00161         // Intrinsic Table Attributes //
00163         
00164         
00165         // ===> Attribute atmPhaseCorrection
00166         
00167         
00168         
00169 
00170         
00175         AtmPhaseCorrectionMod::AtmPhaseCorrection getAtmPhaseCorrection() const;
00176         
00177  
00178         
00179         
00189         void setAtmPhaseCorrection (AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection);
00190                 
00191         
00192         
00193         
00194 
00195 
00196         
00197         // ===> Attribute startValidTime
00198         
00199         
00200         
00201 
00202         
00207         ArrayTime getStartValidTime() const;
00208         
00209  
00210         
00211         
00219         void setStartValidTime (ArrayTime startValidTime);
00220                 
00221         
00222         
00223         
00224 
00225 
00226         
00227         // ===> Attribute endValidTime
00228         
00229         
00230         
00231 
00232         
00237         ArrayTime getEndValidTime() const;
00238         
00239  
00240         
00241         
00249         void setEndValidTime (ArrayTime endValidTime);
00250                 
00251         
00252         
00253         
00254 
00255 
00256         
00257         // ===> Attribute frequencyRange
00258         
00259         
00260         
00261 
00262         
00267         vector<Frequency > getFrequencyRange() const;
00268         
00269  
00270         
00271         
00279         void setFrequencyRange (vector<Frequency > frequencyRange);
00280                 
00281         
00282         
00283         
00284 
00285 
00286         
00287         // ===> Attribute integrationTime
00288         
00289         
00290         
00291 
00292         
00297         Interval getIntegrationTime() const;
00298         
00299  
00300         
00301         
00309         void setIntegrationTime (Interval integrationTime);
00310                 
00311         
00312         
00313         
00314 
00315 
00316         
00317         // ===> Attribute numBaseLengths
00318         
00319         
00320         
00321 
00322         
00327         int getNumBaseLengths() const;
00328         
00329  
00330         
00331         
00339         void setNumBaseLengths (int numBaseLengths);
00340                 
00341         
00342         
00343         
00344 
00345 
00346         
00347         // ===> Attribute baselineLengths
00348         
00349         
00350         
00351 
00352         
00357         vector<Length > getBaselineLengths() const;
00358         
00359  
00360         
00361         
00369         void setBaselineLengths (vector<Length > baselineLengths);
00370                 
00371         
00372         
00373         
00374 
00375 
00376         
00377         // ===> Attribute phaseRMS
00378         
00379         
00380         
00381 
00382         
00387         vector<Angle > getPhaseRMS() const;
00388         
00389  
00390         
00391         
00399         void setPhaseRMS (vector<Angle > phaseRMS);
00400                 
00401         
00402         
00403         
00404 
00405 
00406         
00407         // ===> Attribute seeing
00408         
00409         
00410         
00411 
00412         
00417         Angle getSeeing() const;
00418         
00419  
00420         
00421         
00429         void setSeeing (Angle seeing);
00430                 
00431         
00432         
00433         
00434 
00435 
00436         
00437         // ===> Attribute seeingError
00438         
00439         
00440         
00441 
00442         
00447         Angle getSeeingError() const;
00448         
00449  
00450         
00451         
00459         void setSeeingError (Angle seeingError);
00460                 
00461         
00462         
00463         
00464 
00465 
00466         
00467         // ===> Attribute exponent, which is optional
00468         
00469         
00470         
00475         bool isExponentExists() const;
00476         
00477 
00478         
00484         float getExponent() const;
00485         
00486  
00487         
00488         
00495         void setExponent (float exponent);
00496                 
00497         
00498         
00499         
00503         void clearExponent ();
00504         
00505 
00506 
00507         
00508         // ===> Attribute outerScale, which is optional
00509         
00510         
00511         
00516         bool isOuterScaleExists() const;
00517         
00518 
00519         
00525         Length getOuterScale() const;
00526         
00527  
00528         
00529         
00536         void setOuterScale (Length outerScale);
00537                 
00538         
00539         
00540         
00544         void clearOuterScale ();
00545         
00546 
00547 
00548         
00549         // ===> Attribute outerScaleRMS, which is optional
00550         
00551         
00552         
00557         bool isOuterScaleRMSExists() const;
00558         
00559 
00560         
00566         Angle getOuterScaleRMS() const;
00567         
00568  
00569         
00570         
00577         void setOuterScaleRMS (Angle outerScaleRMS);
00578                 
00579         
00580         
00581         
00585         void clearOuterScaleRMS ();
00586         
00587 
00588 
00590         // Extrinsic Table Attributes //
00592         
00593         
00594         // ===> Attribute calDataId
00595         
00596         
00597         
00598 
00599         
00604         Tag getCalDataId() const;
00605         
00606  
00607         
00608         
00618         void setCalDataId (Tag calDataId);
00619                 
00620         
00621         
00622         
00623 
00624 
00625         
00626         // ===> Attribute calReductionId
00627         
00628         
00629         
00630 
00631         
00636         Tag getCalReductionId() const;
00637         
00638  
00639         
00640         
00650         void setCalReductionId (Tag calReductionId);
00651                 
00652         
00653         
00654         
00655 
00656 
00658         // Links //
00660         
00661         
00662 
00663         
00664                 
00671          CalDataRow* getCalDataUsingCalDataId();
00672          
00673 
00674         
00675 
00676         
00677 
00678         
00679                 
00686          CalReductionRow* getCalReductionUsingCalReductionId();
00687          
00688 
00689         
00690 
00691         
00692         
00693         
00723         bool compareNoAutoInc(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, vector<Frequency > frequencyRange, Interval integrationTime, int numBaseLengths, vector<Length > baselineLengths, vector<Angle > phaseRMS, Angle seeing, Angle seeingError);
00724         
00725         
00726 
00727         
00751         bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, vector<Frequency > frequencyRange, Interval integrationTime, int numBaseLengths, vector<Length > baselineLengths, vector<Angle > phaseRMS, Angle seeing, Angle seeingError); 
00752                  
00753         
00762         bool equalByRequiredValue(CalSeeingRow* x) ;
00763         
00764 #ifndef WITHOUT_ACS
00765 
00769         asdmIDL::CalSeeingRowIDL *toIDL() const;
00770 #endif
00771         
00772 #ifndef WITHOUT_ACS
00773 
00778         void setFromIDL (asdmIDL::CalSeeingRowIDL x) ;
00779 #endif
00780         
00785         std::string toXML() const;
00786 
00793         void setFromXML (std::string rowDoc) ;
00794 
00797         // binary-deserialization material from an EndianIStream  //
00799 
00800         std::map<std::string, CalSeeingAttributeFromBin> fromBinMethods;
00801 void atmPhaseCorrectionFromBin( EndianIStream& eis);
00802 void calDataIdFromBin( EndianIStream& eis);
00803 void calReductionIdFromBin( EndianIStream& eis);
00804 void startValidTimeFromBin( EndianIStream& eis);
00805 void endValidTimeFromBin( EndianIStream& eis);
00806 void frequencyRangeFromBin( EndianIStream& eis);
00807 void integrationTimeFromBin( EndianIStream& eis);
00808 void numBaseLengthsFromBin( EndianIStream& eis);
00809 void baselineLengthsFromBin( EndianIStream& eis);
00810 void phaseRMSFromBin( EndianIStream& eis);
00811 void seeingFromBin( EndianIStream& eis);
00812 void seeingErrorFromBin( EndianIStream& eis);
00813 
00814 void exponentFromBin( EndianIStream& eis);
00815 void outerScaleFromBin( EndianIStream& eis);
00816 void outerScaleRMSFromBin( EndianIStream& eis);
00817 
00818 
00826          static CalSeeingRow* fromBin(EndianIStream& eis, CalSeeingTable& table, const std::vector<std::string>& attributesSeq);         
00828 
00829 private:
00833         CalSeeingTable &table;
00837         bool hasBeenAdded;
00838 
00839         // This method is used by the Table class when this row is added to the table.
00840         void isAdded(bool added);
00841 
00842 
00851         CalSeeingRow (CalSeeingTable &table);
00852 
00870          CalSeeingRow (CalSeeingTable &table, CalSeeingRow &row);
00871                 
00873         // Intrinsic Table Attributes //
00875         
00876         
00877         // ===> Attribute atmPhaseCorrection
00878         
00879         
00880 
00881         AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection;
00882 
00883         
00884         
00885         
00886 
00887         
00888         // ===> Attribute startValidTime
00889         
00890         
00891 
00892         ArrayTime startValidTime;
00893 
00894         
00895         
00896         
00897 
00898         
00899         // ===> Attribute endValidTime
00900         
00901         
00902 
00903         ArrayTime endValidTime;
00904 
00905         
00906         
00907         
00908 
00909         
00910         // ===> Attribute frequencyRange
00911         
00912         
00913 
00914         vector<Frequency > frequencyRange;
00915 
00916         
00917         
00918         
00919 
00920         
00921         // ===> Attribute integrationTime
00922         
00923         
00924 
00925         Interval integrationTime;
00926 
00927         
00928         
00929         
00930 
00931         
00932         // ===> Attribute numBaseLengths
00933         
00934         
00935 
00936         int numBaseLengths;
00937 
00938         
00939         
00940         
00941 
00942         
00943         // ===> Attribute baselineLengths
00944         
00945         
00946 
00947         vector<Length > baselineLengths;
00948 
00949         
00950         
00951         
00952 
00953         
00954         // ===> Attribute phaseRMS
00955         
00956         
00957 
00958         vector<Angle > phaseRMS;
00959 
00960         
00961         
00962         
00963 
00964         
00965         // ===> Attribute seeing
00966         
00967         
00968 
00969         Angle seeing;
00970 
00971         
00972         
00973         
00974 
00975         
00976         // ===> Attribute seeingError
00977         
00978         
00979 
00980         Angle seeingError;
00981 
00982         
00983         
00984         
00985 
00986         
00987         // ===> Attribute exponent, which is optional
00988         
00989         
00990         bool exponentExists;
00991         
00992 
00993         float exponent;
00994 
00995         
00996         
00997         
00998 
00999         
01000         // ===> Attribute outerScale, which is optional
01001         
01002         
01003         bool outerScaleExists;
01004         
01005 
01006         Length outerScale;
01007 
01008         
01009         
01010         
01011 
01012         
01013         // ===> Attribute outerScaleRMS, which is optional
01014         
01015         
01016         bool outerScaleRMSExists;
01017         
01018 
01019         Angle outerScaleRMS;
01020 
01021         
01022         
01023         
01024 
01026         // Extrinsic Table Attributes //
01028         
01029         
01030         // ===> Attribute calDataId
01031         
01032         
01033 
01034         Tag calDataId;
01035 
01036         
01037         
01038         
01039 
01040         
01041         // ===> Attribute calReductionId
01042         
01043         
01044 
01045         Tag calReductionId;
01046 
01047         
01048         
01049         
01050 
01052         // Links //
01054         
01055         
01056                 
01057 
01058          
01059 
01060         
01061 
01062         
01063                 
01064 
01065          
01066 
01067         
01068 
01069         
01070 /*
01072         // binary-deserialization material from an EndianIStream  //
01074         std::map<std::string, CalSeeingAttributeFromBin> fromBinMethods;
01075 void atmPhaseCorrectionFromBin( EndianIStream& eis);
01076 void calDataIdFromBin( EndianIStream& eis);
01077 void calReductionIdFromBin( EndianIStream& eis);
01078 void startValidTimeFromBin( EndianIStream& eis);
01079 void endValidTimeFromBin( EndianIStream& eis);
01080 void frequencyRangeFromBin( EndianIStream& eis);
01081 void integrationTimeFromBin( EndianIStream& eis);
01082 void numBaseLengthsFromBin( EndianIStream& eis);
01083 void baselineLengthsFromBin( EndianIStream& eis);
01084 void phaseRMSFromBin( EndianIStream& eis);
01085 void seeingFromBin( EndianIStream& eis);
01086 void seeingErrorFromBin( EndianIStream& eis);
01087 
01088 void exponentFromBin( EndianIStream& eis);
01089 void outerScaleFromBin( EndianIStream& eis);
01090 void outerScaleRMSFromBin( EndianIStream& eis);
01091 
01092 */
01093         
01095         // text-deserialization material //
01097         std::map<std::string, CalSeeingAttributeFromText> fromTextMethods;
01098         
01099 void atmPhaseCorrectionFromText (const string & s);
01100         
01101         
01102 void calDataIdFromText (const string & s);
01103         
01104         
01105 void calReductionIdFromText (const string & s);
01106         
01107         
01108 void startValidTimeFromText (const string & s);
01109         
01110         
01111 void endValidTimeFromText (const string & s);
01112         
01113         
01114 void frequencyRangeFromText (const string & s);
01115         
01116         
01117 void integrationTimeFromText (const string & s);
01118         
01119         
01120 void numBaseLengthsFromText (const string & s);
01121         
01122         
01123 void baselineLengthsFromText (const string & s);
01124         
01125         
01126 void phaseRMSFromText (const string & s);
01127         
01128         
01129 void seeingFromText (const string & s);
01130         
01131         
01132 void seeingErrorFromText (const string & s);
01133         
01134 
01135         
01136 void exponentFromText (const string & s);
01137         
01138         
01139 void outerScaleFromText (const string & s);
01140         
01141         
01142 void outerScaleRMSFromText (const string & s);
01143         
01144         
01145         
01146         void fromText(const std::string& attributeName, const std::string&  t);
01147         
01152          void toBin(EndianOSStream& eoss);
01153                  
01163 };
01164 
01165 } // End namespace asdm
01166 
01167 #endif /* CalSeeing_CLASS */