DopplerRow.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 DopplerRow.h
00032  */
00033  
00034 #ifndef DopplerRow_CLASS
00035 #define DopplerRow_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::DopplerRowIDL;
00047 #endif
00048 
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057         
00058 
00059         
00060 
00061         
00062 #include "CDopplerReferenceCode.h"
00063 using namespace DopplerReferenceCodeMod;
00064         
00065 
00066 
00067 
00068 #include <ConversionException.h>
00069 #include <NoSuchRow.h>
00070 #include <IllegalAccessException.h>
00071 
00072 
00073 /*\file Doppler.h
00074     \brief Generated from model's revision "1.55", branch "HEAD"
00075 */
00076 
00077 namespace asdm {
00078 
00079 //class asdm::DopplerTable;
00080 
00081 
00082 // class asdm::SourceRow;
00083 class SourceRow;
00084         
00085 
00086 class DopplerRow;
00087 typedef void (DopplerRow::*DopplerAttributeFromBin) (EndianISStream& eiss);
00088 
00095 class DopplerRow {
00096 friend class asdm::DopplerTable;
00097 
00098 public:
00099 
00100         virtual ~DopplerRow();
00101 
00105         DopplerTable &getTable() const;
00106         
00111         bool isAdded() const;
00112                 
00114         // Intrinsic Table Attributes //
00116         
00117         
00118         // ===> Attribute dopplerId
00119         
00120         
00121         
00122 
00123         
00128         int getDopplerId() const;
00129         
00130  
00131         
00132         
00133         
00134         
00135 
00136 
00137         
00138         // ===> Attribute transitionIndex
00139         
00140         
00141         
00142 
00143         
00148         int getTransitionIndex() const;
00149         
00150  
00151         
00152         
00160         void setTransitionIndex (int transitionIndex);
00161                 
00162         
00163         
00164         
00165 
00166 
00167         
00168         // ===> Attribute velDef
00169         
00170         
00171         
00172 
00173         
00178         DopplerReferenceCodeMod::DopplerReferenceCode getVelDef() const;
00179         
00180  
00181         
00182         
00190         void setVelDef (DopplerReferenceCodeMod::DopplerReferenceCode velDef);
00191                 
00192         
00193         
00194         
00195 
00196 
00198         // Extrinsic Table Attributes //
00200         
00201         
00202         // ===> Attribute sourceId
00203         
00204         
00205         
00206 
00207         
00212         int getSourceId() const;
00213         
00214  
00215         
00216         
00226         void setSourceId (int sourceId);
00227                 
00228         
00229         
00230         
00231 
00232 
00234         // Links //
00236         
00237         
00238 
00239         
00240                 
00241         // ===> Slice link from a row of Doppler table to a collection of row of Source table.
00242         
00248         vector <SourceRow *> getSources();
00249         
00250         
00251 
00252         
00253 
00254         
00255         
00256         
00268         bool compareNoAutoInc(int sourceId, int transitionIndex, DopplerReferenceCodeMod::DopplerReferenceCode velDef);
00269         
00270         
00271 
00272         
00282         bool compareRequiredValue(int transitionIndex, DopplerReferenceCodeMod::DopplerReferenceCode velDef); 
00283                  
00284         
00293         bool equalByRequiredValue(DopplerRow* x) ;
00294         
00295 #ifndef WITHOUT_ACS
00296 
00300         DopplerRowIDL *toIDL() const;
00301 #endif
00302         
00303 #ifndef WITHOUT_ACS
00304 
00309         void setFromIDL (DopplerRowIDL x) ;
00310 #endif
00311         
00316         string toXML() const;
00317 
00324         void setFromXML (string rowDoc) ;       
00325 
00326 private:
00330         DopplerTable &table;
00334         bool hasBeenAdded;
00335 
00336         // This method is used by the Table class when this row is added to the table.
00337         void isAdded(bool added);
00338 
00339 
00348         DopplerRow (DopplerTable &table);
00349 
00367          DopplerRow (DopplerTable &table, DopplerRow &row);
00368                 
00370         // Intrinsic Table Attributes //
00372         
00373         
00374         // ===> Attribute dopplerId
00375         
00376         
00377 
00378         int dopplerId;
00379 
00380         
00381         
00382         
00392         void setDopplerId (int dopplerId);
00393                 
00394         
00395 
00396         
00397         // ===> Attribute transitionIndex
00398         
00399         
00400 
00401         int transitionIndex;
00402 
00403         
00404         
00405         
00406 
00407         
00408         // ===> Attribute velDef
00409         
00410         
00411 
00412         DopplerReferenceCodeMod::DopplerReferenceCode velDef;
00413 
00414         
00415         
00416         
00417 
00419         // Extrinsic Table Attributes //
00421         
00422         
00423         // ===> Attribute sourceId
00424         
00425         
00426 
00427         int sourceId;
00428 
00429         
00430         
00431         
00432 
00434         // Links //
00436         
00437         
00438                 
00439 
00440 
00441         
00442 
00443         
00445         // binary-deserialization material//
00447         map<string, DopplerAttributeFromBin> fromBinMethods;
00448 void dopplerIdFromBin( EndianISStream& eiss);
00449 void sourceIdFromBin( EndianISStream& eiss);
00450 void transitionIndexFromBin( EndianISStream& eiss);
00451 void velDefFromBin( EndianISStream& eiss);
00452 
00453                 
00454         
00459          void toBin(EndianOSStream& eoss);
00460                  
00468          static DopplerRow* fromBin(EndianISStream& eiss, DopplerTable& table, const vector<string>& attributesSeq);     
00469 
00470 };
00471 
00472 } // End namespace asdm
00473 
00474 #endif /* Doppler_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines