casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SquareLawDetectorRow.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 SquareLawDetectorRow.h
32  */
33 
34 #ifndef SquareLawDetectorRow_CLASS
35 #define SquareLawDetectorRow_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 
63 
64 
65 
66 
68 #include <alma/ASDM/NoSuchRow.h>
70 
72 //#include <alma/ASDM/TableStreamReader.h>
73 
74 /*\file SquareLawDetector.h
75  \brief Generated from model's revision "-1", branch ""
76 */
77 
78 namespace asdm {
79 
80 //class asdm::SquareLawDetectorTable;
81 
82 
83 
84 class SquareLawDetectorRow;
86 typedef void (SquareLawDetectorRow::*SquareLawDetectorAttributeFromText) (const std::string& s);
87 
97 //friend class asdm::TableStreamReader<SquareLawDetectorTable, SquareLawDetectorRow>;
98 
99 public:
100 
101  virtual ~SquareLawDetectorRow();
102 
107 
112  bool isAdded() const;
113 
115  // Intrinsic Table Attributes //
117 
118 
119  // ===> Attribute squareLawDetectorId
120 
121 
122 
123 
124 
129  Tag getSquareLawDetectorId() const;
130 
131 
132 
133 
134 
135 
136 
137 
138 
139  // ===> Attribute numBand
140 
141 
142 
143 
144 
149  int getNumBand() const;
150 
151 
152 
153 
161  void setNumBand (int numBand);
162 
163 
164 
165 
166 
167 
168 
169  // ===> Attribute bandType
170 
171 
172 
173 
174 
179  DetectorBandTypeMod::DetectorBandType getBandType() const;
180 
181 
182 
183 
191  void setBandType (DetectorBandTypeMod::DetectorBandType bandType);
192 
193 
194 
195 
196 
197 
199  // Extrinsic Table Attributes //
201 
203  // Links //
205 
206 
207 
208 
218  bool compareNoAutoInc(int numBand, DetectorBandTypeMod::DetectorBandType bandType);
219 
220 
221 
222 
232  bool compareRequiredValue(int numBand, DetectorBandTypeMod::DetectorBandType bandType);
233 
234 
244 
245 #ifndef WITHOUT_ACS
246 
250  asdmIDL::SquareLawDetectorRowIDL *toIDL() const;
251 
259  void toIDL(asdmIDL::SquareLawDetectorRowIDL& x) const;
260 #endif
261 
262 #ifndef WITHOUT_ACS
263 
268  void setFromIDL (asdmIDL::SquareLawDetectorRowIDL x) ;
269 #endif
270 
275  std::string toXML() const;
276 
283  void setFromXML (std::string rowDoc) ;
284 
287  // binary-deserialization material from an EndianIStream //
289 
290  std::map<std::string, SquareLawDetectorAttributeFromBin> fromBinMethods;
292 void numBandFromBin( EndianIStream& eis);
293 void bandTypeFromBin( EndianIStream& eis);
294 
295 
296 
304  static SquareLawDetectorRow* fromBin(EndianIStream& eis, SquareLawDetectorTable& table, const std::vector<std::string>& attributesSeq);
305 
312  void fromText(const std::string& attributeName, const std::string& t);
314 
315 private:
324 
325  // This method is used by the Table class when this row is added to the table.
326  void isAdded(bool added);
327 
328 
338 
357 
359  // Intrinsic Table Attributes //
361 
362 
363  // ===> Attribute squareLawDetectorId
364 
365 
366 
367  Tag squareLawDetectorId;
368 
369 
370 
371 
381  void setSquareLawDetectorId (Tag squareLawDetectorId);
382 
383 
384 
385 
386  // ===> Attribute numBand
387 
388 
389 
390  int numBand;
391 
392 
393 
394 
395 
396 
397  // ===> Attribute bandType
398 
399 
400 
401  DetectorBandTypeMod::DetectorBandType bandType;
402 
403 
404 
405 
406 
408  // Extrinsic Table Attributes //
410 
412  // Links //
414 
415 
416 /*
418  // binary-deserialization material from an EndianIStream //
420  std::map<std::string, SquareLawDetectorAttributeFromBin> fromBinMethods;
421 void squareLawDetectorIdFromBin( EndianIStream& eis);
422 void numBandFromBin( EndianIStream& eis);
423 void bandTypeFromBin( EndianIStream& eis);
424 
425 
426 */
427 
429  // text-deserialization material //
431  std::map<std::string, SquareLawDetectorAttributeFromText> fromTextMethods;
432 
433 void squareLawDetectorIdFromText (const std::string & s);
434 
435 
436 void numBandFromText (const std::string & s);
437 
438 
439 void bandTypeFromText (const std::string & s);
440 
441 
442 
443 
448  void toBin(EndianOSStream& eoss);
449 
459 };
460 
461 } // End namespace asdm
462 
463 #endif /* SquareLawDetector_CLASS */
void bandTypeFromBin(EndianIStream &eis)
virtual ~SquareLawDetectorRow()
friend class asdm::TableStreamReader&lt;SquareLawDetectorTable, SquareLawDetectorRow&gt;; ...
asdmIDL::SquareLawDetectorRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void numBandFromText(const std::string &s)
bool compareRequiredValue(int numBand, DetectorBandTypeMod::DetectorBandType bandType)
Compare each mandatory value (i.e.
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void(SquareLawDetectorRow::* SquareLawDetectorAttributeFromText)(const std::string &s)
bool equalByRequiredValue(SquareLawDetectorRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void setBandType(DetectorBandTypeMod::DetectorBandType bandType)
Set bandType with the specified DetectorBandTypeMod::DetectorBandType.
DetectorBandTypeMod::DetectorBandType getBandType() const
===&gt; Attribute bandType
int getNumBand() const
===&gt; Attribute numBand
bool isAdded() const
Has this row been added to its table ?
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, SquareLawDetectorAttributeFromBin > fromBinMethods
void setSquareLawDetectorId(Tag squareLawDetectorId)
Set squareLawDetectorId with the specified Tag value.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
std::string toXML() const
Return this row in the form of an XML string.
Extrinsic Table Attributes Links *bool compareNoAutoInc(int numBand, DetectorBandTypeMod::DetectorBandType bandType)
Compare each mandatory attribute except the autoincrementable one of this SquareLawDetectorRow with t...
The SquareLawDetectorRow class is a row of a SquareLawDetectorTable.
SquareLawDetectorTable & getTable() const
Return the table to which this row belongs.
SquareLawDetectorRow(SquareLawDetectorTable &table)
Create a SquareLawDetectorRow.
int numBand
===&gt; Attribute numBand
void setFromIDL(asdmIDL::SquareLawDetectorRowIDL x)
Fill the values of this row from the IDL struct SquareLawDetectorRowIDL.
The SquareLawDetectorTable class is an Alma table.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
bool hasBeenAdded
Whether this row has been added to the table or not.
*text deserialization material std::map< std::string, SquareLawDetectorAttributeFromText > fromTextMethods
void setNumBand(int numBand)
Set numBand with the specified int.
void bandTypeFromText(const std::string &s)
void squareLawDetectorIdFromText(const std::string &s)
void numBandFromBin(EndianIStream &eis)
DetectorBandTypeMod::DetectorBandType bandType
===&gt; Attribute bandType
SquareLawDetectorTable & table
The table to which this row belongs.
void(SquareLawDetectorRow::* SquareLawDetectorAttributeFromBin)(EndianIStream &eis)
void squareLawDetectorIdFromBin(EndianIStream &eis)