PolarizationRow.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 PolarizationRow.h
00032  */
00033  
00034 #ifndef PolarizationRow_CLASS
00035 #define PolarizationRow_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::PolarizationRowIDL;
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 #include "CStokesParameter.h"
00084 using namespace StokesParameterMod;
00085         
00086 
00087         
00088 #include "CPolarizationType.h"
00089 using namespace PolarizationTypeMod;
00090         
00091 
00092         
00093 
00094 
00095 
00096 using asdm::Angle;
00097 using asdm::AngularRate;
00098 using asdm::ArrayTime;
00099 using asdm::Complex;
00100 using asdm::Entity;
00101 using asdm::EntityId;
00102 using asdm::EntityRef;
00103 using asdm::Flux;
00104 using asdm::Frequency;
00105 using asdm::Humidity;
00106 using asdm::Interval;
00107 using asdm::Length;
00108 using asdm::Pressure;
00109 using asdm::Speed;
00110 using asdm::Tag;
00111 using asdm::Temperature;
00112 using asdm::ConversionException;
00113 using asdm::NoSuchRow;
00114 using asdm::IllegalAccessException;
00115 
00116 /*\file Polarization.h
00117     \brief Generated from model's revision "1.41", branch "HEAD"
00118 */
00119 
00120 namespace asdm {
00121 
00122 //class asdm::PolarizationTable;
00123 
00124         
00125 
00132 class PolarizationRow {
00133 friend class asdm::PolarizationTable;
00134 
00135 public:
00136 
00137         virtual ~PolarizationRow();
00138 
00142         PolarizationTable &getTable() const;
00143         
00144 #ifndef WITHOUT_ACS
00145 
00149         PolarizationRowIDL *toIDL() const;
00150 #endif
00151         
00152 #ifndef WITHOUT_ACS
00153 
00157         void setFromIDL (PolarizationRowIDL x) throw(ConversionException);
00158 #endif
00159         
00164         string toXML() const;
00165 
00171         void setFromXML (string rowDoc) throw(ConversionException);
00172         
00174         // Intrinsic Table Attributes //
00176         
00177         
00178         // ===> Attribute polarizationId
00179         
00180         
00181         
00182 
00183         
00188         Tag getPolarizationId() const;
00189         
00190  
00191         
00192         
00193         
00194         
00195 
00196 
00197         
00198         // ===> Attribute numCorr
00199         
00200         
00201         
00202 
00203         
00208         int getNumCorr() const;
00209         
00210  
00211         
00212         
00218         void setNumCorr (int numCorr);
00219                 
00220         
00221         
00222         
00223 
00224 
00225         
00226         // ===> Attribute corrType
00227         
00228         
00229         
00230 
00231         
00236         vector<StokesParameter > getCorrType() const;
00237         
00238  
00239         
00240         
00246         void setCorrType (vector<StokesParameter > corrType);
00247                 
00248         
00249         
00250         
00251 
00252 
00253         
00254         // ===> Attribute corrProduct
00255         
00256         
00257         
00258 
00259         
00264         vector<vector<PolarizationType > > getCorrProduct() const;
00265         
00266  
00267         
00268         
00274         void setCorrProduct (vector<vector<PolarizationType > > corrProduct);
00275                 
00276         
00277         
00278         
00279 
00280 
00281         
00282         // ===> Attribute flagRow, which is optional
00283         
00284         
00285         
00290         bool isFlagRowExists() const;
00291         
00292 
00293         
00299         bool getFlagRow() const throw(IllegalAccessException);
00300         
00301  
00302         
00303         
00309         void setFlagRow (bool flagRow);
00310                 
00311         
00312         
00313         
00317         void clearFlagRow ();
00318         
00319 
00320 
00322         // Extrinsic Table Attributes //
00324         
00326         // Links //
00328         
00329         
00330         
00331         
00336         bool compareNoAutoInc(int numCorr, vector<StokesParameter > corrType, vector<vector<PolarizationType > > corrProduct);
00337         
00338         
00339 
00340         
00341         bool compareRequiredValue(int numCorr, vector<StokesParameter > corrType, vector<vector<PolarizationType > > corrProduct); 
00342                  
00343         
00352         bool equalByRequiredValue(PolarizationRow* x) ;
00353 
00354 private:
00358         PolarizationTable &table;
00362         bool hasBeenAdded;
00363 
00364         // This method is used by the Table class when this row is added to the table.
00365         void isAdded();
00366 
00367 
00376         PolarizationRow (PolarizationTable &table);
00377 
00395          PolarizationRow (PolarizationTable &table, PolarizationRow &row);
00396                 
00398         // Intrinsic Table Attributes //
00400         
00401         
00402         // ===> Attribute polarizationId
00403         
00404         
00405 
00406         Tag polarizationId;
00407 
00408         
00409         
00410         
00417         void setPolarizationId (Tag polarizationId) throw(IllegalAccessException);
00418                 
00419         
00420 
00421         
00422         // ===> Attribute numCorr
00423         
00424         
00425 
00426         int numCorr;
00427 
00428         
00429         
00430         
00431 
00432         
00433         // ===> Attribute corrType
00434         
00435         
00436 
00437         vector<StokesParameter > corrType;
00438 
00439         
00440         
00441         
00442 
00443         
00444         // ===> Attribute corrProduct
00445         
00446         
00447 
00448         vector<vector<PolarizationType > > corrProduct;
00449 
00450         
00451         
00452         
00453 
00454         
00455         // ===> Attribute flagRow, which is optional
00456         
00457         
00458         bool flagRowExists;
00459         
00460 
00461         bool flagRow;
00462 
00463         
00464         
00465         
00466 
00468         // Extrinsic Table Attributes //
00470         
00472         // Links //
00474         
00475 
00476 };
00477 
00478 } // End namespace asdm
00479 
00480 #endif /* Polarization_CLASS */

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