casa
$Rev:20696$
|
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 AlmaRadiometerRow.h 00032 */ 00033 00034 #ifndef AlmaRadiometerRow_CLASS 00035 #define AlmaRadiometerRow_CLASS 00036 00037 #include <vector> 00038 #include <string> 00039 #include <set> 00040 00041 #ifndef WITHOUT_ACS 00042 #include <asdmIDLC.h> 00043 #endif 00044 00045 00046 00047 00048 00049 00050 00051 #include <Tag.h> 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 #include <ConversionException.h> 00064 #include <NoSuchRow.h> 00065 #include <IllegalAccessException.h> 00066 00067 #include <RowTransformer.h> 00068 //#include <TableStreamReader.h> 00069 00070 /*\file AlmaRadiometer.h 00071 \brief Generated from model's revision "1.64", branch "HEAD" 00072 */ 00073 00074 namespace asdm { 00075 00076 //class asdm::AlmaRadiometerTable; 00077 00078 00079 // class asdm::SpectralWindowRow; 00080 class SpectralWindowRow; 00081 00082 00083 class AlmaRadiometerRow; 00084 typedef void (AlmaRadiometerRow::*AlmaRadiometerAttributeFromBin) (EndianIStream& eis); 00085 typedef void (AlmaRadiometerRow::*AlmaRadiometerAttributeFromText) (const string& s); 00086 00093 class AlmaRadiometerRow { 00094 friend class asdm::AlmaRadiometerTable; 00095 friend class asdm::RowTransformer<AlmaRadiometerRow>; 00096 //friend class asdm::TableStreamReader<AlmaRadiometerTable, AlmaRadiometerRow>; 00097 00098 public: 00099 00100 virtual ~AlmaRadiometerRow(); 00101 00105 AlmaRadiometerTable &getTable() const; 00106 00111 bool isAdded() const; 00112 00114 // Intrinsic Table Attributes // 00116 00117 00118 // ===> Attribute almaRadiometerId 00119 00120 00121 00122 00123 00128 Tag getAlmaRadiometerId() const; 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 // ===> Attribute numAntenna, which is optional 00139 00140 00141 00146 bool isNumAntennaExists() const; 00147 00148 00149 00155 int getNumAntenna() const; 00156 00157 00158 00159 00166 void setNumAntenna (int numAntenna); 00167 00168 00169 00170 00174 void clearNumAntenna (); 00175 00176 00177 00179 // Extrinsic Table Attributes // 00181 00182 00183 // ===> Attribute spectralWindowId, which is optional 00184 00185 00186 00191 bool isSpectralWindowIdExists() const; 00192 00193 00194 00200 vector<Tag> getSpectralWindowId() const; 00201 00202 00203 00204 00211 void setSpectralWindowId (vector<Tag> spectralWindowId); 00212 00213 00214 00215 00219 void clearSpectralWindowId (); 00220 00221 00222 00224 // Links // 00226 00227 00228 00235 void setSpectralWindowId (int i, Tag spectralWindowId) ; 00236 00237 00238 00239 00240 00245 void addSpectralWindowId(Tag id); 00246 00251 void addSpectralWindowId(const vector<Tag> & id); 00252 00253 00259 const Tag getSpectralWindowId(int i); 00260 00268 SpectralWindowRow* getSpectralWindowUsingSpectralWindowId(int i); 00269 00274 vector<SpectralWindowRow *> getSpectralWindowsUsingSpectralWindowId(); 00275 00276 00277 00278 00279 00280 00281 00282 00283 00284 00293 bool equalByRequiredValue(AlmaRadiometerRow* x) ; 00294 00295 #ifndef WITHOUT_ACS 00296 00300 asdmIDL::AlmaRadiometerRowIDL *toIDL() const; 00301 00309 void toIDL(asdmIDL::AlmaRadiometerRowIDL& x) const; 00310 #endif 00311 00312 #ifndef WITHOUT_ACS 00313 00318 void setFromIDL (asdmIDL::AlmaRadiometerRowIDL x) ; 00319 #endif 00320 00325 std::string toXML() const; 00326 00333 void setFromXML (std::string rowDoc) ; 00334 00337 // binary-deserialization material from an EndianIStream // 00339 00340 std::map<std::string, AlmaRadiometerAttributeFromBin> fromBinMethods; 00341 void almaRadiometerIdFromBin( EndianIStream& eis); 00342 00343 void numAntennaFromBin( EndianIStream& eis); 00344 void spectralWindowIdFromBin( EndianIStream& eis); 00345 00346 00354 static AlmaRadiometerRow* fromBin(EndianIStream& eis, AlmaRadiometerTable& table, const std::vector<std::string>& attributesSeq); 00355 00362 void fromText(const std::string& attributeName, const std::string& t); 00364 00365 private: 00369 AlmaRadiometerTable &table; 00373 bool hasBeenAdded; 00374 00375 // This method is used by the Table class when this row is added to the table. 00376 void isAdded(bool added); 00377 00378 00387 AlmaRadiometerRow (AlmaRadiometerTable &table); 00388 00406 AlmaRadiometerRow (AlmaRadiometerTable &table, AlmaRadiometerRow &row); 00407 00409 // Intrinsic Table Attributes // 00411 00412 00413 // ===> Attribute almaRadiometerId 00414 00415 00416 00417 Tag almaRadiometerId; 00418 00419 00420 00421 00431 void setAlmaRadiometerId (Tag almaRadiometerId); 00432 00433 00434 00435 00436 // ===> Attribute numAntenna, which is optional 00437 00438 00439 bool numAntennaExists; 00440 00441 00442 int numAntenna; 00443 00444 00445 00446 00447 00449 // Extrinsic Table Attributes // 00451 00452 00453 // ===> Attribute spectralWindowId, which is optional 00454 00455 00456 bool spectralWindowIdExists; 00457 00458 00459 vector<Tag> spectralWindowId; 00460 00461 00462 00463 00464 00466 // Links // 00468 00469 00470 00471 00472 00473 00474 00475 00476 /* 00478 // binary-deserialization material from an EndianIStream // 00480 std::map<std::string, AlmaRadiometerAttributeFromBin> fromBinMethods; 00481 void almaRadiometerIdFromBin( EndianIStream& eis); 00482 00483 void numAntennaFromBin( EndianIStream& eis); 00484 void spectralWindowIdFromBin( EndianIStream& eis); 00485 00486 */ 00487 00489 // text-deserialization material // 00491 std::map<std::string, AlmaRadiometerAttributeFromText> fromTextMethods; 00492 00493 void almaRadiometerIdFromText (const string & s); 00494 00495 00496 00497 void numAntennaFromText (const string & s); 00498 00499 00500 void spectralWindowIdFromText (const string & s); 00501 00502 00503 00508 void toBin(EndianOSStream& eoss); 00509 00519 }; 00520 00521 } // End namespace asdm 00522 00523 #endif /* AlmaRadiometer_CLASS */