FlagCmdRow.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 FlagCmdRow.h
00032  */
00033  
00034 #ifndef FlagCmdRow_CLASS
00035 #define FlagCmdRow_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::FlagCmdRowIDL;
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 
00090         
00091 
00092 
00093 
00094 using asdm::Angle;
00095 using asdm::AngularRate;
00096 using asdm::ArrayTime;
00097 using asdm::Complex;
00098 using asdm::Entity;
00099 using asdm::EntityId;
00100 using asdm::EntityRef;
00101 using asdm::Flux;
00102 using asdm::Frequency;
00103 using asdm::Humidity;
00104 using asdm::Interval;
00105 using asdm::Length;
00106 using asdm::Pressure;
00107 using asdm::Speed;
00108 using asdm::Tag;
00109 using asdm::Temperature;
00110 using asdm::ConversionException;
00111 using asdm::NoSuchRow;
00112 using asdm::IllegalAccessException;
00113 
00114 /*\file FlagCmd.h
00115     \brief Generated from model's revision "1.41", branch "HEAD"
00116 */
00117 
00118 namespace asdm {
00119 
00120 //class asdm::FlagCmdTable;
00121 
00122         
00123 
00130 class FlagCmdRow {
00131 friend class asdm::FlagCmdTable;
00132 
00133 public:
00134 
00135         virtual ~FlagCmdRow();
00136 
00140         FlagCmdTable &getTable() const;
00141         
00142 #ifndef WITHOUT_ACS
00143 
00147         FlagCmdRowIDL *toIDL() const;
00148 #endif
00149         
00150 #ifndef WITHOUT_ACS
00151 
00155         void setFromIDL (FlagCmdRowIDL x) throw(ConversionException);
00156 #endif
00157         
00162         string toXML() const;
00163 
00169         void setFromXML (string rowDoc) throw(ConversionException);
00170         
00172         // Intrinsic Table Attributes //
00174         
00175         
00176         // ===> Attribute timeInterval
00177         
00178         
00179         
00180 
00181         
00186         ArrayTimeInterval getTimeInterval() const;
00187         
00188  
00189         
00190         
00197         void setTimeInterval (ArrayTimeInterval timeInterval) throw(IllegalAccessException);
00198                 
00199         
00200         
00201         
00202 
00203 
00204         
00205         // ===> Attribute type
00206         
00207         
00208         
00209 
00210         
00215         string getType() const;
00216         
00217  
00218         
00219         
00225         void setType (string type);
00226                 
00227         
00228         
00229         
00230 
00231 
00232         
00233         // ===> Attribute reason
00234         
00235         
00236         
00237 
00238         
00243         string getReason() const;
00244         
00245  
00246         
00247         
00253         void setReason (string reason);
00254                 
00255         
00256         
00257         
00258 
00259 
00260         
00261         // ===> Attribute level
00262         
00263         
00264         
00265 
00266         
00271         int getLevel() const;
00272         
00273  
00274         
00275         
00281         void setLevel (int level);
00282                 
00283         
00284         
00285         
00286 
00287 
00288         
00289         // ===> Attribute severity
00290         
00291         
00292         
00293 
00294         
00299         int getSeverity() const;
00300         
00301  
00302         
00303         
00309         void setSeverity (int severity);
00310                 
00311         
00312         
00313         
00314 
00315 
00316         
00317         // ===> Attribute applied
00318         
00319         
00320         
00321 
00322         
00327         bool getApplied() const;
00328         
00329  
00330         
00331         
00337         void setApplied (bool applied);
00338                 
00339         
00340         
00341         
00342 
00343 
00344         
00345         // ===> Attribute command
00346         
00347         
00348         
00349 
00350         
00355         string getCommand() const;
00356         
00357  
00358         
00359         
00365         void setCommand (string command);
00366                 
00367         
00368         
00369         
00370 
00371 
00373         // Extrinsic Table Attributes //
00375         
00377         // Links //
00379         
00380         
00381         
00382         
00387         bool compareNoAutoInc(ArrayTimeInterval timeInterval, string type, string reason, int level, int severity, bool applied, string command);
00388         
00389         
00390 
00391         
00392         bool compareRequiredValue(string type, string reason, int level, int severity, bool applied, string command); 
00393                  
00394         
00403         bool equalByRequiredValue(FlagCmdRow* x) ;
00404 
00405 private:
00409         FlagCmdTable &table;
00413         bool hasBeenAdded;
00414 
00415         // This method is used by the Table class when this row is added to the table.
00416         void isAdded();
00417 
00418 
00427         FlagCmdRow (FlagCmdTable &table);
00428 
00446          FlagCmdRow (FlagCmdTable &table, FlagCmdRow &row);
00447                 
00449         // Intrinsic Table Attributes //
00451         
00452         
00453         // ===> Attribute timeInterval
00454         
00455         
00456 
00457         ArrayTimeInterval timeInterval;
00458 
00459         
00460         
00461         
00462 
00463         
00464         // ===> Attribute type
00465         
00466         
00467 
00468         string type;
00469 
00470         
00471         
00472         
00473 
00474         
00475         // ===> Attribute reason
00476         
00477         
00478 
00479         string reason;
00480 
00481         
00482         
00483         
00484 
00485         
00486         // ===> Attribute level
00487         
00488         
00489 
00490         int level;
00491 
00492         
00493         
00494         
00495 
00496         
00497         // ===> Attribute severity
00498         
00499         
00500 
00501         int severity;
00502 
00503         
00504         
00505         
00506 
00507         
00508         // ===> Attribute applied
00509         
00510         
00511 
00512         bool applied;
00513 
00514         
00515         
00516         
00517 
00518         
00519         // ===> Attribute command
00520         
00521         
00522 
00523         string command;
00524 
00525         
00526         
00527         
00528 
00530         // Extrinsic Table Attributes //
00532         
00534         // Links //
00536         
00537 
00538 };
00539 
00540 } // End namespace asdm
00541 
00542 #endif /* FlagCmd_CLASS */

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