casa  $Rev:20696$
CalFocusModelRow.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 CalFocusModelRow.h
00032  */
00033  
00034 #ifndef CalFocusModelRow_CLASS
00035 #define CalFocusModelRow_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 
00064 
00065         
00066 
00067         
00068 #include "CReceiverBand.h"
00069         
00070 
00071         
00072 #include "CPolarizationType.h"
00073         
00074 
00075         
00076 
00077         
00078 
00079         
00080 #include "CAntennaMake.h"
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 #include <ConversionException.h>
00106 #include <NoSuchRow.h>
00107 #include <IllegalAccessException.h>
00108 
00109 #include <RowTransformer.h>
00110 //#include <TableStreamReader.h>
00111 
00112 /*\file CalFocusModel.h
00113     \brief Generated from model's revision "1.62", branch "HEAD"
00114 */
00115 
00116 namespace asdm {
00117 
00118 //class asdm::CalFocusModelTable;
00119 
00120 
00121 // class asdm::CalReductionRow;
00122 class CalReductionRow;
00123 
00124 // class asdm::CalDataRow;
00125 class CalDataRow;
00126         
00127 
00128 class CalFocusModelRow;
00129 typedef void (CalFocusModelRow::*CalFocusModelAttributeFromBin) (EndianIStream& eis);
00130 typedef void (CalFocusModelRow::*CalFocusModelAttributeFromText) (const string& s);
00131 
00138 class CalFocusModelRow {
00139 friend class asdm::CalFocusModelTable;
00140 friend class asdm::RowTransformer<CalFocusModelRow>;
00141 //friend class asdm::TableStreamReader<CalFocusModelTable, CalFocusModelRow>;
00142 
00143 public:
00144 
00145         virtual ~CalFocusModelRow();
00146 
00150         CalFocusModelTable &getTable() const;
00151         
00156         bool isAdded() const;
00157                 
00159         // Intrinsic Table Attributes //
00161         
00162         
00163         // ===> Attribute antennaName
00164         
00165         
00166         
00167 
00168         
00173         string getAntennaName() const;
00174         
00175  
00176         
00177         
00187         void setAntennaName (string antennaName);
00188                 
00189         
00190         
00191         
00192 
00193 
00194         
00195         // ===> Attribute receiverBand
00196         
00197         
00198         
00199 
00200         
00205         ReceiverBandMod::ReceiverBand getReceiverBand() const;
00206         
00207  
00208         
00209         
00219         void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00220                 
00221         
00222         
00223         
00224 
00225 
00226         
00227         // ===> Attribute polarizationType
00228         
00229         
00230         
00231 
00232         
00237         PolarizationTypeMod::PolarizationType getPolarizationType() const;
00238         
00239  
00240         
00241         
00251         void setPolarizationType (PolarizationTypeMod::PolarizationType polarizationType);
00252                 
00253         
00254         
00255         
00256 
00257 
00258         
00259         // ===> Attribute startValidTime
00260         
00261         
00262         
00263 
00264         
00269         ArrayTime getStartValidTime() const;
00270         
00271  
00272         
00273         
00281         void setStartValidTime (ArrayTime startValidTime);
00282                 
00283         
00284         
00285         
00286 
00287 
00288         
00289         // ===> Attribute endValidTime
00290         
00291         
00292         
00293 
00294         
00299         ArrayTime getEndValidTime() const;
00300         
00301  
00302         
00303         
00311         void setEndValidTime (ArrayTime endValidTime);
00312                 
00313         
00314         
00315         
00316 
00317 
00318         
00319         // ===> Attribute antennaMake
00320         
00321         
00322         
00323 
00324         
00329         AntennaMakeMod::AntennaMake getAntennaMake() const;
00330         
00331  
00332         
00333         
00341         void setAntennaMake (AntennaMakeMod::AntennaMake antennaMake);
00342                 
00343         
00344         
00345         
00346 
00347 
00348         
00349         // ===> Attribute numCoeff
00350         
00351         
00352         
00353 
00354         
00359         int getNumCoeff() const;
00360         
00361  
00362         
00363         
00371         void setNumCoeff (int numCoeff);
00372                 
00373         
00374         
00375         
00376 
00377 
00378         
00379         // ===> Attribute numSourceObs
00380         
00381         
00382         
00383 
00384         
00389         int getNumSourceObs() const;
00390         
00391  
00392         
00393         
00401         void setNumSourceObs (int numSourceObs);
00402                 
00403         
00404         
00405         
00406 
00407 
00408         
00409         // ===> Attribute coeffName
00410         
00411         
00412         
00413 
00414         
00419         vector<string > getCoeffName() const;
00420         
00421  
00422         
00423         
00431         void setCoeffName (vector<string > coeffName);
00432                 
00433         
00434         
00435         
00436 
00437 
00438         
00439         // ===> Attribute coeffFormula
00440         
00441         
00442         
00443 
00444         
00449         vector<string > getCoeffFormula() const;
00450         
00451  
00452         
00453         
00461         void setCoeffFormula (vector<string > coeffFormula);
00462                 
00463         
00464         
00465         
00466 
00467 
00468         
00469         // ===> Attribute coeffValue
00470         
00471         
00472         
00473 
00474         
00479         vector<float > getCoeffValue() const;
00480         
00481  
00482         
00483         
00491         void setCoeffValue (vector<float > coeffValue);
00492                 
00493         
00494         
00495         
00496 
00497 
00498         
00499         // ===> Attribute coeffError
00500         
00501         
00502         
00503 
00504         
00509         vector<float > getCoeffError() const;
00510         
00511  
00512         
00513         
00521         void setCoeffError (vector<float > coeffError);
00522                 
00523         
00524         
00525         
00526 
00527 
00528         
00529         // ===> Attribute coeffFixed
00530         
00531         
00532         
00533 
00534         
00539         vector<bool > getCoeffFixed() const;
00540         
00541  
00542         
00543         
00551         void setCoeffFixed (vector<bool > coeffFixed);
00552                 
00553         
00554         
00555         
00556 
00557 
00558         
00559         // ===> Attribute focusModel
00560         
00561         
00562         
00563 
00564         
00569         string getFocusModel() const;
00570         
00571  
00572         
00573         
00581         void setFocusModel (string focusModel);
00582                 
00583         
00584         
00585         
00586 
00587 
00588         
00589         // ===> Attribute focusRMS
00590         
00591         
00592         
00593 
00594         
00599         vector<Length > getFocusRMS() const;
00600         
00601  
00602         
00603         
00611         void setFocusRMS (vector<Length > focusRMS);
00612                 
00613         
00614         
00615         
00616 
00617 
00618         
00619         // ===> Attribute reducedChiSquared
00620         
00621         
00622         
00623 
00624         
00629         double getReducedChiSquared() const;
00630         
00631  
00632         
00633         
00641         void setReducedChiSquared (double reducedChiSquared);
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          CalReductionRow* getCalReductionUsingCalReductionId();
00731          
00732 
00733         
00734 
00735         
00736 
00737         
00738                 
00745          CalDataRow* getCalDataUsingCalDataId();
00746          
00747 
00748         
00749 
00750         
00751         
00752         
00794         bool compareNoAutoInc(string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numCoeff, int numSourceObs, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffValue, vector<float > coeffError, vector<bool > coeffFixed, string focusModel, vector<Length > focusRMS, double reducedChiSquared);
00795         
00796         
00797 
00798         
00830         bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numCoeff, int numSourceObs, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffValue, vector<float > coeffError, vector<bool > coeffFixed, string focusModel, vector<Length > focusRMS, double reducedChiSquared); 
00831                  
00832         
00841         bool equalByRequiredValue(CalFocusModelRow* x) ;
00842         
00843 #ifndef WITHOUT_ACS
00844 
00848         asdmIDL::CalFocusModelRowIDL *toIDL() const;
00849 #endif
00850         
00851 #ifndef WITHOUT_ACS
00852 
00857         void setFromIDL (asdmIDL::CalFocusModelRowIDL x) ;
00858 #endif
00859         
00864         std::string toXML() const;
00865 
00872         void setFromXML (std::string rowDoc) ;
00873 
00876         // binary-deserialization material from an EndianIStream  //
00878 
00879         std::map<std::string, CalFocusModelAttributeFromBin> fromBinMethods;
00880 void antennaNameFromBin( EndianIStream& eis);
00881 void receiverBandFromBin( EndianIStream& eis);
00882 void polarizationTypeFromBin( EndianIStream& eis);
00883 void calDataIdFromBin( EndianIStream& eis);
00884 void calReductionIdFromBin( EndianIStream& eis);
00885 void startValidTimeFromBin( EndianIStream& eis);
00886 void endValidTimeFromBin( EndianIStream& eis);
00887 void antennaMakeFromBin( EndianIStream& eis);
00888 void numCoeffFromBin( EndianIStream& eis);
00889 void numSourceObsFromBin( EndianIStream& eis);
00890 void coeffNameFromBin( EndianIStream& eis);
00891 void coeffFormulaFromBin( EndianIStream& eis);
00892 void coeffValueFromBin( EndianIStream& eis);
00893 void coeffErrorFromBin( EndianIStream& eis);
00894 void coeffFixedFromBin( EndianIStream& eis);
00895 void focusModelFromBin( EndianIStream& eis);
00896 void focusRMSFromBin( EndianIStream& eis);
00897 void reducedChiSquaredFromBin( EndianIStream& eis);
00898 
00899         
00900 
00908          static CalFocusModelRow* fromBin(EndianIStream& eis, CalFocusModelTable& table, const std::vector<std::string>& attributesSeq);         
00909  
00916          void fromText(const std::string& attributeName, const std::string&  t);
00918 
00919 private:
00923         CalFocusModelTable &table;
00927         bool hasBeenAdded;
00928 
00929         // This method is used by the Table class when this row is added to the table.
00930         void isAdded(bool added);
00931 
00932 
00941         CalFocusModelRow (CalFocusModelTable &table);
00942 
00960          CalFocusModelRow (CalFocusModelTable &table, CalFocusModelRow &row);
00961                 
00963         // Intrinsic Table Attributes //
00965         
00966         
00967         // ===> Attribute antennaName
00968         
00969         
00970 
00971         string antennaName;
00972 
00973         
00974         
00975         
00976 
00977         
00978         // ===> Attribute receiverBand
00979         
00980         
00981 
00982         ReceiverBandMod::ReceiverBand receiverBand;
00983 
00984         
00985         
00986         
00987 
00988         
00989         // ===> Attribute polarizationType
00990         
00991         
00992 
00993         PolarizationTypeMod::PolarizationType polarizationType;
00994 
00995         
00996         
00997         
00998 
00999         
01000         // ===> Attribute startValidTime
01001         
01002         
01003 
01004         ArrayTime startValidTime;
01005 
01006         
01007         
01008         
01009 
01010         
01011         // ===> Attribute endValidTime
01012         
01013         
01014 
01015         ArrayTime endValidTime;
01016 
01017         
01018         
01019         
01020 
01021         
01022         // ===> Attribute antennaMake
01023         
01024         
01025 
01026         AntennaMakeMod::AntennaMake antennaMake;
01027 
01028         
01029         
01030         
01031 
01032         
01033         // ===> Attribute numCoeff
01034         
01035         
01036 
01037         int numCoeff;
01038 
01039         
01040         
01041         
01042 
01043         
01044         // ===> Attribute numSourceObs
01045         
01046         
01047 
01048         int numSourceObs;
01049 
01050         
01051         
01052         
01053 
01054         
01055         // ===> Attribute coeffName
01056         
01057         
01058 
01059         vector<string > coeffName;
01060 
01061         
01062         
01063         
01064 
01065         
01066         // ===> Attribute coeffFormula
01067         
01068         
01069 
01070         vector<string > coeffFormula;
01071 
01072         
01073         
01074         
01075 
01076         
01077         // ===> Attribute coeffValue
01078         
01079         
01080 
01081         vector<float > coeffValue;
01082 
01083         
01084         
01085         
01086 
01087         
01088         // ===> Attribute coeffError
01089         
01090         
01091 
01092         vector<float > coeffError;
01093 
01094         
01095         
01096         
01097 
01098         
01099         // ===> Attribute coeffFixed
01100         
01101         
01102 
01103         vector<bool > coeffFixed;
01104 
01105         
01106         
01107         
01108 
01109         
01110         // ===> Attribute focusModel
01111         
01112         
01113 
01114         string focusModel;
01115 
01116         
01117         
01118         
01119 
01120         
01121         // ===> Attribute focusRMS
01122         
01123         
01124 
01125         vector<Length > focusRMS;
01126 
01127         
01128         
01129         
01130 
01131         
01132         // ===> Attribute reducedChiSquared
01133         
01134         
01135 
01136         double reducedChiSquared;
01137 
01138         
01139         
01140         
01141 
01143         // Extrinsic Table Attributes //
01145         
01146         
01147         // ===> Attribute calDataId
01148         
01149         
01150 
01151         Tag calDataId;
01152 
01153         
01154         
01155         
01156 
01157         
01158         // ===> Attribute calReductionId
01159         
01160         
01161 
01162         Tag calReductionId;
01163 
01164         
01165         
01166         
01167 
01169         // Links //
01171         
01172         
01173                 
01174 
01175          
01176 
01177         
01178 
01179         
01180                 
01181 
01182          
01183 
01184         
01185 
01186         
01187 /*
01189         // binary-deserialization material from an EndianIStream  //
01191         std::map<std::string, CalFocusModelAttributeFromBin> fromBinMethods;
01192 void antennaNameFromBin( EndianIStream& eis);
01193 void receiverBandFromBin( EndianIStream& eis);
01194 void polarizationTypeFromBin( EndianIStream& eis);
01195 void calDataIdFromBin( EndianIStream& eis);
01196 void calReductionIdFromBin( EndianIStream& eis);
01197 void startValidTimeFromBin( EndianIStream& eis);
01198 void endValidTimeFromBin( EndianIStream& eis);
01199 void antennaMakeFromBin( EndianIStream& eis);
01200 void numCoeffFromBin( EndianIStream& eis);
01201 void numSourceObsFromBin( EndianIStream& eis);
01202 void coeffNameFromBin( EndianIStream& eis);
01203 void coeffFormulaFromBin( EndianIStream& eis);
01204 void coeffValueFromBin( EndianIStream& eis);
01205 void coeffErrorFromBin( EndianIStream& eis);
01206 void coeffFixedFromBin( EndianIStream& eis);
01207 void focusModelFromBin( EndianIStream& eis);
01208 void focusRMSFromBin( EndianIStream& eis);
01209 void reducedChiSquaredFromBin( EndianIStream& eis);
01210 
01211         
01212 */
01213         
01215         // text-deserialization material //
01217         std::map<std::string, CalFocusModelAttributeFromText> fromTextMethods;
01218         
01219 void antennaNameFromText (const string & s);
01220         
01221         
01222 void receiverBandFromText (const string & s);
01223         
01224         
01225 void polarizationTypeFromText (const string & s);
01226         
01227         
01228 void calDataIdFromText (const string & s);
01229         
01230         
01231 void calReductionIdFromText (const string & s);
01232         
01233         
01234 void startValidTimeFromText (const string & s);
01235         
01236         
01237 void endValidTimeFromText (const string & s);
01238         
01239         
01240 void antennaMakeFromText (const string & s);
01241         
01242         
01243 void numCoeffFromText (const string & s);
01244         
01245         
01246 void numSourceObsFromText (const string & s);
01247         
01248         
01249 void coeffNameFromText (const string & s);
01250         
01251         
01252 void coeffFormulaFromText (const string & s);
01253         
01254         
01255 void coeffValueFromText (const string & s);
01256         
01257         
01258 void coeffErrorFromText (const string & s);
01259         
01260         
01261 void coeffFixedFromText (const string & s);
01262         
01263         
01264 void focusModelFromText (const string & s);
01265         
01266         
01267 void focusRMSFromText (const string & s);
01268         
01269         
01270 void reducedChiSquaredFromText (const string & s);
01271         
01272 
01273                 
01274         
01279          void toBin(EndianOSStream& eoss);
01280                  
01290 };
01291 
01292 } // End namespace asdm
01293 
01294 #endif /* CalFocusModel_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines