casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlmaRadiometerRow.h
Go to the documentation of this file.
1 
2 /*
3  * ALMA - Atacama Large Millimeter Array
4  * (c) European Southern Observatory, 2002
5  * (c) Associated Universities Inc., 2002
6  * Copyright by ESO (in the framework of the ALMA collaboration),
7  * Copyright by AUI (in the framework of the ALMA collaboration),
8  * All rights reserved.
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY, without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23  * MA 02111-1307 USA
24  *
25  * Warning!
26  * --------------------------------------------------------------------
27  * | This is generated code! Do not modify this file. |
28  * | If you do, all changes will be lost when the file is re-generated. |
29  * --------------------------------------------------------------------
30  *
31  * File AlmaRadiometerRow.h
32  */
33 
34 #ifndef AlmaRadiometerRow_CLASS
35 #define AlmaRadiometerRow_CLASS
36 
37 #include <vector>
38 #include <string>
39 #include <set>
40 
41 #ifndef WITHOUT_ACS
42 #include <asdmIDLC.h>
43 #endif
44 
45 
46 
47 
48 
49 
50 
51 #include <alma/ASDM/Tag.h>
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
64 #include <alma/ASDM/NoSuchRow.h>
66 
68 //#include <alma/ASDM/TableStreamReader.h>
69 
70 /*\file AlmaRadiometer.h
71  \brief Generated from model's revision "-1", branch ""
72 */
73 
74 namespace asdm {
75 
76 //class asdm::AlmaRadiometerTable;
77 
78 
79 // class asdm::SpectralWindowRow;
80 class SpectralWindowRow;
81 
82 
83 class AlmaRadiometerRow;
85 typedef void (AlmaRadiometerRow::*AlmaRadiometerAttributeFromText) (const std::string& s);
86 
96 //friend class asdm::TableStreamReader<AlmaRadiometerTable, AlmaRadiometerRow>;
97 
98 public:
99 
100  virtual ~AlmaRadiometerRow();
101 
105  AlmaRadiometerTable &getTable() const;
106 
111  bool isAdded() const;
112 
114  // Intrinsic Table Attributes //
116 
117 
118  // ===> Attribute almaRadiometerId
119 
120 
121 
122 
123 
128  Tag getAlmaRadiometerId() const;
129 
130 
131 
132 
133 
134 
135 
136 
137 
138  // ===> Attribute numAntenna, which is optional
139 
140 
141 
146  bool isNumAntennaExists() const;
147 
148 
149 
155  int getNumAntenna() const;
156 
157 
158 
159 
166  void setNumAntenna (int numAntenna);
167 
168 
169 
170 
174  void clearNumAntenna ();
175 
176 
177 
179  // Extrinsic Table Attributes //
181 
182 
183  // ===> Attribute spectralWindowId, which is optional
184 
185 
186 
191  bool isSpectralWindowIdExists() const;
192 
193 
194 
200  std::vector<Tag> getSpectralWindowId() const;
201 
202 
203 
204 
211  void setSpectralWindowId (std::vector<Tag> spectralWindowId);
212 
213 
214 
215 
219  void clearSpectralWindowId ();
220 
221 
222 
224  // Links //
226 
227 
228 
236 
237 
238 
239 
240 
245  void addSpectralWindowId(Tag id);
246 
251  void addSpectralWindowId(const std::vector<Tag> & id);
252 
253 
259  const Tag getSpectralWindowId(int i);
260 
269 
274  std::vector<SpectralWindowRow *> getSpectralWindowsUsingSpectralWindowId();
275 
276 
277 
278 
279 
280 
281 
282 
283 
284 
294 
295 #ifndef WITHOUT_ACS
296 
300  asdmIDL::AlmaRadiometerRowIDL *toIDL() const;
301 
309  void toIDL(asdmIDL::AlmaRadiometerRowIDL& x) const;
310 #endif
311 
312 #ifndef WITHOUT_ACS
313 
318  void setFromIDL (asdmIDL::AlmaRadiometerRowIDL x) ;
319 #endif
320 
325  std::string toXML() const;
326 
333  void setFromXML (std::string rowDoc) ;
334 
337  // binary-deserialization material from an EndianIStream //
339 
340  std::map<std::string, AlmaRadiometerAttributeFromBin> fromBinMethods;
342 
343 void numAntennaFromBin( EndianIStream& eis);
345 
346 
354  static AlmaRadiometerRow* fromBin(EndianIStream& eis, AlmaRadiometerTable& table, const std::vector<std::string>& attributesSeq);
355 
362  void fromText(const std::string& attributeName, const std::string& t);
364 
365 private:
374 
375  // This method is used by the Table class when this row is added to the table.
376  void isAdded(bool added);
377 
378 
388 
407 
409  // Intrinsic Table Attributes //
411 
412 
413  // ===> Attribute almaRadiometerId
414 
415 
416 
417  Tag almaRadiometerId;
418 
419 
420 
421 
431  void setAlmaRadiometerId (Tag almaRadiometerId);
432 
433 
434 
435 
436  // ===> Attribute numAntenna, which is optional
437 
438 
440 
441 
443 
444 
445 
446 
447 
449  // Extrinsic Table Attributes //
451 
452 
453  // ===> Attribute spectralWindowId, which is optional
454 
455 
456  bool spectralWindowIdExists;
457 
458 
459  std::vector<Tag> spectralWindowId;
460 
461 
462 
463 
464 
466  // Links //
468 
469 
470 
471 
472 
473 
474 
475 
476 /*
478  // binary-deserialization material from an EndianIStream //
480  std::map<std::string, AlmaRadiometerAttributeFromBin> fromBinMethods;
481 void almaRadiometerIdFromBin( EndianIStream& eis);
482 
483 void numAntennaFromBin( EndianIStream& eis);
484 void spectralWindowIdFromBin( EndianIStream& eis);
485 
486 */
487 
489  // text-deserialization material //
491  std::map<std::string, AlmaRadiometerAttributeFromText> fromTextMethods;
492 
493 void almaRadiometerIdFromText (const std::string & s);
494 
495 
496 
497 void numAntennaFromText (const std::string & s);
498 
499 
500 void spectralWindowIdFromText (const std::string & s);
501 
502 
503 
508  void toBin(EndianOSStream& eoss);
509 
519 };
520 
521 } // End namespace asdm
522 
523 #endif /* AlmaRadiometer_CLASS */
The AlmaRadiometerRow class is a row of a AlmaRadiometerTable.
void numAntennaFromBin(EndianIStream &eis)
void setNumAntenna(int numAntenna)
Set numAntenna with the specified int.
void clearNumAntenna()
Mark numAntenna, which is an optional field, as non-existent.
bool isAdded() const
Has this row been added to its table ?
The AlmaRadiometerTable class is an Alma table.
bool numAntennaExists
===&gt; Attribute numAntenna, which is optional
void addSpectralWindowId(Tag id)
Append a Tag to spectralWindowId.
*text deserialization material std::map< std::string, AlmaRadiometerAttributeFromText > fromTextMethods
Links *binary deserialization material from an EndianIStream std::map< std::string, AlmaRadiometerAttributeFromBin > fromBinMethods
AlmaRadiometerRow(AlmaRadiometerTable &table)
Create a AlmaRadiometerRow.
void spectralWindowIdFromText(const std::string &s)
void setAlmaRadiometerId(Tag almaRadiometerId)
Set almaRadiometerId with the specified Tag value.
void setSpectralWindowId(std::vector< Tag > spectralWindowId)
Set spectralWindowId with the specified std::vector&lt;Tag&gt; .
void numAntennaFromText(const std::string &s)
void almaRadiometerIdFromBin(EndianIStream &eis)
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
int getNumAntenna() const
Get numAntenna, which is optional.
void clearSpectralWindowId()
Mark spectralWindowId, which is an optional field, as non-existent.
std::vector< SpectralWindowRow * > getSpectralWindowsUsingSpectralWindowId()
Returns the vector of SpectralWindowRow* linked to this row via the Tags stored in spectralWindowId...
AlmaRadiometerTable & table
The table to which this row belongs.
asdmIDL::AlmaRadiometerRowIDL * toIDL() const
Return this row in the form of an IDL struct.
std::vector< Tag > getSpectralWindowId() const
Get spectralWindowId, which is optional.
std::string toXML() const
Return this row in the form of an XML string.
void(AlmaRadiometerRow::* AlmaRadiometerAttributeFromBin)(EndianIStream &eis)
SpectralWindowRow * getSpectralWindowUsingSpectralWindowId(int i)
Returns the SpectralWindowRow linked to this row via the tag stored in spectralWindowId at position i...
bool isNumAntennaExists() const
===&gt; Attribute numAntenna, which is optional
bool equalByRequiredValue(AlmaRadiometerRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
void setFromIDL(asdmIDL::AlmaRadiometerRowIDL x)
Fill the values of this row from the IDL struct AlmaRadiometerRowIDL.
std::vector< Tag > spectralWindowId
void(AlmaRadiometerRow::* AlmaRadiometerAttributeFromText)(const std::string &s)
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
virtual ~AlmaRadiometerRow()
friend class asdm::TableStreamReader&lt;AlmaRadiometerTable, AlmaRadiometerRow&gt;;
bool hasBeenAdded
Whether this row has been added to the table or not.
The SpectralWindowRow class is a row of a SpectralWindowTable.
void spectralWindowIdFromBin(EndianIStream &eis)
AlmaRadiometerTable & getTable() const
Return the table to which this row belongs.
void almaRadiometerIdFromText(const std::string &s)