casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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.61", 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);       
00428 
00429 private:
00433         SeeingTable &table;
00437         bool hasBeenAdded;
00438 
00439         // This method is used by the Table class when this row is added to the table.
00440         void isAdded(bool added);
00441 
00442 
00451         SeeingRow (SeeingTable &table);
00452 
00470          SeeingRow (SeeingTable &table, SeeingRow &row);
00471                 
00473         // Intrinsic Table Attributes //
00475         
00476         
00477         // ===> Attribute timeInterval
00478         
00479         
00480 
00481         ArrayTimeInterval timeInterval;
00482 
00483         
00484         
00485         
00486 
00487         
00488         // ===> Attribute numBaseLength
00489         
00490         
00491 
00492         int numBaseLength;
00493 
00494         
00495         
00496         
00497 
00498         
00499         // ===> Attribute baseLength
00500         
00501         
00502 
00503         vector<Length > baseLength;
00504 
00505         
00506         
00507         
00508 
00509         
00510         // ===> Attribute phaseRms
00511         
00512         
00513 
00514         vector<Angle > phaseRms;
00515 
00516         
00517         
00518         
00519 
00520         
00521         // ===> Attribute seeing
00522         
00523         
00524 
00525         float seeing;
00526 
00527         
00528         
00529         
00530 
00531         
00532         // ===> Attribute exponent
00533         
00534         
00535 
00536         float exponent;
00537 
00538         
00539         
00540         
00541 
00543         // Extrinsic Table Attributes //
00545         
00547         // Links //
00549         
00550         
00551 /*
00553         // binary-deserialization material from an EndianIStream  //
00555         std::map<std::string, SeeingAttributeFromBin> fromBinMethods;
00556 void timeIntervalFromBin( EndianIStream& eis);
00557 void numBaseLengthFromBin( EndianIStream& eis);
00558 void baseLengthFromBin( EndianIStream& eis);
00559 void phaseRmsFromBin( EndianIStream& eis);
00560 void seeingFromBin( EndianIStream& eis);
00561 void exponentFromBin( EndianIStream& eis);
00562 
00563         
00564 */
00565         
00567         // text-deserialization material //
00569         std::map<std::string, SeeingAttributeFromText> fromTextMethods;
00570         
00571 void timeIntervalFromText (const string & s);
00572         
00573         
00574 void numBaseLengthFromText (const string & s);
00575         
00576         
00577 void baseLengthFromText (const string & s);
00578         
00579         
00580 void phaseRmsFromText (const string & s);
00581         
00582         
00583 void seeingFromText (const string & s);
00584         
00585         
00586 void exponentFromText (const string & s);
00587         
00588 
00589                 
00590         
00591         void fromText(const std::string& attributeName, const std::string&  t);
00592         
00597          void toBin(EndianOSStream& eoss);
00598                  
00608 };
00609 
00610 } // End namespace asdm
00611 
00612 #endif /* Seeing_CLASS */