StateRow.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 StateRow.h
00032  */
00033  
00034 #ifndef StateRow_CLASS
00035 #define StateRow_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::StateRowIDL;
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         
00087 
00088         
00089 #include "CCalibrationDevice.h"
00090 using namespace CalibrationDeviceMod;
00091         
00092 
00093         
00094 
00095 
00096 
00097 using asdm::Angle;
00098 using asdm::AngularRate;
00099 using asdm::ArrayTime;
00100 using asdm::Complex;
00101 using asdm::Entity;
00102 using asdm::EntityId;
00103 using asdm::EntityRef;
00104 using asdm::Flux;
00105 using asdm::Frequency;
00106 using asdm::Humidity;
00107 using asdm::Interval;
00108 using asdm::Length;
00109 using asdm::Pressure;
00110 using asdm::Speed;
00111 using asdm::Tag;
00112 using asdm::Temperature;
00113 using asdm::ConversionException;
00114 using asdm::NoSuchRow;
00115 using asdm::IllegalAccessException;
00116 
00117 /*\file State.h
00118     \brief Generated from model's revision "1.41", branch "HEAD"
00119 */
00120 
00121 namespace asdm {
00122 
00123 //class asdm::StateTable;
00124 
00125         
00126 
00133 class StateRow {
00134 friend class asdm::StateTable;
00135 
00136 public:
00137 
00138         virtual ~StateRow();
00139 
00143         StateTable &getTable() const;
00144         
00145 #ifndef WITHOUT_ACS
00146 
00150         StateRowIDL *toIDL() const;
00151 #endif
00152         
00153 #ifndef WITHOUT_ACS
00154 
00158         void setFromIDL (StateRowIDL x) throw(ConversionException);
00159 #endif
00160         
00165         string toXML() const;
00166 
00172         void setFromXML (string rowDoc) throw(ConversionException);
00173         
00175         // Intrinsic Table Attributes //
00177         
00178         
00179         // ===> Attribute stateId
00180         
00181         
00182         
00183 
00184         
00189         Tag getStateId() const;
00190         
00191  
00192         
00193         
00194         
00195         
00196 
00197 
00198         
00199         // ===> Attribute sig
00200         
00201         
00202         
00203 
00204         
00209         bool getSig() const;
00210         
00211  
00212         
00213         
00219         void setSig (bool sig);
00220                 
00221         
00222         
00223         
00224 
00225 
00226         
00227         // ===> Attribute ref
00228         
00229         
00230         
00231 
00232         
00237         bool getRef() const;
00238         
00239  
00240         
00241         
00247         void setRef (bool ref);
00248                 
00249         
00250         
00251         
00252 
00253 
00254         
00255         // ===> Attribute weight, which is optional
00256         
00257         
00258         
00263         bool isWeightExists() const;
00264         
00265 
00266         
00272         float getWeight() const throw(IllegalAccessException);
00273         
00274  
00275         
00276         
00282         void setWeight (float weight);
00283                 
00284         
00285         
00286         
00290         void clearWeight ();
00291         
00292 
00293 
00294         
00295         // ===> Attribute onSky
00296         
00297         
00298         
00299 
00300         
00305         bool getOnSky() const;
00306         
00307  
00308         
00309         
00315         void setOnSky (bool onSky);
00316                 
00317         
00318         
00319         
00320 
00321 
00322         
00323         // ===> Attribute calDeviceName
00324         
00325         
00326         
00327 
00328         
00333         CalibrationDevice getCalDeviceName() const;
00334         
00335  
00336         
00337         
00343         void setCalDeviceName (CalibrationDevice calDeviceName);
00344                 
00345         
00346         
00347         
00348 
00349 
00350         
00351         // ===> Attribute flagRow
00352         
00353         
00354         
00355 
00356         
00361         bool getFlagRow() const;
00362         
00363  
00364         
00365         
00371         void setFlagRow (bool flagRow);
00372                 
00373         
00374         
00375         
00376 
00377 
00379         // Extrinsic Table Attributes //
00381         
00383         // Links //
00385         
00386         
00387         
00388         
00393         bool compareNoAutoInc(bool sig, bool ref, bool onSky, CalibrationDevice calDeviceName, bool flagRow);
00394         
00395         
00396 
00397         
00398         bool compareRequiredValue(bool sig, bool ref, bool onSky, CalibrationDevice calDeviceName, bool flagRow); 
00399                  
00400         
00409         bool equalByRequiredValue(StateRow* x) ;
00410 
00411 private:
00415         StateTable &table;
00419         bool hasBeenAdded;
00420 
00421         // This method is used by the Table class when this row is added to the table.
00422         void isAdded();
00423 
00424 
00433         StateRow (StateTable &table);
00434 
00452          StateRow (StateTable &table, StateRow &row);
00453                 
00455         // Intrinsic Table Attributes //
00457         
00458         
00459         // ===> Attribute stateId
00460         
00461         
00462 
00463         Tag stateId;
00464 
00465         
00466         
00467         
00474         void setStateId (Tag stateId) throw(IllegalAccessException);
00475                 
00476         
00477 
00478         
00479         // ===> Attribute sig
00480         
00481         
00482 
00483         bool sig;
00484 
00485         
00486         
00487         
00488 
00489         
00490         // ===> Attribute ref
00491         
00492         
00493 
00494         bool ref;
00495 
00496         
00497         
00498         
00499 
00500         
00501         // ===> Attribute weight, which is optional
00502         
00503         
00504         bool weightExists;
00505         
00506 
00507         float weight;
00508 
00509         
00510         
00511         
00512 
00513         
00514         // ===> Attribute onSky
00515         
00516         
00517 
00518         bool onSky;
00519 
00520         
00521         
00522         
00523 
00524         
00525         // ===> Attribute calDeviceName
00526         
00527         
00528 
00529         CalibrationDevice calDeviceName;
00530 
00531         
00532         
00533         
00534 
00535         
00536         // ===> Attribute flagRow
00537         
00538         
00539 
00540         bool flagRow;
00541 
00542         
00543         
00544         
00545 
00547         // Extrinsic Table Attributes //
00549         
00551         // Links //
00553         
00554 
00555 };
00556 
00557 } // End namespace asdm
00558 
00559 #endif /* State_CLASS */

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