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 using std::vector;
00041 using std::string;
00042 using std::set;
00043 
00044 #ifndef WITHOUT_ACS
00045 #include <asdmIDLC.h>
00046 using asdmIDL::SeeingRowIDL;
00047 #endif
00048 
00049 
00050 
00051 
00052 
00053 
00054 #include <Angle.h>
00055 using  asdm::Angle;
00056 
00057 #include <Length.h>
00058 using  asdm::Length;
00059 
00060 #include <ArrayTimeInterval.h>
00061 using  asdm::ArrayTimeInterval;
00062 
00063 
00064 
00065 
00066         
00067 
00068         
00069 
00070         
00071 
00072         
00073 
00074         
00075 
00076         
00077 
00078 
00079 
00080 #include <ConversionException.h>
00081 #include <NoSuchRow.h>
00082 #include <IllegalAccessException.h>
00083 
00084 
00085 /*\file Seeing.h
00086     \brief Generated from model's revision "1.55", branch "HEAD"
00087 */
00088 
00089 namespace asdm {
00090 
00091 //class asdm::SeeingTable;
00092 
00093         
00094 
00095 class SeeingRow;
00096 typedef void (SeeingRow::*SeeingAttributeFromBin) (EndianISStream& eiss);
00097 
00104 class SeeingRow {
00105 friend class asdm::SeeingTable;
00106 
00107 public:
00108 
00109         virtual ~SeeingRow();
00110 
00114         SeeingTable &getTable() const;
00115         
00120         bool isAdded() const;
00121                 
00123         // Intrinsic Table Attributes //
00125         
00126         
00127         // ===> Attribute timeInterval
00128         
00129         
00130         
00131 
00132         
00137         ArrayTimeInterval getTimeInterval() const;
00138         
00139  
00140         
00141         
00151         void setTimeInterval (ArrayTimeInterval timeInterval);
00152                 
00153         
00154         
00155         
00156 
00157 
00158         
00159         // ===> Attribute numBaseLength
00160         
00161         
00162         
00163 
00164         
00169         int getNumBaseLength() const;
00170         
00171  
00172         
00173         
00181         void setNumBaseLength (int numBaseLength);
00182                 
00183         
00184         
00185         
00186 
00187 
00188         
00189         // ===> Attribute baseLength
00190         
00191         
00192         
00193 
00194         
00199         vector<Length > getBaseLength() const;
00200         
00201  
00202         
00203         
00211         void setBaseLength (vector<Length > baseLength);
00212                 
00213         
00214         
00215         
00216 
00217 
00218         
00219         // ===> Attribute phaseRms
00220         
00221         
00222         
00223 
00224         
00229         vector<Angle > getPhaseRms() const;
00230         
00231  
00232         
00233         
00241         void setPhaseRms (vector<Angle > phaseRms);
00242                 
00243         
00244         
00245         
00246 
00247 
00248         
00249         // ===> Attribute seeing
00250         
00251         
00252         
00253 
00254         
00259         float getSeeing() const;
00260         
00261  
00262         
00263         
00271         void setSeeing (float seeing);
00272                 
00273         
00274         
00275         
00276 
00277 
00278         
00279         // ===> Attribute exponent
00280         
00281         
00282         
00283 
00284         
00289         float getExponent() const;
00290         
00291  
00292         
00293         
00301         void setExponent (float exponent);
00302                 
00303         
00304         
00305         
00306 
00307 
00309         // Extrinsic Table Attributes //
00311         
00313         // Links //
00315         
00316         
00317         
00318         
00336         bool compareNoAutoInc(ArrayTimeInterval timeInterval, int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms, float seeing, float exponent);
00337         
00338         
00339 
00340         
00356         bool compareRequiredValue(int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms, float seeing, float exponent); 
00357                  
00358         
00367         bool equalByRequiredValue(SeeingRow* x) ;
00368         
00369 #ifndef WITHOUT_ACS
00370 
00374         SeeingRowIDL *toIDL() const;
00375 #endif
00376         
00377 #ifndef WITHOUT_ACS
00378 
00383         void setFromIDL (SeeingRowIDL x) ;
00384 #endif
00385         
00390         string toXML() const;
00391 
00398         void setFromXML (string rowDoc) ;       
00399 
00400 private:
00404         SeeingTable &table;
00408         bool hasBeenAdded;
00409 
00410         // This method is used by the Table class when this row is added to the table.
00411         void isAdded(bool added);
00412 
00413 
00422         SeeingRow (SeeingTable &table);
00423 
00441          SeeingRow (SeeingTable &table, SeeingRow &row);
00442                 
00444         // Intrinsic Table Attributes //
00446         
00447         
00448         // ===> Attribute timeInterval
00449         
00450         
00451 
00452         ArrayTimeInterval timeInterval;
00453 
00454         
00455         
00456         
00457 
00458         
00459         // ===> Attribute numBaseLength
00460         
00461         
00462 
00463         int numBaseLength;
00464 
00465         
00466         
00467         
00468 
00469         
00470         // ===> Attribute baseLength
00471         
00472         
00473 
00474         vector<Length > baseLength;
00475 
00476         
00477         
00478         
00479 
00480         
00481         // ===> Attribute phaseRms
00482         
00483         
00484 
00485         vector<Angle > phaseRms;
00486 
00487         
00488         
00489         
00490 
00491         
00492         // ===> Attribute seeing
00493         
00494         
00495 
00496         float seeing;
00497 
00498         
00499         
00500         
00501 
00502         
00503         // ===> Attribute exponent
00504         
00505         
00506 
00507         float exponent;
00508 
00509         
00510         
00511         
00512 
00514         // Extrinsic Table Attributes //
00516         
00518         // Links //
00520         
00521         
00523         // binary-deserialization material//
00525         map<string, SeeingAttributeFromBin> fromBinMethods;
00526 void timeIntervalFromBin( EndianISStream& eiss);
00527 void numBaseLengthFromBin( EndianISStream& eiss);
00528 void baseLengthFromBin( EndianISStream& eiss);
00529 void phaseRmsFromBin( EndianISStream& eiss);
00530 void seeingFromBin( EndianISStream& eiss);
00531 void exponentFromBin( EndianISStream& eiss);
00532 
00533                 
00534         
00539          void toBin(EndianOSStream& eoss);
00540                  
00548          static SeeingRow* fromBin(EndianISStream& eiss, SeeingTable& table, const vector<string>& attributesSeq);       
00549 
00550 };
00551 
00552 } // End namespace asdm
00553 
00554 #endif /* Seeing_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines