casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
BeamRow.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 BeamRow.h
00032  */
00033  
00034 #ifndef BeamRow_CLASS
00035 #define BeamRow_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::BeamRowIDL;
00047 #endif
00048 
00049 
00050 
00051 
00052 
00053 
00054 #include <Tag.h>
00055 using  asdm::Tag;
00056 
00057 
00058 
00059 
00060         
00061 
00062 
00063 
00064 #include <ConversionException.h>
00065 #include <NoSuchRow.h>
00066 #include <IllegalAccessException.h>
00067 
00068 
00069 /*\file Beam.h
00070     \brief Generated from model's revision "1.58", branch "HEAD"
00071 */
00072 
00073 namespace asdm {
00074 
00075 //class asdm::BeamTable;
00076 
00077         
00078 
00079 class BeamRow;
00080 typedef void (BeamRow::*BeamAttributeFromBin) (EndianIStream& eis);
00081 
00088 class BeamRow {
00089 friend class asdm::BeamTable;
00090 
00091 public:
00092 
00093         virtual ~BeamRow();
00094 
00098         BeamTable &getTable() const;
00099         
00104         bool isAdded() const;
00105                 
00107         // Intrinsic Table Attributes //
00109         
00110         
00111         // ===> Attribute beamId
00112         
00113         
00114         
00115 
00116         
00121         Tag getBeamId() const;
00122         
00123  
00124         
00125         
00126         
00127         
00128 
00129 
00131         // Extrinsic Table Attributes //
00133         
00135         // Links //
00137         
00138         
00139         
00140         
00141 
00142                  
00143         
00152         bool equalByRequiredValue(BeamRow* x) ;
00153         
00154 #ifndef WITHOUT_ACS
00155 
00159         BeamRowIDL *toIDL() const;
00160 #endif
00161         
00162 #ifndef WITHOUT_ACS
00163 
00168         void setFromIDL (BeamRowIDL x) ;
00169 #endif
00170         
00175         string toXML() const;
00176 
00183         void setFromXML (string rowDoc) ;       
00184 
00185 private:
00189         BeamTable &table;
00193         bool hasBeenAdded;
00194 
00195         // This method is used by the Table class when this row is added to the table.
00196         void isAdded(bool added);
00197 
00198 
00207         BeamRow (BeamTable &table);
00208 
00226          BeamRow (BeamTable &table, BeamRow &row);
00227                 
00229         // Intrinsic Table Attributes //
00231         
00232         
00233         // ===> Attribute beamId
00234         
00235         
00236 
00237         Tag beamId;
00238 
00239         
00240         
00241         
00251         void setBeamId (Tag beamId);
00252                 
00253         
00254 
00256         // Extrinsic Table Attributes //
00258         
00260         // Links //
00262         
00263         
00265         // binary-deserialization material//
00267         map<string, BeamAttributeFromBin> fromBinMethods;
00268 void beamIdFromBin( EndianIStream& eis);
00269 
00270                 
00271         
00276          void toBin(EndianOSStream& eoss);
00277                  
00285          static BeamRow* fromBin(EndianIStream& eis, BeamTable& table, const vector<string>& attributesSeq);     
00286 
00287 };
00288 
00289 } // End namespace asdm
00290 
00291 #endif /* Beam_CLASS */