casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalAmpliRow.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 CalAmpliRow.h
32  */
33 
34 #ifndef CalAmpliRow_CLASS
35 #define CalAmpliRow_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/Frequency.h>
56 
57 
58 
59 #include <alma/ASDM/Tag.h>
60 
61 
62 
63 
64 
65 
66 
67 
69 
70 
71 
73 
74 
75 
77 
78 
79 
80 
81 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
100 #include <alma/ASDM/NoSuchRow.h>
102 
104 //#include <alma/ASDM/TableStreamReader.h>
105 
106 /*\file CalAmpli.h
107  \brief Generated from model's revision "-1", branch ""
108 */
109 
110 namespace asdm {
111 
112 //class asdm::CalAmpliTable;
113 
114 
115 // class asdm::CalDataRow;
116 class CalDataRow;
117 
118 // class asdm::CalReductionRow;
119 class CalReductionRow;
120 
121 
122 class CalAmpliRow;
124 typedef void (CalAmpliRow::*CalAmpliAttributeFromText) (const std::string& s);
125 
132 class CalAmpliRow {
133 friend class asdm::CalAmpliTable;
135 //friend class asdm::TableStreamReader<CalAmpliTable, CalAmpliRow>;
136 
137 public:
138 
139  virtual ~CalAmpliRow();
140 
144  CalAmpliTable &getTable() const;
145 
150  bool isAdded() const;
151 
153  // Intrinsic Table Attributes //
155 
156 
157  // ===> Attribute antennaName
158 
159 
160 
161 
162 
167  std::string getAntennaName() const;
168 
169 
170 
171 
181  void setAntennaName (std::string antennaName);
182 
183 
184 
185 
186 
187 
188 
189  // ===> Attribute atmPhaseCorrection
190 
191 
192 
193 
194 
199  AtmPhaseCorrectionMod::AtmPhaseCorrection getAtmPhaseCorrection() const;
200 
201 
202 
203 
213  void setAtmPhaseCorrection (AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection);
214 
215 
216 
217 
218 
219 
220 
221  // ===> Attribute receiverBand
222 
223 
224 
225 
226 
231  ReceiverBandMod::ReceiverBand getReceiverBand() const;
232 
233 
234 
235 
245  void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
246 
247 
248 
249 
250 
251 
252 
253  // ===> Attribute basebandName
254 
255 
256 
257 
258 
263  BasebandNameMod::BasebandName getBasebandName() const;
264 
265 
266 
267 
277  void setBasebandName (BasebandNameMod::BasebandName basebandName);
278 
279 
280 
281 
282 
283 
284 
285  // ===> Attribute numReceptor
286 
287 
288 
289 
290 
295  int getNumReceptor() const;
296 
297 
298 
299 
307  void setNumReceptor (int numReceptor);
308 
309 
310 
311 
312 
313 
314 
315  // ===> Attribute polarizationTypes
316 
317 
318 
319 
320 
325  std::vector<PolarizationTypeMod::PolarizationType > getPolarizationTypes() const;
326 
327 
328 
329 
337  void setPolarizationTypes (std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes);
338 
339 
340 
341 
342 
343 
344 
345  // ===> Attribute startValidTime
346 
347 
348 
349 
350 
356 
357 
358 
359 
368 
369 
370 
371 
372 
373 
374 
375  // ===> Attribute endValidTime
376 
377 
378 
379 
380 
385  ArrayTime getEndValidTime() const;
386 
387 
388 
389 
398 
399 
400 
401 
402 
403 
404 
405  // ===> Attribute frequencyRange
406 
407 
408 
409 
410 
415  std::vector<Frequency > getFrequencyRange() const;
416 
417 
418 
419 
427  void setFrequencyRange (std::vector<Frequency > frequencyRange);
428 
429 
430 
431 
432 
433 
434 
435  // ===> Attribute apertureEfficiency
436 
437 
438 
439 
440 
445  std::vector<float > getApertureEfficiency() const;
446 
447 
448 
449 
457  void setApertureEfficiency (std::vector<float > apertureEfficiency);
458 
459 
460 
461 
462 
463 
464 
465  // ===> Attribute apertureEfficiencyError
466 
467 
468 
469 
470 
475  std::vector<float > getApertureEfficiencyError() const;
476 
477 
478 
479 
487  void setApertureEfficiencyError (std::vector<float > apertureEfficiencyError);
488 
489 
490 
491 
492 
493 
494 
495  // ===> Attribute correctionValidity, which is optional
496 
497 
498 
503  bool isCorrectionValidityExists() const;
504 
505 
506 
512  bool getCorrectionValidity() const;
513 
514 
515 
516 
524 
525 
526 
527 
531  void clearCorrectionValidity ();
532 
533 
534 
536  // Extrinsic Table Attributes //
538 
539 
540  // ===> Attribute calDataId
541 
542 
543 
544 
545 
550  Tag getCalDataId() const;
551 
552 
553 
554 
564  void setCalDataId (Tag calDataId);
565 
566 
567 
568 
569 
570 
571 
572  // ===> Attribute calReductionId
573 
574 
575 
576 
577 
582  Tag getCalReductionId() const;
583 
584 
585 
586 
597 
598 
599 
600 
601 
602 
604  // Links //
606 
607 
608 
609 
610 
618 
619 
620 
621 
622 
623 
624 
625 
633 
634 
635 
636 
637 
638 
639 
671  bool compareNoAutoInc(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId, int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, std::vector<Frequency > frequencyRange, std::vector<float > apertureEfficiency, std::vector<float > apertureEfficiencyError);
672 
673 
674 
675 
695  bool compareRequiredValue(int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, std::vector<Frequency > frequencyRange, std::vector<float > apertureEfficiency, std::vector<float > apertureEfficiencyError);
696 
697 
707 
708 #ifndef WITHOUT_ACS
709 
713  asdmIDL::CalAmpliRowIDL *toIDL() const;
714 
722  void toIDL(asdmIDL::CalAmpliRowIDL& x) const;
723 #endif
724 
725 #ifndef WITHOUT_ACS
726 
731  void setFromIDL (asdmIDL::CalAmpliRowIDL x) ;
732 #endif
733 
738  std::string toXML() const;
739 
746  void setFromXML (std::string rowDoc) ;
747 
750  // binary-deserialization material from an EndianIStream //
752 
753  std::map<std::string, CalAmpliAttributeFromBin> fromBinMethods;
758 void calDataIdFromBin( EndianIStream& eis);
767 
769 
770 
778  static CalAmpliRow* fromBin(EndianIStream& eis, CalAmpliTable& table, const std::vector<std::string>& attributesSeq);
779 
786  void fromText(const std::string& attributeName, const std::string& t);
788 
789 private:
798 
799  // This method is used by the Table class when this row is added to the table.
800  void isAdded(bool added);
801 
802 
812 
831 
833  // Intrinsic Table Attributes //
835 
836 
837  // ===> Attribute antennaName
838 
839 
840 
841  std::string antennaName;
842 
843 
844 
845 
846 
847 
848  // ===> Attribute atmPhaseCorrection
849 
850 
851 
852  AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection;
853 
854 
855 
856 
857 
858 
859  // ===> Attribute receiverBand
860 
861 
862 
863  ReceiverBandMod::ReceiverBand receiverBand;
864 
865 
866 
867 
868 
869 
870  // ===> Attribute basebandName
871 
872 
873 
874  BasebandNameMod::BasebandName basebandName;
875 
876 
877 
878 
879 
880 
881  // ===> Attribute numReceptor
882 
883 
884 
886 
887 
888 
889 
890 
891 
892  // ===> Attribute polarizationTypes
893 
894 
895 
896  std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes;
897 
898 
899 
900 
901 
902 
903  // ===> Attribute startValidTime
904 
905 
906 
908 
909 
910 
911 
912 
913 
914  // ===> Attribute endValidTime
915 
916 
917 
919 
920 
921 
922 
923 
924 
925  // ===> Attribute frequencyRange
926 
927 
928 
929  std::vector<Frequency > frequencyRange;
930 
931 
932 
933 
934 
935 
936  // ===> Attribute apertureEfficiency
937 
938 
939 
940  std::vector<float > apertureEfficiency;
941 
942 
943 
944 
945 
946 
947  // ===> Attribute apertureEfficiencyError
948 
949 
950 
951  std::vector<float > apertureEfficiencyError;
952 
953 
954 
955 
956 
957 
958  // ===> Attribute correctionValidity, which is optional
959 
960 
962 
963 
965 
966 
967 
968 
969 
971  // Extrinsic Table Attributes //
973 
974 
975  // ===> Attribute calDataId
976 
977 
978 
979  Tag calDataId;
980 
981 
982 
983 
984 
985 
986  // ===> Attribute calReductionId
987 
988 
989 
991 
992 
993 
994 
995 
997  // Links //
999 
1000 
1001 
1002 
1003 
1004 
1005 
1006 
1007 
1008 
1009 
1010 
1011 
1012 
1013 
1014 
1015 /*
1017  // binary-deserialization material from an EndianIStream //
1019  std::map<std::string, CalAmpliAttributeFromBin> fromBinMethods;
1020 void antennaNameFromBin( EndianIStream& eis);
1021 void atmPhaseCorrectionFromBin( EndianIStream& eis);
1022 void receiverBandFromBin( EndianIStream& eis);
1023 void basebandNameFromBin( EndianIStream& eis);
1024 void calDataIdFromBin( EndianIStream& eis);
1025 void calReductionIdFromBin( EndianIStream& eis);
1026 void numReceptorFromBin( EndianIStream& eis);
1027 void polarizationTypesFromBin( EndianIStream& eis);
1028 void startValidTimeFromBin( EndianIStream& eis);
1029 void endValidTimeFromBin( EndianIStream& eis);
1030 void frequencyRangeFromBin( EndianIStream& eis);
1031 void apertureEfficiencyFromBin( EndianIStream& eis);
1032 void apertureEfficiencyErrorFromBin( EndianIStream& eis);
1033 
1034 void correctionValidityFromBin( EndianIStream& eis);
1035 
1036 */
1037 
1039  // text-deserialization material //
1041  std::map<std::string, CalAmpliAttributeFromText> fromTextMethods;
1042 
1043 void antennaNameFromText (const std::string & s);
1044 
1045 
1046 void atmPhaseCorrectionFromText (const std::string & s);
1047 
1048 
1049 void receiverBandFromText (const std::string & s);
1050 
1051 
1052 void basebandNameFromText (const std::string & s);
1053 
1054 
1055 void calDataIdFromText (const std::string & s);
1056 
1057 
1058 void calReductionIdFromText (const std::string & s);
1059 
1060 
1061 void numReceptorFromText (const std::string & s);
1062 
1063 
1064 void polarizationTypesFromText (const std::string & s);
1065 
1066 
1067 void startValidTimeFromText (const std::string & s);
1068 
1069 
1070 void endValidTimeFromText (const std::string & s);
1071 
1072 
1073 void frequencyRangeFromText (const std::string & s);
1074 
1075 
1076 void apertureEfficiencyFromText (const std::string & s);
1077 
1078 
1079 void apertureEfficiencyErrorFromText (const std::string & s);
1080 
1081 
1082 
1083 void correctionValidityFromText (const std::string & s);
1084 
1085 
1086 
1091  void toBin(EndianOSStream& eoss);
1092 
1102 };
1103 
1104 } // End namespace asdm
1105 
1106 #endif /* CalAmpli_CLASS */
bool isAdded() const
Has this row been added to its table ?
void startValidTimeFromText(const std::string &s)
void atmPhaseCorrectionFromBin(EndianIStream &eis)
void apertureEfficiencyFromBin(EndianIStream &eis)
void basebandNameFromText(const std::string &s)
void apertureEfficiencyFromText(const std::string &s)
The CalAmpliTable class is an Alma table.
CalAmpliTable & getTable() const
Return the table to which this row belongs.
void endValidTimeFromBin(EndianIStream &eis)
void setPolarizationTypes(std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes)
Set polarizationTypes with the specified std::vector&lt;PolarizationTypeMod::PolarizationType &gt;...
void setCalReductionId(Tag calReductionId)
Set calReductionId with the specified Tag.
AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection
===&gt; Attribute atmPhaseCorrection
Definition: CalAmpliRow.h:852
AtmPhaseCorrectionMod::AtmPhaseCorrection getAtmPhaseCorrection() const
===&gt; Attribute atmPhaseCorrection
void polarizationTypesFromText(const std::string &s)
void atmPhaseCorrectionFromText(const std::string &s)
void antennaNameFromBin(EndianIStream &eis)
std::vector< float > apertureEfficiency
===&gt; Attribute apertureEfficiency
Definition: CalAmpliRow.h:940
void numReceptorFromText(const std::string &s)
void frequencyRangeFromBin(EndianIStream &eis)
void numReceptorFromBin(EndianIStream &eis)
std::vector< Frequency > getFrequencyRange() const
===&gt; Attribute frequencyRange
ArrayTime getEndValidTime() const
===&gt; Attribute endValidTime
bool hasBeenAdded
Whether this row has been added to the table or not.
Definition: CalAmpliRow.h:797
void calDataIdFromBin(EndianIStream &eis)
bool correctionValidityExists
===&gt; Attribute correctionValidity, which is optional
Definition: CalAmpliRow.h:961
void correctionValidityFromBin(EndianIStream &eis)
Links *binary deserialization material from an EndianIStream std::map< std::string, CalAmpliAttributeFromBin > fromBinMethods
Definition: CalAmpliRow.h:1019
int getNumReceptor() const
===&gt; Attribute numReceptor
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void receiverBandFromText(const std::string &s)
The CalAmpliRow class is a row of a CalAmpliTable.
Definition: CalAmpliRow.h:132
void setApertureEfficiencyError(std::vector< float > apertureEfficiencyError)
Set apertureEfficiencyError with the specified std::vector&lt;float &gt;.
ArrayTime startValidTime
===&gt; Attribute startValidTime
Definition: CalAmpliRow.h:907
void receiverBandFromBin(EndianIStream &eis)
bool getCorrectionValidity() const
Get correctionValidity, which is optional.
std::vector< float > getApertureEfficiency() const
===&gt; Attribute apertureEfficiency
asdmIDL::CalAmpliRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void setReceiverBand(ReceiverBandMod::ReceiverBand receiverBand)
Set receiverBand with the specified ReceiverBandMod::ReceiverBand.
std::vector< PolarizationTypeMod::PolarizationType > getPolarizationTypes() const
===&gt; Attribute polarizationTypes
void endValidTimeFromText(const std::string &s)
void basebandNameFromBin(EndianIStream &eis)
Tag getCalReductionId() const
===&gt; Attribute calReductionId
void calReductionIdFromText(const std::string &s)
The CalReductionRow class is a row of a CalReductionTable.
void setFromIDL(asdmIDL::CalAmpliRowIDL x)
Fill the values of this row from the IDL struct CalAmpliRowIDL.
CalAmpliRow(CalAmpliTable &table)
Create a CalAmpliRow.
std::vector< Frequency > frequencyRange
===&gt; Attribute frequencyRange
Definition: CalAmpliRow.h:929
virtual ~CalAmpliRow()
friend class asdm::TableStreamReader&lt;CalAmpliTable, CalAmpliRow&gt;;
void setEndValidTime(ArrayTime endValidTime)
Set endValidTime with the specified ArrayTime.
void apertureEfficiencyErrorFromBin(EndianIStream &eis)
void setAntennaName(std::string antennaName)
Set antennaName with the specified std::string.
void setStartValidTime(ArrayTime startValidTime)
Set startValidTime with the specified ArrayTime.
void frequencyRangeFromText(const std::string &s)
CalReductionRow * getCalReductionUsingCalReductionId()
calReductionId pointer to the row in the CalReduction table having CalReduction.calReductionId == cal...
bool compareNoAutoInc(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId, int numReceptor, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Frequency > frequencyRange, std::vector< float > apertureEfficiency, std::vector< float > apertureEfficiencyError)
Compare each mandatory attribute except the autoincrementable one of this CalAmpliRow with the corres...
bool equalByRequiredValue(CalAmpliRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void setFrequencyRange(std::vector< Frequency > frequencyRange)
Set frequencyRange with the specified std::vector&lt;Frequency &gt;.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
Definition: ArrayTime.h:89
void startValidTimeFromBin(EndianIStream &eis)
void apertureEfficiencyErrorFromText(const std::string &s)
void setBasebandName(BasebandNameMod::BasebandName basebandName)
Set basebandName with the specified BasebandNameMod::BasebandName.
ReceiverBandMod::ReceiverBand getReceiverBand() const
===&gt; Attribute receiverBand
std::string toXML() const
Return this row in the form of an XML string.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
Tag calReductionId
===&gt; Attribute calReductionId
Definition: CalAmpliRow.h:990
void(CalAmpliRow::* CalAmpliAttributeFromText)(const std::string &s)
Definition: CalAmpliRow.h:124
ReceiverBandMod::ReceiverBand receiverBand
===&gt; Attribute receiverBand
Definition: CalAmpliRow.h:863
*text deserialization material std::map< std::string, CalAmpliAttributeFromText > fromTextMethods
Definition: CalAmpliRow.h:1041
void clearCorrectionValidity()
Mark correctionValidity, which is an optional field, as non-existent.
void setAtmPhaseCorrection(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection)
Set atmPhaseCorrection with the specified AtmPhaseCorrectionMod::AtmPhaseCorrection.
void polarizationTypesFromBin(EndianIStream &eis)
void antennaNameFromText(const std::string &s)
BasebandNameMod::BasebandName basebandName
===&gt; Attribute basebandName
Definition: CalAmpliRow.h:874
void calReductionIdFromBin(EndianIStream &eis)
bool isCorrectionValidityExists() const
===&gt; Attribute correctionValidity, which is optional
Links *CalDataRow * getCalDataUsingCalDataId()
calDataId pointer to the row in the CalData table having CalData.calDataId == calDataId ...
ArrayTime getStartValidTime() const
===&gt; Attribute startValidTime
The CalDataRow class is a row of a CalDataTable.
Definition: CalDataRow.h:130
void setApertureEfficiency(std::vector< float > apertureEfficiency)
Set apertureEfficiency with the specified std::vector&lt;float &gt;.
std::vector< float > apertureEfficiencyError
===&gt; Attribute apertureEfficiencyError
Definition: CalAmpliRow.h:951
std::vector< float > getApertureEfficiencyError() const
===&gt; Attribute apertureEfficiencyError
void setCalDataId(Tag calDataId)
Set calDataId with the specified Tag.
void calDataIdFromText(const std::string &s)
void setCorrectionValidity(bool correctionValidity)
Set correctionValidity with the specified bool.
CalAmpliTable & table
The table to which this row belongs.
Definition: CalAmpliRow.h:793
void(CalAmpliRow::* CalAmpliAttributeFromBin)(EndianIStream &eis)
Definition: CalAmpliRow.h:123
bool compareRequiredValue(int numReceptor, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Frequency > frequencyRange, std::vector< float > apertureEfficiency, std::vector< float > apertureEfficiencyError)
Compare each mandatory value (i.e.
void setNumReceptor(int numReceptor)
Set numReceptor with the specified int.
std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes
===&gt; Attribute polarizationTypes
Definition: CalAmpliRow.h:896
void correctionValidityFromText(const std::string &s)
ArrayTime endValidTime
===&gt; Attribute endValidTime
Definition: CalAmpliRow.h:918
BasebandNameMod::BasebandName getBasebandName() const
===&gt; Attribute basebandName
int numReceptor
===&gt; Attribute numReceptor
Definition: CalAmpliRow.h:885