casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SysPowerRow.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 SysPowerRow.h
32  */
33 
34 #ifndef SysPowerRow_CLASS
35 #define SysPowerRow_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 
52 
53 
54 
55 #include <alma/ASDM/Tag.h>
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
74 #include <alma/ASDM/NoSuchRow.h>
76 
78 //#include <alma/ASDM/TableStreamReader.h>
79 
80 /*\file SysPower.h
81  \brief Generated from model's revision "-1", branch ""
82 */
83 
84 namespace asdm {
85 
86 //class asdm::SysPowerTable;
87 
88 
89 // class asdm::AntennaRow;
90 class AntennaRow;
91 
92 // class asdm::SpectralWindowRow;
93 class SpectralWindowRow;
94 
95 // class asdm::FeedRow;
96 class FeedRow;
97 
98 
99 class SysPowerRow;
101 typedef void (SysPowerRow::*SysPowerAttributeFromText) (const std::string& s);
102 
109 class SysPowerRow {
110 friend class asdm::SysPowerTable;
112 //friend class asdm::TableStreamReader<SysPowerTable, SysPowerRow>;
113 
114 public:
115 
116  virtual ~SysPowerRow();
117 
121  SysPowerTable &getTable() const;
122 
127  bool isAdded() const;
128 
130  // Intrinsic Table Attributes //
132 
133 
134  // ===> Attribute timeInterval
135 
136 
137 
138 
139 
144  ArrayTimeInterval getTimeInterval() const;
145 
146 
147 
148 
158  void setTimeInterval (ArrayTimeInterval timeInterval);
159 
160 
161 
162 
163 
164 
165 
166  // ===> Attribute numReceptor
167 
168 
169 
170 
171 
176  int getNumReceptor() const;
177 
178 
179 
180 
188  void setNumReceptor (int numReceptor);
189 
190 
191 
192 
193 
194 
195 
196  // ===> Attribute switchedPowerDifference, which is optional
197 
198 
199 
204  bool isSwitchedPowerDifferenceExists() const;
205 
206 
207 
213  std::vector<float > getSwitchedPowerDifference() const;
214 
215 
216 
217 
224  void setSwitchedPowerDifference (std::vector<float > switchedPowerDifference);
225 
226 
227 
228 
233 
234 
235 
236 
237  // ===> Attribute switchedPowerSum, which is optional
238 
239 
240 
245  bool isSwitchedPowerSumExists() const;
246 
247 
248 
254  std::vector<float > getSwitchedPowerSum() const;
255 
256 
257 
258 
265  void setSwitchedPowerSum (std::vector<float > switchedPowerSum);
266 
267 
268 
269 
273  void clearSwitchedPowerSum ();
274 
275 
276 
277 
278  // ===> Attribute requantizerGain, which is optional
279 
280 
281 
286  bool isRequantizerGainExists() const;
287 
288 
289 
295  std::vector<float > getRequantizerGain() const;
296 
297 
298 
299 
306  void setRequantizerGain (std::vector<float > requantizerGain);
307 
308 
309 
310 
314  void clearRequantizerGain ();
315 
316 
317 
319  // Extrinsic Table Attributes //
321 
322 
323  // ===> Attribute antennaId
324 
325 
326 
327 
328 
333  Tag getAntennaId() const;
334 
335 
336 
337 
347  void setAntennaId (Tag antennaId);
348 
349 
350 
351 
352 
353 
354 
355  // ===> Attribute feedId
356 
357 
358 
359 
360 
365  int getFeedId() const;
366 
367 
368 
369 
379  void setFeedId (int feedId);
380 
381 
382 
383 
384 
385 
386 
387  // ===> Attribute spectralWindowId
388 
389 
390 
391 
392 
397  Tag getSpectralWindowId() const;
398 
399 
400 
401 
412 
413 
414 
415 
416 
417 
419  // Links //
421 
422 
423 
424 
425 
433 
434 
435 
436 
437 
438 
439 
440 
448 
449 
450 
451 
452 
453 
454 
455 
456  // ===> Slice link from a row of SysPower table to a collection of row of Feed table.
457 
463  std::vector <FeedRow *> getFeeds();
464 
465 
466 
467 
468 
469 
470 
471 
487  bool compareNoAutoInc(Tag antennaId, Tag spectralWindowId, int feedId, ArrayTimeInterval timeInterval, int numReceptor);
488 
489 
490 
491 
500 
501 
511 
512 #ifndef WITHOUT_ACS
513 
517  asdmIDL::SysPowerRowIDL *toIDL() const;
518 
526  void toIDL(asdmIDL::SysPowerRowIDL& x) const;
527 #endif
528 
529 #ifndef WITHOUT_ACS
530 
535  void setFromIDL (asdmIDL::SysPowerRowIDL x) ;
536 #endif
537 
542  std::string toXML() const;
543 
550  void setFromXML (std::string rowDoc) ;
551 
554  // binary-deserialization material from an EndianIStream //
556 
557  std::map<std::string, SysPowerAttributeFromBin> fromBinMethods;
558 void antennaIdFromBin( EndianIStream& eis);
560 void feedIdFromBin( EndianIStream& eis);
563 
567 
568 
576  static SysPowerRow* fromBin(EndianIStream& eis, SysPowerTable& table, const std::vector<std::string>& attributesSeq);
577 
584  void fromText(const std::string& attributeName, const std::string& t);
586 
587 private:
596 
597  // This method is used by the Table class when this row is added to the table.
598  void isAdded(bool added);
599 
600 
610 
629 
631  // Intrinsic Table Attributes //
633 
634 
635  // ===> Attribute timeInterval
636 
637 
638 
639  ArrayTimeInterval timeInterval;
640 
641 
642 
643 
644 
645 
646  // ===> Attribute numReceptor
647 
648 
649 
651 
652 
653 
654 
655 
656 
657  // ===> Attribute switchedPowerDifference, which is optional
658 
659 
661 
662 
663  std::vector<float > switchedPowerDifference;
664 
665 
666 
667 
668 
669 
670  // ===> Attribute switchedPowerSum, which is optional
671 
672 
674 
675 
676  std::vector<float > switchedPowerSum;
677 
678 
679 
680 
681 
682 
683  // ===> Attribute requantizerGain, which is optional
684 
685 
687 
688 
689  std::vector<float > requantizerGain;
690 
691 
692 
693 
694 
696  // Extrinsic Table Attributes //
698 
699 
700  // ===> Attribute antennaId
701 
702 
703 
704  Tag antennaId;
705 
706 
707 
708 
709 
710 
711  // ===> Attribute feedId
712 
713 
714 
715  int feedId;
716 
717 
718 
719 
720 
721 
722  // ===> Attribute spectralWindowId
723 
724 
725 
727 
728 
729 
730 
731 
733  // Links //
735 
736 
737 
738 
739 
740 
741 
742 
743 
744 
745 
746 
747 
748 
749 
750 
751 
752 
753 
754 
755 
756 
757 /*
759  // binary-deserialization material from an EndianIStream //
761  std::map<std::string, SysPowerAttributeFromBin> fromBinMethods;
762 void antennaIdFromBin( EndianIStream& eis);
763 void spectralWindowIdFromBin( EndianIStream& eis);
764 void feedIdFromBin( EndianIStream& eis);
765 void timeIntervalFromBin( EndianIStream& eis);
766 void numReceptorFromBin( EndianIStream& eis);
767 
768 void switchedPowerDifferenceFromBin( EndianIStream& eis);
769 void switchedPowerSumFromBin( EndianIStream& eis);
770 void requantizerGainFromBin( EndianIStream& eis);
771 
772 */
773 
775  // text-deserialization material //
777  std::map<std::string, SysPowerAttributeFromText> fromTextMethods;
778 
779 void antennaIdFromText (const std::string & s);
780 
781 
782 void spectralWindowIdFromText (const std::string & s);
783 
784 
785 void feedIdFromText (const std::string & s);
786 
787 
788 void timeIntervalFromText (const std::string & s);
789 
790 
791 void numReceptorFromText (const std::string & s);
792 
793 
794 
795 void switchedPowerDifferenceFromText (const std::string & s);
796 
797 
798 void switchedPowerSumFromText (const std::string & s);
799 
800 
801 void requantizerGainFromText (const std::string & s);
802 
803 
804 
809  void toBin(EndianOSStream& eoss);
810 
820 };
821 
822 } // End namespace asdm
823 
824 #endif /* SysPower_CLASS */
std::vector< FeedRow * > getFeeds()
===&gt; Slice link from a row of SysPower table to a collection of row of Feed table.
void setFromIDL(asdmIDL::SysPowerRowIDL x)
Fill the values of this row from the IDL struct SysPowerRowIDL.
SpectralWindowRow * getSpectralWindowUsingSpectralWindowId()
spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
SysPowerTable & table
The table to which this row belongs.
Definition: SysPowerRow.h:591
Tag getSpectralWindowId() const
===&gt; Attribute spectralWindowId
int getFeedId() const
===&gt; Attribute feedId
SysPowerTable & getTable() const
Return the table to which this row belongs.
Links *binary deserialization material from an EndianIStream std::map< std::string, SysPowerAttributeFromBin > fromBinMethods
Definition: SysPowerRow.h:761
std::vector< float > switchedPowerSum
Definition: SysPowerRow.h:676
void(SysPowerRow::* SysPowerAttributeFromText)(const std::string &s)
Definition: SysPowerRow.h:101
void setSwitchedPowerSum(std::vector< float > switchedPowerSum)
Set switchedPowerSum with the specified std::vector&lt;float &gt;.
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
bool switchedPowerSumExists
===&gt; Attribute switchedPowerSum, which is optional
Definition: SysPowerRow.h:673
void setSpectralWindowId(Tag spectralWindowId)
Set spectralWindowId with the specified Tag.
bool isSwitchedPowerSumExists() const
===&gt; Attribute switchedPowerSum, which is optional
Links *AntennaRow * getAntennaUsingAntennaId()
antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId ...
void setRequantizerGain(std::vector< float > requantizerGain)
Set requantizerGain with the specified std::vector&lt;float &gt;.
void requantizerGainFromBin(EndianIStream &eis)
The SysPowerRow class is a row of a SysPowerTable.
Definition: SysPowerRow.h:109
void switchedPowerSumFromText(const std::string &s)
std::vector< float > requantizerGain
Definition: SysPowerRow.h:689
void clearRequantizerGain()
Mark requantizerGain, which is an optional field, as non-existent.
void(SysPowerRow::* SysPowerAttributeFromBin)(EndianIStream &eis)
Definition: SysPowerRow.h:100
std::vector< float > getRequantizerGain() const
Get requantizerGain, which is optional.
void switchedPowerSumFromBin(EndianIStream &eis)
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
bool isAdded() const
Has this row been added to its table ?
void antennaIdFromText(const std::string &s)
void numReceptorFromText(const std::string &s)
virtual ~SysPowerRow()
friend class asdm::TableStreamReader&lt;SysPowerTable, SysPowerRow&gt;;
void setAntennaId(Tag antennaId)
Set antennaId with the specified Tag.
std::vector< float > getSwitchedPowerSum() const
Get switchedPowerSum, which is optional.
bool isSwitchedPowerDifferenceExists() const
===&gt; Attribute switchedPowerDifference, which is optional
void switchedPowerDifferenceFromBin(EndianIStream &eis)
SysPowerRow(SysPowerTable &table)
Create a SysPowerRow.
bool switchedPowerDifferenceExists
===&gt; Attribute switchedPowerDifference, which is optional
Definition: SysPowerRow.h:660
void setFeedId(int feedId)
Set feedId with the specified int.
bool requantizerGainExists
===&gt; Attribute requantizerGain, which is optional
Definition: SysPowerRow.h:686
void numReceptorFromBin(EndianIStream &eis)
void spectralWindowIdFromBin(EndianIStream &eis)
void setNumReceptor(int numReceptor)
Set numReceptor with the specified int.
int numReceptor
===&gt; Attribute numReceptor
Definition: SysPowerRow.h:650
The AntennaRow class is a row of a AntennaTable.
Definition: AntennaRow.h:120
bool equalByRequiredValue(SysPowerRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
asdmIDL::SysPowerRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void spectralWindowIdFromText(const std::string &s)
Tag spectralWindowId
===&gt; Attribute spectralWindowId
Definition: SysPowerRow.h:726
void clearSwitchedPowerDifference()
Mark switchedPowerDifference, which is an optional field, as non-existent.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
void setSwitchedPowerDifference(std::vector< float > switchedPowerDifference)
Set switchedPowerDifference with the specified std::vector&lt;float &gt;.
The SysPowerTable class is an Alma table.
std::vector< float > switchedPowerDifference
Definition: SysPowerRow.h:663
std::vector< float > getSwitchedPowerDifference() const
Get switchedPowerDifference, which is optional.
void switchedPowerDifferenceFromText(const std::string &s)
bool isRequantizerGainExists() const
===&gt; Attribute requantizerGain, which is optional
void timeIntervalFromBin(EndianIStream &eis)
int feedId
===&gt; Attribute feedId
Definition: SysPowerRow.h:715
void clearSwitchedPowerSum()
Mark switchedPowerSum, which is an optional field, as non-existent.
void timeIntervalFromText(const std::string &s)
void antennaIdFromBin(EndianIStream &eis)
bool compareRequiredValue(int numReceptor)
Compare each mandatory value (i.e.
bool compareNoAutoInc(Tag antennaId, Tag spectralWindowId, int feedId, ArrayTimeInterval timeInterval, int numReceptor)
Compare each mandatory attribute except the autoincrementable one of this SysPowerRow with the corres...
void feedIdFromText(const std::string &s)
void requantizerGainFromText(const std::string &s)
The SpectralWindowRow class is a row of a SpectralWindowTable.
bool hasBeenAdded
Whether this row has been added to the table or not.
Definition: SysPowerRow.h:595
void setTimeInterval(ArrayTimeInterval timeInterval)
Set timeInterval with the specified ArrayTimeInterval.
void feedIdFromBin(EndianIStream &eis)
std::string toXML() const
Return this row in the form of an XML string.
*text deserialization material std::map< std::string, SysPowerAttributeFromText > fromTextMethods
Definition: SysPowerRow.h:777
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
int getNumReceptor() const
===&gt; Attribute numReceptor