casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalGainRow.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 CalGainRow.h
32  */
33 
34 #ifndef CalGainRow_CLASS
35 #define CalGainRow_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/ArrayTime.h>
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 
73 
74 
75 
76 
77 
78 
79 
80 
82 #include <alma/ASDM/NoSuchRow.h>
84 
86 //#include <alma/ASDM/TableStreamReader.h>
87 
88 /*\file CalGain.h
89  \brief Generated from model's revision "-1", branch ""
90 */
91 
92 namespace asdm {
93 
94 //class asdm::CalGainTable;
95 
96 
97 // class asdm::CalReductionRow;
98 class CalReductionRow;
99 
100 // class asdm::CalDataRow;
101 class CalDataRow;
102 
103 
104 class CalGainRow;
106 typedef void (CalGainRow::*CalGainAttributeFromText) (const std::string& s);
107 
114 class CalGainRow {
115 friend class asdm::CalGainTable;
117 //friend class asdm::TableStreamReader<CalGainTable, CalGainRow>;
118 
119 public:
120 
121  virtual ~CalGainRow();
122 
126  CalGainTable &getTable() const;
127 
132  bool isAdded() const;
133 
135  // Intrinsic Table Attributes //
137 
138 
139  // ===> Attribute startValidTime
140 
141 
142 
143 
144 
149  ArrayTime getStartValidTime() const;
150 
151 
152 
153 
161  void setStartValidTime (ArrayTime startValidTime);
162 
163 
164 
165 
166 
167 
168 
169  // ===> Attribute endValidTime
170 
171 
172 
173 
174 
179  ArrayTime getEndValidTime() const;
180 
181 
182 
183 
192 
193 
194 
195 
196 
197 
198 
199  // ===> Attribute gain
200 
201 
202 
203 
204 
209  float getGain() const;
210 
211 
212 
213 
221  void setGain (float gain);
222 
223 
224 
225 
226 
227 
228 
229  // ===> Attribute gainValid
230 
231 
232 
233 
234 
239  bool getGainValid() const;
240 
241 
242 
243 
251  void setGainValid (bool gainValid);
252 
253 
254 
255 
256 
257 
258 
259  // ===> Attribute fit
260 
261 
262 
263 
264 
269  float getFit() const;
270 
271 
272 
273 
281  void setFit (float fit);
282 
283 
284 
285 
286 
287 
288 
289  // ===> Attribute fitWeight
290 
291 
292 
293 
294 
299  float getFitWeight() const;
300 
301 
302 
303 
311  void setFitWeight (float fitWeight);
312 
313 
314 
315 
316 
317 
318 
319  // ===> Attribute totalGainValid
320 
321 
322 
323 
324 
329  bool getTotalGainValid() const;
330 
331 
332 
333 
341  void setTotalGainValid (bool totalGainValid);
342 
343 
344 
345 
346 
347 
348 
349  // ===> Attribute totalFit
350 
351 
352 
353 
354 
359  float getTotalFit() const;
360 
361 
362 
363 
371  void setTotalFit (float totalFit);
372 
373 
374 
375 
376 
377 
378 
379  // ===> Attribute totalFitWeight
380 
381 
382 
383 
384 
389  float getTotalFitWeight() const;
390 
391 
392 
393 
401  void setTotalFitWeight (float totalFitWeight);
402 
403 
404 
405 
406 
407 
409  // Extrinsic Table Attributes //
411 
412 
413  // ===> Attribute calDataId
414 
415 
416 
417 
418 
423  Tag getCalDataId() const;
424 
425 
426 
427 
437  void setCalDataId (Tag calDataId);
438 
439 
440 
441 
442 
443 
444 
445  // ===> Attribute calReductionId
446 
447 
448 
449 
450 
455  Tag getCalReductionId() const;
456 
457 
458 
459 
470 
471 
472 
473 
474 
475 
477  // Links //
479 
480 
481 
482 
483 
491 
492 
493 
494 
495 
496 
497 
498 
506 
507 
508 
509 
510 
511 
512 
540  bool compareNoAutoInc(Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, float gain, bool gainValid, float fit, float fitWeight, bool totalGainValid, float totalFit, float totalFitWeight);
541 
542 
543 
544 
568  bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, float gain, bool gainValid, float fit, float fitWeight, bool totalGainValid, float totalFit, float totalFitWeight);
569 
570 
580 
581 #ifndef WITHOUT_ACS
582 
586  asdmIDL::CalGainRowIDL *toIDL() const;
587 
595  void toIDL(asdmIDL::CalGainRowIDL& x) const;
596 #endif
597 
598 #ifndef WITHOUT_ACS
599 
604  void setFromIDL (asdmIDL::CalGainRowIDL x) ;
605 #endif
606 
611  std::string toXML() const;
612 
619  void setFromXML (std::string rowDoc) ;
620 
623  // binary-deserialization material from an EndianIStream //
625 
626  std::map<std::string, CalGainAttributeFromBin> fromBinMethods;
627 void calDataIdFromBin( EndianIStream& eis);
631 void gainFromBin( EndianIStream& eis);
632 void gainValidFromBin( EndianIStream& eis);
633 void fitFromBin( EndianIStream& eis);
634 void fitWeightFromBin( EndianIStream& eis);
636 void totalFitFromBin( EndianIStream& eis);
638 
639 
640 
648  static CalGainRow* fromBin(EndianIStream& eis, CalGainTable& table, const std::vector<std::string>& attributesSeq);
649 
656  void fromText(const std::string& attributeName, const std::string& t);
658 
659 private:
668 
669  // This method is used by the Table class when this row is added to the table.
670  void isAdded(bool added);
671 
672 
682 
701 
703  // Intrinsic Table Attributes //
705 
706 
707  // ===> Attribute startValidTime
708 
709 
710 
711  ArrayTime startValidTime;
712 
713 
714 
715 
716 
717 
718  // ===> Attribute endValidTime
719 
720 
721 
723 
724 
725 
726 
727 
728 
729  // ===> Attribute gain
730 
731 
732 
733  float gain;
734 
735 
736 
737 
738 
739 
740  // ===> Attribute gainValid
741 
742 
743 
744  bool gainValid;
745 
746 
747 
748 
749 
750 
751  // ===> Attribute fit
752 
753 
754 
755  float fit;
756 
757 
758 
759 
760 
761 
762  // ===> Attribute fitWeight
763 
764 
765 
766  float fitWeight;
767 
768 
769 
770 
771 
772 
773  // ===> Attribute totalGainValid
774 
775 
776 
778 
779 
780 
781 
782 
783 
784  // ===> Attribute totalFit
785 
786 
787 
788  float totalFit;
789 
790 
791 
792 
793 
794 
795  // ===> Attribute totalFitWeight
796 
797 
798 
800 
801 
802 
803 
804 
806  // Extrinsic Table Attributes //
808 
809 
810  // ===> Attribute calDataId
811 
812 
813 
814  Tag calDataId;
815 
816 
817 
818 
819 
820 
821  // ===> Attribute calReductionId
822 
823 
824 
826 
827 
828 
829 
830 
832  // Links //
834 
835 
836 
837 
838 
839 
840 
841 
842 
843 
844 
845 
846 
847 
848 
849 
850 /*
852  // binary-deserialization material from an EndianIStream //
854  std::map<std::string, CalGainAttributeFromBin> fromBinMethods;
855 void calDataIdFromBin( EndianIStream& eis);
856 void calReductionIdFromBin( EndianIStream& eis);
857 void startValidTimeFromBin( EndianIStream& eis);
858 void endValidTimeFromBin( EndianIStream& eis);
859 void gainFromBin( EndianIStream& eis);
860 void gainValidFromBin( EndianIStream& eis);
861 void fitFromBin( EndianIStream& eis);
862 void fitWeightFromBin( EndianIStream& eis);
863 void totalGainValidFromBin( EndianIStream& eis);
864 void totalFitFromBin( EndianIStream& eis);
865 void totalFitWeightFromBin( EndianIStream& eis);
866 
867 
868 */
869 
871  // text-deserialization material //
873  std::map<std::string, CalGainAttributeFromText> fromTextMethods;
874 
875 void calDataIdFromText (const std::string & s);
876 
877 
878 void calReductionIdFromText (const std::string & s);
879 
880 
881 void startValidTimeFromText (const std::string & s);
882 
883 
884 void endValidTimeFromText (const std::string & s);
885 
886 
887 void gainFromText (const std::string & s);
888 
889 
890 void gainValidFromText (const std::string & s);
891 
892 
893 void fitFromText (const std::string & s);
894 
895 
896 void fitWeightFromText (const std::string & s);
897 
898 
899 void totalGainValidFromText (const std::string & s);
900 
901 
902 void totalFitFromText (const std::string & s);
903 
904 
905 void totalFitWeightFromText (const std::string & s);
906 
907 
908 
909 
914  void toBin(EndianOSStream& eoss);
915 
925 };
926 
927 } // End namespace asdm
928 
929 #endif /* CalGain_CLASS */
void setCalReductionId(Tag calReductionId)
Set calReductionId with the specified Tag.
void setStartValidTime(ArrayTime startValidTime)
Set startValidTime with the specified ArrayTime.
Links *binary deserialization material from an EndianIStream std::map< std::string, CalGainAttributeFromBin > fromBinMethods
Definition: CalGainRow.h:854
void startValidTimeFromBin(EndianIStream &eis)
void(CalGainRow::* CalGainAttributeFromBin)(EndianIStream &eis)
Definition: CalGainRow.h:105
bool hasBeenAdded
Whether this row has been added to the table or not.
Definition: CalGainRow.h:667
void setGain(float gain)
Set gain with the specified float.
void endValidTimeFromText(const std::string &s)
float totalFitWeight
===&gt; Attribute totalFitWeight
Definition: CalGainRow.h:799
float gain
===&gt; Attribute gain
Definition: CalGainRow.h:733
void fitWeightFromText(const std::string &s)
float getFitWeight() const
===&gt; Attribute fitWeight
CalGainTable & table
The table to which this row belongs.
Definition: CalGainRow.h:663
void totalGainValidFromBin(EndianIStream &eis)
virtual ~CalGainRow()
friend class asdm::TableStreamReader&lt;CalGainTable, CalGainRow&gt;;
void setEndValidTime(ArrayTime endValidTime)
Set endValidTime with the specified ArrayTime.
Links *CalReductionRow * getCalReductionUsingCalReductionId()
calReductionId pointer to the row in the CalReduction table having CalReduction.calReductionId == cal...
void gainFromText(const std::string &s)
void fitWeightFromBin(EndianIStream &eis)
*text deserialization material std::map< std::string, CalGainAttributeFromText > fromTextMethods
Definition: CalGainRow.h:873
bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, float gain, bool gainValid, float fit, float fitWeight, bool totalGainValid, float totalFit, float totalFitWeight)
Compare each mandatory value (i.e.
void totalFitFromBin(EndianIStream &eis)
void gainFromBin(EndianIStream &eis)
Tag calReductionId
===&gt; Attribute calReductionId
Definition: CalGainRow.h:825
void calReductionIdFromText(const std::string &s)
void calDataIdFromBin(EndianIStream &eis)
void setGainValid(bool gainValid)
Set gainValid with the specified bool.
void setTotalFit(float totalFit)
Set totalFit with the specified float.
CalGainTable & getTable() const
Return the table to which this row belongs.
void totalGainValidFromText(const std::string &s)
bool getTotalGainValid() const
===&gt; Attribute totalGainValid
bool totalGainValid
===&gt; Attribute totalGainValid
Definition: CalGainRow.h:777
void totalFitWeightFromBin(EndianIStream &eis)
The CalGainTable class is an Alma table.
Definition: CalGainTable.h:201
bool gainValid
===&gt; Attribute gainValid
Definition: CalGainRow.h:744
void gainValidFromText(const std::string &s)
float totalFit
===&gt; Attribute totalFit
Definition: CalGainRow.h:788
bool isAdded() const
Has this row been added to its table ?
void(CalGainRow::* CalGainAttributeFromText)(const std::string &s)
Definition: CalGainRow.h:106
void fitFromText(const std::string &s)
The CalReductionRow class is a row of a CalReductionTable.
float getTotalFit() const
===&gt; Attribute totalFit
bool equalByRequiredValue(CalGainRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
ArrayTime endValidTime
===&gt; Attribute endValidTime
Definition: CalGainRow.h:722
ArrayTime getEndValidTime() const
===&gt; Attribute endValidTime
bool compareNoAutoInc(Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, float gain, bool gainValid, float fit, float fitWeight, bool totalGainValid, float totalFit, float totalFitWeight)
Compare each mandatory attribute except the autoincrementable one of this CalGainRow with the corresp...
bool getGainValid() const
===&gt; Attribute gainValid
void setFromIDL(asdmIDL::CalGainRowIDL x)
Fill the values of this row from the IDL struct CalGainRowIDL.
void setTotalFitWeight(float totalFitWeight)
Set totalFitWeight with the specified float.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
Definition: ArrayTime.h:89
float getTotalFitWeight() const
===&gt; Attribute totalFitWeight
void gainValidFromBin(EndianIStream &eis)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
void setTotalGainValid(bool totalGainValid)
Set totalGainValid with the specified bool.
CalGainRow(CalGainTable &table)
Create a CalGainRow.
Tag getCalReductionId() const
===&gt; Attribute calReductionId
asdmIDL::CalGainRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void totalFitFromText(const std::string &s)
float getFit() const
===&gt; Attribute fit
void endValidTimeFromBin(EndianIStream &eis)
void setFitWeight(float fitWeight)
Set fitWeight with the specified float.
CalDataRow * getCalDataUsingCalDataId()
calDataId pointer to the row in the CalData table having CalData.calDataId == calDataId ...
The CalGainRow class is a row of a CalGainTable.
Definition: CalGainRow.h:114
float fitWeight
===&gt; Attribute fitWeight
Definition: CalGainRow.h:766
The CalDataRow class is a row of a CalDataTable.
Definition: CalDataRow.h:130
void calDataIdFromText(const std::string &s)
void setCalDataId(Tag calDataId)
Set calDataId with the specified Tag.
void fitFromBin(EndianIStream &eis)
float getGain() const
===&gt; Attribute gain
void totalFitWeightFromText(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.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void setFit(float fit)
Set fit with the specified float.
void startValidTimeFromText(const std::string &s)
std::string toXML() const
Return this row in the form of an XML string.
void calReductionIdFromBin(EndianIStream &eis)
float fit
===&gt; Attribute fit
Definition: CalGainRow.h:755