DopplerRow.h

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 #include <Angle.h>
00050 #include <AngularRate.h>
00051 #include <ArrayTime.h>
00052 #include <ArrayTimeInterval.h>
00053 #include <Complex.h>
00054 #include <Entity.h>
00055 #include <EntityId.h>
00056 #include <EntityRef.h>
00057 #include <Flux.h>
00058 #include <Frequency.h>
00059 #include <Humidity.h>
00060 #include <Interval.h>
00061 #include <Length.h>
00062 #include <Pressure.h>
00063 #include <Speed.h>
00064 #include <Tag.h>
00065 #include <Temperature.h>
00066 #include <ConversionException.h>
00067 #include <NoSuchRow.h>
00068 #include <IllegalAccessException.h>
00069 
00070 /*
00071 #include <Enumerations.h>
00072 using namespace enumerations;
00073  */
00074 
00075 
00076 
00077 
00078         
00079 
00080         
00081 
00082         
00083 
00084 
00085 
00086 using asdm::Angle;
00087 using asdm::AngularRate;
00088 using asdm::ArrayTime;
00089 using asdm::Complex;
00090 using asdm::Entity;
00091 using asdm::EntityId;
00092 using asdm::EntityRef;
00093 using asdm::Flux;
00094 using asdm::Frequency;
00095 using asdm::Humidity;
00096 using asdm::Interval;
00097 using asdm::Length;
00098 using asdm::Pressure;
00099 using asdm::Speed;
00100 using asdm::Tag;
00101 using asdm::Temperature;
00102 using asdm::ConversionException;
00103 using asdm::NoSuchRow;
00104 using asdm::IllegalAccessException;
00105 
00106 /*\file Doppler.h
00107     \brief Generated from model's revision "1.41", branch "HEAD"
00108 */
00109 
00110 namespace asdm {
00111 
00112 //class asdm::DopplerTable;
00113 
00114 
00115 // class asdm::SourceRow;
00116 class SourceRow;
00117         
00118 
00125 class DopplerRow {
00126 friend class asdm::DopplerTable;
00127 
00128 public:
00129 
00130         virtual ~DopplerRow();
00131 
00135         DopplerTable &getTable() const;
00136         
00137 #ifndef WITHOUT_ACS
00138 
00142         DopplerRowIDL *toIDL() const;
00143 #endif
00144         
00145 #ifndef WITHOUT_ACS
00146 
00150         void setFromIDL (DopplerRowIDL x) throw(ConversionException);
00151 #endif
00152         
00157         string toXML() const;
00158 
00164         void setFromXML (string rowDoc) throw(ConversionException);
00165         
00167         // Intrinsic Table Attributes //
00169         
00170         
00171         // ===> Attribute dopplerId
00172         
00173         
00174         
00175 
00176         
00181         int getDopplerId() const;
00182         
00183  
00184         
00185         
00186         
00187         
00188 
00189 
00190         
00191         // ===> Attribute transitionIndex
00192         
00193         
00194         
00195 
00196         
00201         int getTransitionIndex() const;
00202         
00203  
00204         
00205         
00211         void setTransitionIndex (int transitionIndex);
00212                 
00213         
00214         
00215         
00216 
00217 
00218         
00219         // ===> Attribute velDef
00220         
00221         
00222         
00223 
00224         
00229         Speed getVelDef() const;
00230         
00231  
00232         
00233         
00239         void setVelDef (Speed velDef);
00240                 
00241         
00242         
00243         
00244 
00245 
00247         // Extrinsic Table Attributes //
00249         
00250         
00251         // ===> Attribute sourceId
00252         
00253         
00254         
00255 
00256         
00261         int getSourceId() const;
00262         
00263  
00264         
00265         
00272         void setSourceId (int sourceId) throw(IllegalAccessException);
00273                 
00274         
00275         
00276         
00277 
00278 
00280         // Links //
00282         
00283         
00284 
00285         
00286                 
00287         // ===> Slice link from a row of Doppler table to a collection of row of Source table.
00288         
00294         vector <SourceRow *> getSources();
00295         
00296         
00297 
00298         
00299 
00300         
00301         
00302         
00307         bool compareNoAutoInc(int sourceId, int transitionIndex, Speed velDef);
00308         
00309         
00310 
00311         
00312         bool compareRequiredValue(int transitionIndex, Speed velDef); 
00313                  
00314         
00323         bool equalByRequiredValue(DopplerRow* x) ;
00324 
00325 private:
00329         DopplerTable &table;
00333         bool hasBeenAdded;
00334 
00335         // This method is used by the Table class when this row is added to the table.
00336         void isAdded();
00337 
00338 
00347         DopplerRow (DopplerTable &table);
00348 
00366          DopplerRow (DopplerTable &table, DopplerRow &row);
00367                 
00369         // Intrinsic Table Attributes //
00371         
00372         
00373         // ===> Attribute dopplerId
00374         
00375         
00376 
00377         int dopplerId;
00378 
00379         
00380         
00381         
00388         void setDopplerId (int dopplerId) throw(IllegalAccessException);
00389                 
00390         
00391 
00392         
00393         // ===> Attribute transitionIndex
00394         
00395         
00396 
00397         int transitionIndex;
00398 
00399         
00400         
00401         
00402 
00403         
00404         // ===> Attribute velDef
00405         
00406         
00407 
00408         Speed velDef;
00409 
00410         
00411         
00412         
00413 
00415         // Extrinsic Table Attributes //
00417         
00418         
00419         // ===> Attribute sourceId
00420         
00421         
00422 
00423         int sourceId;
00424 
00425         
00426         
00427         
00428 
00430         // Links //
00432         
00433         
00434                 
00435 
00436 
00437         
00438 
00439 
00440 };
00441 
00442 } // End namespace asdm
00443 
00444 #endif /* Doppler_CLASS */

Generated on Thu Nov 29 16:46:46 2007 for ASDM C++ Implementation by  doxygen 1.5.1