casa  $Rev:20696$
SeeingRow.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 SeeingRow.h
00032  */
00033  
00034 #ifndef SeeingRow_CLASS
00035 #define SeeingRow_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 <Angle.h>
00052         
00053 
00054          
00055 #include <Length.h>
00056         
00057 
00058          
00059 #include <ArrayTimeInterval.h>
00060         
00061 
00062 
00063 
00064 
00065         
00066 
00067         
00068 
00069         
00070 
00071         
00072 
00073         
00074 
00075         
00076 
00077 
00078 
00079 #include <ConversionException.h>
00080 #include <NoSuchRow.h>
00081 #include <IllegalAccessException.h>
00082 
00083 #include <RowTransformer.h>
00084 //#include <TableStreamReader.h>
00085 
00086 /*\file Seeing.h
00087     \brief Generated from model's revision "1.62", branch "HEAD"
00088 */
00089 
00090 namespace asdm {
00091 
00092 //class asdm::SeeingTable;
00093 
00094         
00095 
00096 class SeeingRow;
00097 typedef void (SeeingRow::*SeeingAttributeFromBin) (EndianIStream& eis);
00098 typedef void (SeeingRow::*SeeingAttributeFromText) (const string& s);
00099 
00106 class SeeingRow {
00107 friend class asdm::SeeingTable;
00108 friend class asdm::RowTransformer<SeeingRow>;
00109 //friend class asdm::TableStreamReader<SeeingTable, SeeingRow>;
00110 
00111 public:
00112 
00113         virtual ~SeeingRow();
00114 
00118         SeeingTable &getTable() const;
00119         
00124         bool isAdded() const;
00125                 
00127         // Intrinsic Table Attributes //
00129         
00130         
00131         // ===> Attribute timeInterval
00132         
00133         
00134         
00135 
00136         
00141         ArrayTimeInterval getTimeInterval() const;
00142         
00143  
00144         
00145         
00155         void setTimeInterval (ArrayTimeInterval timeInterval);
00156                 
00157         
00158         
00159         
00160 
00161 
00162         
00163         // ===> Attribute numBaseLength
00164         
00165         
00166         
00167 
00168         
00173         int getNumBaseLength() const;
00174         
00175  
00176         
00177         
00185         void setNumBaseLength (int numBaseLength);
00186                 
00187         
00188         
00189         
00190 
00191 
00192         
00193         // ===> Attribute baseLength
00194         
00195         
00196         
00197 
00198         
00203         vector<Length > getBaseLength() const;
00204         
00205  
00206         
00207         
00215         void setBaseLength (vector<Length > baseLength);
00216                 
00217         
00218         
00219         
00220 
00221 
00222         
00223         // ===> Attribute phaseRms
00224         
00225         
00226         
00227 
00228         
00233         vector<Angle > getPhaseRms() const;
00234         
00235  
00236         
00237         
00245         void setPhaseRms (vector<Angle > phaseRms);
00246                 
00247         
00248         
00249         
00250 
00251 
00252         
00253         // ===> Attribute seeing
00254         
00255         
00256         
00257 
00258         
00263         float getSeeing() const;
00264         
00265  
00266         
00267         
00275         void setSeeing (float seeing);
00276                 
00277         
00278         
00279         
00280 
00281 
00282         
00283         // ===> Attribute exponent
00284         
00285         
00286         
00287 
00288         
00293         float getExponent() const;
00294         
00295  
00296         
00297         
00305         void setExponent (float exponent);
00306                 
00307         
00308         
00309         
00310 
00311 
00313         // Extrinsic Table Attributes //
00315         
00317         // Links //
00319         
00320         
00321         
00322         
00340         bool compareNoAutoInc(ArrayTimeInterval timeInterval, int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms, float seeing, float exponent);
00341         
00342         
00343 
00344         
00360         bool compareRequiredValue(int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms, float seeing, float exponent); 
00361                  
00362         
00371         bool equalByRequiredValue(SeeingRow* x) ;
00372         
00373 #ifndef WITHOUT_ACS
00374 
00378         asdmIDL::SeeingRowIDL *toIDL() const;
00379 #endif
00380         
00381 #ifndef WITHOUT_ACS
00382 
00387         void setFromIDL (asdmIDL::SeeingRowIDL x) ;
00388 #endif
00389         
00394         std::string toXML() const;
00395 
00402         void setFromXML (std::string rowDoc) ;
00403 
00406         // binary-deserialization material from an EndianIStream  //
00408 
00409         std::map<std::string, SeeingAttributeFromBin> fromBinMethods;
00410 void timeIntervalFromBin( EndianIStream& eis);
00411 void numBaseLengthFromBin( EndianIStream& eis);
00412 void baseLengthFromBin( EndianIStream& eis);
00413 void phaseRmsFromBin( EndianIStream& eis);
00414 void seeingFromBin( EndianIStream& eis);
00415 void exponentFromBin( EndianIStream& eis);
00416 
00417         
00418 
00426          static SeeingRow* fromBin(EndianIStream& eis, SeeingTable& table, const std::vector<std::string>& attributesSeq);       
00427  
00434          void fromText(const std::string& attributeName, const std::string&  t);
00436 
00437 private:
00441         SeeingTable &table;
00445         bool hasBeenAdded;
00446 
00447         // This method is used by the Table class when this row is added to the table.
00448         void isAdded(bool added);
00449 
00450 
00459         SeeingRow (SeeingTable &table);
00460 
00478          SeeingRow (SeeingTable &table, SeeingRow &row);
00479                 
00481         // Intrinsic Table Attributes //
00483         
00484         
00485         // ===> Attribute timeInterval
00486         
00487         
00488 
00489         ArrayTimeInterval timeInterval;
00490 
00491         
00492         
00493         
00494 
00495         
00496         // ===> Attribute numBaseLength
00497         
00498         
00499 
00500         int numBaseLength;
00501 
00502         
00503         
00504         
00505 
00506         
00507         // ===> Attribute baseLength
00508         
00509         
00510 
00511         vector<Length > baseLength;
00512 
00513         
00514         
00515         
00516 
00517         
00518         // ===> Attribute phaseRms
00519         
00520         
00521 
00522         vector<Angle > phaseRms;
00523 
00524         
00525         
00526         
00527 
00528         
00529         // ===> Attribute seeing
00530         
00531         
00532 
00533         float seeing;
00534 
00535         
00536         
00537         
00538 
00539         
00540         // ===> Attribute exponent
00541         
00542         
00543 
00544         float exponent;
00545 
00546         
00547         
00548         
00549 
00551         // Extrinsic Table Attributes //
00553         
00555         // Links //
00557         
00558         
00559 /*
00561         // binary-deserialization material from an EndianIStream  //
00563         std::map<std::string, SeeingAttributeFromBin> fromBinMethods;
00564 void timeIntervalFromBin( EndianIStream& eis);
00565 void numBaseLengthFromBin( EndianIStream& eis);
00566 void baseLengthFromBin( EndianIStream& eis);
00567 void phaseRmsFromBin( EndianIStream& eis);
00568 void seeingFromBin( EndianIStream& eis);
00569 void exponentFromBin( EndianIStream& eis);
00570 
00571         
00572 */
00573         
00575         // text-deserialization material //
00577         std::map<std::string, SeeingAttributeFromText> fromTextMethods;
00578         
00579 void timeIntervalFromText (const string & s);
00580         
00581         
00582 void numBaseLengthFromText (const string & s);
00583         
00584         
00585 void baseLengthFromText (const string & s);
00586         
00587         
00588 void phaseRmsFromText (const string & s);
00589         
00590         
00591 void seeingFromText (const string & s);
00592         
00593         
00594 void exponentFromText (const string & s);
00595         
00596 
00597                 
00598         
00603          void toBin(EndianOSStream& eoss);
00604                  
00614 };
00615 
00616 } // End namespace asdm
00617 
00618 #endif /* Seeing_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines