casa  $Rev:20696$
CalWVRRow.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 CalWVRRow.h
00032  */
00033  
00034 #ifndef CalWVRRow_CLASS
00035 #define CalWVRRow_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 #include <Length.h>
00060         
00061 
00062          
00063 #include <Temperature.h>
00064         
00065 
00066          
00067 #include <Frequency.h>
00068         
00069 
00070 
00071 
00072 
00073         
00074 
00075         
00076 
00077         
00078 #include "CWVRMethod.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 
00108 
00109 #include <ConversionException.h>
00110 #include <NoSuchRow.h>
00111 #include <IllegalAccessException.h>
00112 
00113 #include <RowTransformer.h>
00114 //#include <TableStreamReader.h>
00115 
00116 /*\file CalWVR.h
00117     \brief Generated from model's revision "1.62", branch "HEAD"
00118 */
00119 
00120 namespace asdm {
00121 
00122 //class asdm::CalWVRTable;
00123 
00124 
00125 // class asdm::CalDataRow;
00126 class CalDataRow;
00127 
00128 // class asdm::CalReductionRow;
00129 class CalReductionRow;
00130         
00131 
00132 class CalWVRRow;
00133 typedef void (CalWVRRow::*CalWVRAttributeFromBin) (EndianIStream& eis);
00134 typedef void (CalWVRRow::*CalWVRAttributeFromText) (const string& s);
00135 
00142 class CalWVRRow {
00143 friend class asdm::CalWVRTable;
00144 friend class asdm::RowTransformer<CalWVRRow>;
00145 //friend class asdm::TableStreamReader<CalWVRTable, CalWVRRow>;
00146 
00147 public:
00148 
00149         virtual ~CalWVRRow();
00150 
00154         CalWVRTable &getTable() const;
00155         
00160         bool isAdded() const;
00161                 
00163         // Intrinsic Table Attributes //
00165         
00166         
00167         // ===> Attribute startValidTime
00168         
00169         
00170         
00171 
00172         
00177         ArrayTime getStartValidTime() const;
00178         
00179  
00180         
00181         
00189         void setStartValidTime (ArrayTime startValidTime);
00190                 
00191         
00192         
00193         
00194 
00195 
00196         
00197         // ===> Attribute endValidTime
00198         
00199         
00200         
00201 
00202         
00207         ArrayTime getEndValidTime() const;
00208         
00209  
00210         
00211         
00219         void setEndValidTime (ArrayTime endValidTime);
00220                 
00221         
00222         
00223         
00224 
00225 
00226         
00227         // ===> Attribute wvrMethod
00228         
00229         
00230         
00231 
00232         
00237         WVRMethodMod::WVRMethod getWvrMethod() const;
00238         
00239  
00240         
00241         
00249         void setWvrMethod (WVRMethodMod::WVRMethod wvrMethod);
00250                 
00251         
00252         
00253         
00254 
00255 
00256         
00257         // ===> Attribute antennaName
00258         
00259         
00260         
00261 
00262         
00267         string getAntennaName() const;
00268         
00269  
00270         
00271         
00281         void setAntennaName (string antennaName);
00282                 
00283         
00284         
00285         
00286 
00287 
00288         
00289         // ===> Attribute numInputAntennas
00290         
00291         
00292         
00293 
00294         
00299         int getNumInputAntennas() const;
00300         
00301  
00302         
00303         
00311         void setNumInputAntennas (int numInputAntennas);
00312                 
00313         
00314         
00315         
00316 
00317 
00318         
00319         // ===> Attribute inputAntennaNames
00320         
00321         
00322         
00323 
00324         
00329         vector<string > getInputAntennaNames() const;
00330         
00331  
00332         
00333         
00341         void setInputAntennaNames (vector<string > inputAntennaNames);
00342                 
00343         
00344         
00345         
00346 
00347 
00348         
00349         // ===> Attribute numChan
00350         
00351         
00352         
00353 
00354         
00359         int getNumChan() const;
00360         
00361  
00362         
00363         
00371         void setNumChan (int numChan);
00372                 
00373         
00374         
00375         
00376 
00377 
00378         
00379         // ===> Attribute chanFreq
00380         
00381         
00382         
00383 
00384         
00389         vector<Frequency > getChanFreq() const;
00390         
00391  
00392         
00393         
00401         void setChanFreq (vector<Frequency > chanFreq);
00402                 
00403         
00404         
00405         
00406 
00407 
00408         
00409         // ===> Attribute chanWidth
00410         
00411         
00412         
00413 
00414         
00419         vector<Frequency > getChanWidth() const;
00420         
00421  
00422         
00423         
00431         void setChanWidth (vector<Frequency > chanWidth);
00432                 
00433         
00434         
00435         
00436 
00437 
00438         
00439         // ===> Attribute refTemp
00440         
00441         
00442         
00443 
00444         
00449         vector<vector<Temperature > > getRefTemp() const;
00450         
00451  
00452         
00453         
00461         void setRefTemp (vector<vector<Temperature > > refTemp);
00462                 
00463         
00464         
00465         
00466 
00467 
00468         
00469         // ===> Attribute numPoly
00470         
00471         
00472         
00473 
00474         
00479         int getNumPoly() const;
00480         
00481  
00482         
00483         
00491         void setNumPoly (int numPoly);
00492                 
00493         
00494         
00495         
00496 
00497 
00498         
00499         // ===> Attribute pathCoeff
00500         
00501         
00502         
00503 
00504         
00509         vector<vector<vector<float > > > getPathCoeff() const;
00510         
00511  
00512         
00513         
00521         void setPathCoeff (vector<vector<vector<float > > > pathCoeff);
00522                 
00523         
00524         
00525         
00526 
00527 
00528         
00529         // ===> Attribute polyFreqLimits
00530         
00531         
00532         
00533 
00534         
00539         vector<Frequency > getPolyFreqLimits() const;
00540         
00541  
00542         
00543         
00551         void setPolyFreqLimits (vector<Frequency > polyFreqLimits);
00552                 
00553         
00554         
00555         
00556 
00557 
00558         
00559         // ===> Attribute wetPath
00560         
00561         
00562         
00563 
00564         
00569         vector<float > getWetPath() const;
00570         
00571  
00572         
00573         
00581         void setWetPath (vector<float > wetPath);
00582                 
00583         
00584         
00585         
00586 
00587 
00588         
00589         // ===> Attribute dryPath
00590         
00591         
00592         
00593 
00594         
00599         vector<float > getDryPath() const;
00600         
00601  
00602         
00603         
00611         void setDryPath (vector<float > dryPath);
00612                 
00613         
00614         
00615         
00616 
00617 
00618         
00619         // ===> Attribute water
00620         
00621         
00622         
00623 
00624         
00629         Length getWater() const;
00630         
00631  
00632         
00633         
00641         void setWater (Length water);
00642                 
00643         
00644         
00645         
00646 
00647 
00649         // Extrinsic Table Attributes //
00651         
00652         
00653         // ===> Attribute calDataId
00654         
00655         
00656         
00657 
00658         
00663         Tag getCalDataId() const;
00664         
00665  
00666         
00667         
00677         void setCalDataId (Tag calDataId);
00678                 
00679         
00680         
00681         
00682 
00683 
00684         
00685         // ===> Attribute calReductionId
00686         
00687         
00688         
00689 
00690         
00695         Tag getCalReductionId() const;
00696         
00697  
00698         
00699         
00709         void setCalReductionId (Tag calReductionId);
00710                 
00711         
00712         
00713         
00714 
00715 
00717         // Links //
00719         
00720         
00721 
00722         
00723                 
00730          CalDataRow* getCalDataUsingCalDataId();
00731          
00732 
00733         
00734 
00735         
00736 
00737         
00738                 
00745          CalReductionRow* getCalReductionUsingCalReductionId();
00746          
00747 
00748         
00749 
00750         
00751         
00752         
00794         bool compareNoAutoInc(string antennaName, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, WVRMethodMod::WVRMethod wvrMethod, int numInputAntennas, vector<string > inputAntennaNames, int numChan, vector<Frequency > chanFreq, vector<Frequency > chanWidth, vector<vector<Temperature > > refTemp, int numPoly, vector<vector<vector<float > > > pathCoeff, vector<Frequency > polyFreqLimits, vector<float > wetPath, vector<float > dryPath, Length water);
00795         
00796         
00797 
00798         
00834         bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, WVRMethodMod::WVRMethod wvrMethod, int numInputAntennas, vector<string > inputAntennaNames, int numChan, vector<Frequency > chanFreq, vector<Frequency > chanWidth, vector<vector<Temperature > > refTemp, int numPoly, vector<vector<vector<float > > > pathCoeff, vector<Frequency > polyFreqLimits, vector<float > wetPath, vector<float > dryPath, Length water); 
00835                  
00836         
00845         bool equalByRequiredValue(CalWVRRow* x) ;
00846         
00847 #ifndef WITHOUT_ACS
00848 
00852         asdmIDL::CalWVRRowIDL *toIDL() const;
00853 #endif
00854         
00855 #ifndef WITHOUT_ACS
00856 
00861         void setFromIDL (asdmIDL::CalWVRRowIDL x) ;
00862 #endif
00863         
00868         std::string toXML() const;
00869 
00876         void setFromXML (std::string rowDoc) ;
00877 
00880         // binary-deserialization material from an EndianIStream  //
00882 
00883         std::map<std::string, CalWVRAttributeFromBin> fromBinMethods;
00884 void antennaNameFromBin( EndianIStream& eis);
00885 void calDataIdFromBin( EndianIStream& eis);
00886 void calReductionIdFromBin( EndianIStream& eis);
00887 void startValidTimeFromBin( EndianIStream& eis);
00888 void endValidTimeFromBin( EndianIStream& eis);
00889 void wvrMethodFromBin( EndianIStream& eis);
00890 void numInputAntennasFromBin( EndianIStream& eis);
00891 void inputAntennaNamesFromBin( EndianIStream& eis);
00892 void numChanFromBin( EndianIStream& eis);
00893 void chanFreqFromBin( EndianIStream& eis);
00894 void chanWidthFromBin( EndianIStream& eis);
00895 void refTempFromBin( EndianIStream& eis);
00896 void numPolyFromBin( EndianIStream& eis);
00897 void pathCoeffFromBin( EndianIStream& eis);
00898 void polyFreqLimitsFromBin( EndianIStream& eis);
00899 void wetPathFromBin( EndianIStream& eis);
00900 void dryPathFromBin( EndianIStream& eis);
00901 void waterFromBin( EndianIStream& eis);
00902 
00903         
00904 
00912          static CalWVRRow* fromBin(EndianIStream& eis, CalWVRTable& table, const std::vector<std::string>& attributesSeq);       
00913  
00920          void fromText(const std::string& attributeName, const std::string&  t);
00922 
00923 private:
00927         CalWVRTable &table;
00931         bool hasBeenAdded;
00932 
00933         // This method is used by the Table class when this row is added to the table.
00934         void isAdded(bool added);
00935 
00936 
00945         CalWVRRow (CalWVRTable &table);
00946 
00964          CalWVRRow (CalWVRTable &table, CalWVRRow &row);
00965                 
00967         // Intrinsic Table Attributes //
00969         
00970         
00971         // ===> Attribute startValidTime
00972         
00973         
00974 
00975         ArrayTime startValidTime;
00976 
00977         
00978         
00979         
00980 
00981         
00982         // ===> Attribute endValidTime
00983         
00984         
00985 
00986         ArrayTime endValidTime;
00987 
00988         
00989         
00990         
00991 
00992         
00993         // ===> Attribute wvrMethod
00994         
00995         
00996 
00997         WVRMethodMod::WVRMethod wvrMethod;
00998 
00999         
01000         
01001         
01002 
01003         
01004         // ===> Attribute antennaName
01005         
01006         
01007 
01008         string antennaName;
01009 
01010         
01011         
01012         
01013 
01014         
01015         // ===> Attribute numInputAntennas
01016         
01017         
01018 
01019         int numInputAntennas;
01020 
01021         
01022         
01023         
01024 
01025         
01026         // ===> Attribute inputAntennaNames
01027         
01028         
01029 
01030         vector<string > inputAntennaNames;
01031 
01032         
01033         
01034         
01035 
01036         
01037         // ===> Attribute numChan
01038         
01039         
01040 
01041         int numChan;
01042 
01043         
01044         
01045         
01046 
01047         
01048         // ===> Attribute chanFreq
01049         
01050         
01051 
01052         vector<Frequency > chanFreq;
01053 
01054         
01055         
01056         
01057 
01058         
01059         // ===> Attribute chanWidth
01060         
01061         
01062 
01063         vector<Frequency > chanWidth;
01064 
01065         
01066         
01067         
01068 
01069         
01070         // ===> Attribute refTemp
01071         
01072         
01073 
01074         vector<vector<Temperature > > refTemp;
01075 
01076         
01077         
01078         
01079 
01080         
01081         // ===> Attribute numPoly
01082         
01083         
01084 
01085         int numPoly;
01086 
01087         
01088         
01089         
01090 
01091         
01092         // ===> Attribute pathCoeff
01093         
01094         
01095 
01096         vector<vector<vector<float > > > pathCoeff;
01097 
01098         
01099         
01100         
01101 
01102         
01103         // ===> Attribute polyFreqLimits
01104         
01105         
01106 
01107         vector<Frequency > polyFreqLimits;
01108 
01109         
01110         
01111         
01112 
01113         
01114         // ===> Attribute wetPath
01115         
01116         
01117 
01118         vector<float > wetPath;
01119 
01120         
01121         
01122         
01123 
01124         
01125         // ===> Attribute dryPath
01126         
01127         
01128 
01129         vector<float > dryPath;
01130 
01131         
01132         
01133         
01134 
01135         
01136         // ===> Attribute water
01137         
01138         
01139 
01140         Length water;
01141 
01142         
01143         
01144         
01145 
01147         // Extrinsic Table Attributes //
01149         
01150         
01151         // ===> Attribute calDataId
01152         
01153         
01154 
01155         Tag calDataId;
01156 
01157         
01158         
01159         
01160 
01161         
01162         // ===> Attribute calReductionId
01163         
01164         
01165 
01166         Tag calReductionId;
01167 
01168         
01169         
01170         
01171 
01173         // Links //
01175         
01176         
01177                 
01178 
01179          
01180 
01181         
01182 
01183         
01184                 
01185 
01186          
01187 
01188         
01189 
01190         
01191 /*
01193         // binary-deserialization material from an EndianIStream  //
01195         std::map<std::string, CalWVRAttributeFromBin> fromBinMethods;
01196 void antennaNameFromBin( EndianIStream& eis);
01197 void calDataIdFromBin( EndianIStream& eis);
01198 void calReductionIdFromBin( EndianIStream& eis);
01199 void startValidTimeFromBin( EndianIStream& eis);
01200 void endValidTimeFromBin( EndianIStream& eis);
01201 void wvrMethodFromBin( EndianIStream& eis);
01202 void numInputAntennasFromBin( EndianIStream& eis);
01203 void inputAntennaNamesFromBin( EndianIStream& eis);
01204 void numChanFromBin( EndianIStream& eis);
01205 void chanFreqFromBin( EndianIStream& eis);
01206 void chanWidthFromBin( EndianIStream& eis);
01207 void refTempFromBin( EndianIStream& eis);
01208 void numPolyFromBin( EndianIStream& eis);
01209 void pathCoeffFromBin( EndianIStream& eis);
01210 void polyFreqLimitsFromBin( EndianIStream& eis);
01211 void wetPathFromBin( EndianIStream& eis);
01212 void dryPathFromBin( EndianIStream& eis);
01213 void waterFromBin( EndianIStream& eis);
01214 
01215         
01216 */
01217         
01219         // text-deserialization material //
01221         std::map<std::string, CalWVRAttributeFromText> fromTextMethods;
01222         
01223 void antennaNameFromText (const string & s);
01224         
01225         
01226 void calDataIdFromText (const string & s);
01227         
01228         
01229 void calReductionIdFromText (const string & s);
01230         
01231         
01232 void startValidTimeFromText (const string & s);
01233         
01234         
01235 void endValidTimeFromText (const string & s);
01236         
01237         
01238 void wvrMethodFromText (const string & s);
01239         
01240         
01241 void numInputAntennasFromText (const string & s);
01242         
01243         
01244 void inputAntennaNamesFromText (const string & s);
01245         
01246         
01247 void numChanFromText (const string & s);
01248         
01249         
01250 void chanFreqFromText (const string & s);
01251         
01252         
01253 void chanWidthFromText (const string & s);
01254         
01255         
01256 void refTempFromText (const string & s);
01257         
01258         
01259 void numPolyFromText (const string & s);
01260         
01261         
01262 void pathCoeffFromText (const string & s);
01263         
01264         
01265 void polyFreqLimitsFromText (const string & s);
01266         
01267         
01268 void wetPathFromText (const string & s);
01269         
01270         
01271 void dryPathFromText (const string & s);
01272         
01273         
01274 void waterFromText (const string & s);
01275         
01276 
01277                 
01278         
01283          void toBin(EndianOSStream& eoss);
01284                  
01294 };
01295 
01296 } // End namespace asdm
01297 
01298 #endif /* CalWVR_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines