casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DelayModelVariableParametersRow.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 DelayModelVariableParametersRow.h
32  */
33 
34 #ifndef DelayModelVariableParametersRow_CLASS
35 #define DelayModelVariableParametersRow_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/Angle.h>
52 
53 
54 
55 #include <alma/ASDM/AngularRate.h>
56 
57 
58 
59 #include <alma/ASDM/ArrayTime.h>
60 
61 
62 
63 #include <alma/ASDM/Tag.h>
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
77 
79 
80 
81 
82 
83 
84 
85 
86 
87 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
102 #include <alma/ASDM/NoSuchRow.h>
104 
106 //#include <alma/ASDM/TableStreamReader.h>
107 
108 /*\file DelayModelVariableParameters.h
109  \brief Generated from model's revision "-1", branch ""
110 */
111 
112 namespace asdm {
113 
114 //class asdm::DelayModelVariableParametersTable;
115 
116 
117 // class asdm::DelayModelFixedParametersRow;
118 class DelayModelFixedParametersRow;
119 
120 
121 class DelayModelVariableParametersRow;
124 
134 //friend class asdm::TableStreamReader<DelayModelVariableParametersTable, DelayModelVariableParametersRow>;
135 
136 public:
137 
139 
144 
149  bool isAdded() const;
150 
152  // Intrinsic Table Attributes //
154 
155 
156  // ===> Attribute delayModelVariableParametersId
157 
158 
159 
160 
161 
166  Tag getDelayModelVariableParametersId() const;
167 
168 
169 
170 
171 
172 
173 
174 
175 
176  // ===> Attribute time
177 
178 
179 
180 
181 
186  ArrayTime getTime() const;
187 
188 
189 
190 
198  void setTime (ArrayTime time);
199 
200 
201 
202 
203 
204 
205 
206  // ===> Attribute ut1_utc
207 
208 
209 
210 
211 
216  double getUt1_utc() const;
217 
218 
219 
220 
228  void setUt1_utc (double ut1_utc);
229 
230 
231 
232 
233 
234 
235 
236  // ===> Attribute iat_utc
237 
238 
239 
240 
241 
246  double getIat_utc() const;
247 
248 
249 
250 
258  void setIat_utc (double iat_utc);
259 
260 
261 
262 
263 
264 
265 
266  // ===> Attribute timeType
267 
268 
269 
270 
271 
276  DifferenceTypeMod::DifferenceType getTimeType() const;
277 
278 
279 
280 
288  void setTimeType (DifferenceTypeMod::DifferenceType timeType);
289 
290 
291 
292 
293 
294 
295 
296  // ===> Attribute gstAtUt0
297 
298 
299 
300 
301 
306  Angle getGstAtUt0() const;
307 
308 
309 
310 
318  void setGstAtUt0 (Angle gstAtUt0);
319 
320 
321 
322 
323 
324 
325 
326  // ===> Attribute earthRotationRate
327 
328 
329 
330 
331 
337 
338 
339 
340 
349 
350 
351 
352 
353 
354 
355 
356  // ===> Attribute polarOffsets
357 
358 
359 
360 
361 
366  std::vector<double > getPolarOffsets() const;
367 
368 
369 
370 
378  void setPolarOffsets (std::vector<double > polarOffsets);
379 
380 
381 
382 
383 
384 
385 
386  // ===> Attribute polarOffsetsType
387 
388 
389 
390 
391 
396  DifferenceTypeMod::DifferenceType getPolarOffsetsType() const;
397 
398 
399 
400 
408  void setPolarOffsetsType (DifferenceTypeMod::DifferenceType polarOffsetsType);
409 
410 
411 
412 
413 
414 
415 
416  // ===> Attribute nutationInLongitude, which is optional
417 
418 
419 
424  bool isNutationInLongitudeExists() const;
425 
426 
427 
434 
435 
436 
437 
445 
446 
447 
448 
452  void clearNutationInLongitude ();
453 
454 
455 
456 
457  // ===> Attribute nutationInLongitudeRate, which is optional
458 
459 
460 
465  bool isNutationInLongitudeRateExists() const;
466 
467 
468 
475 
476 
477 
478 
486 
487 
488 
489 
494 
495 
496 
497 
498  // ===> Attribute nutationInObliquity, which is optional
499 
500 
501 
506  bool isNutationInObliquityExists() const;
507 
508 
509 
516 
517 
518 
519 
527 
528 
529 
530 
534  void clearNutationInObliquity ();
535 
536 
537 
538 
539  // ===> Attribute nutationInObliquityRate, which is optional
540 
541 
542 
547  bool isNutationInObliquityRateExists() const;
548 
549 
550 
557 
558 
559 
560 
568 
569 
570 
571 
576 
577 
578 
580  // Extrinsic Table Attributes //
582 
583 
584  // ===> Attribute delayModelFixedParametersId
585 
586 
587 
588 
589 
594  Tag getDelayModelFixedParametersId() const;
595 
596 
597 
598 
606  void setDelayModelFixedParametersId (Tag delayModelFixedParametersId);
607 
608 
609 
610 
611 
612 
614  // Links //
616 
617 
618 
619 
620 
628 
629 
630 
631 
632 
633 
634 
658  bool compareNoAutoInc(ArrayTime time, double ut1_utc, double iat_utc, DifferenceTypeMod::DifferenceType timeType, Angle gstAtUt0, AngularRate earthRotationRate, std::vector<double > polarOffsets, DifferenceTypeMod::DifferenceType polarOffsetsType, Tag delayModelFixedParametersId);
659 
660 
661 
662 
686  bool compareRequiredValue(ArrayTime time, double ut1_utc, double iat_utc, DifferenceTypeMod::DifferenceType timeType, Angle gstAtUt0, AngularRate earthRotationRate, std::vector<double > polarOffsets, DifferenceTypeMod::DifferenceType polarOffsetsType, Tag delayModelFixedParametersId);
687 
688 
698 
699 #ifndef WITHOUT_ACS
700 
704  asdmIDL::DelayModelVariableParametersRowIDL *toIDL() const;
705 
713  void toIDL(asdmIDL::DelayModelVariableParametersRowIDL& x) const;
714 #endif
715 
716 #ifndef WITHOUT_ACS
717 
722  void setFromIDL (asdmIDL::DelayModelVariableParametersRowIDL x) ;
723 #endif
724 
729  std::string toXML() const;
730 
737  void setFromXML (std::string rowDoc) ;
738 
741  // binary-deserialization material from an EndianIStream //
743 
744  std::map<std::string, DelayModelVariableParametersAttributeFromBin> fromBinMethods;
746 void timeFromBin( EndianIStream& eis);
747 void ut1_utcFromBin( EndianIStream& eis);
748 void iat_utcFromBin( EndianIStream& eis);
749 void timeTypeFromBin( EndianIStream& eis);
750 void gstAtUt0FromBin( EndianIStream& eis);
755 
760 
761 
769  static DelayModelVariableParametersRow* fromBin(EndianIStream& eis, DelayModelVariableParametersTable& table, const std::vector<std::string>& attributesSeq);
770 
777  void fromText(const std::string& attributeName, const std::string& t);
779 
780 private:
789 
790  // This method is used by the Table class when this row is added to the table.
791  void isAdded(bool added);
792 
793 
803 
822 
824  // Intrinsic Table Attributes //
826 
827 
828  // ===> Attribute delayModelVariableParametersId
829 
830 
831 
832  Tag delayModelVariableParametersId;
833 
834 
835 
836 
846  void setDelayModelVariableParametersId (Tag delayModelVariableParametersId);
847 
848 
849 
850 
851  // ===> Attribute time
852 
853 
854 
856 
857 
858 
859 
860 
861 
862  // ===> Attribute ut1_utc
863 
864 
865 
866  double ut1_utc;
867 
868 
869 
870 
871 
872 
873  // ===> Attribute iat_utc
874 
875 
876 
877  double iat_utc;
878 
879 
880 
881 
882 
883 
884  // ===> Attribute timeType
885 
886 
887 
888  DifferenceTypeMod::DifferenceType timeType;
889 
890 
891 
892 
893 
894 
895  // ===> Attribute gstAtUt0
896 
897 
898 
900 
901 
902 
903 
904 
905 
906  // ===> Attribute earthRotationRate
907 
908 
909 
911 
912 
913 
914 
915 
916 
917  // ===> Attribute polarOffsets
918 
919 
920 
921  std::vector<double > polarOffsets;
922 
923 
924 
925 
926 
927 
928  // ===> Attribute polarOffsetsType
929 
930 
931 
932  DifferenceTypeMod::DifferenceType polarOffsetsType;
933 
934 
935 
936 
937 
938 
939  // ===> Attribute nutationInLongitude, which is optional
940 
941 
943 
944 
946 
947 
948 
949 
950 
951 
952  // ===> Attribute nutationInLongitudeRate, which is optional
953 
954 
956 
957 
959 
960 
961 
962 
963 
964 
965  // ===> Attribute nutationInObliquity, which is optional
966 
967 
969 
970 
972 
973 
974 
975 
976 
977 
978  // ===> Attribute nutationInObliquityRate, which is optional
979 
980 
982 
983 
985 
986 
987 
988 
989 
991  // Extrinsic Table Attributes //
993 
994 
995  // ===> Attribute delayModelFixedParametersId
996 
997 
998 
999  Tag delayModelFixedParametersId;
1000 
1001 
1002 
1003 
1004 
1006  // Links //
1008 
1009 
1010 
1011 
1012 
1013 
1014 
1015 
1016 
1017 /*
1019  // binary-deserialization material from an EndianIStream //
1021  std::map<std::string, DelayModelVariableParametersAttributeFromBin> fromBinMethods;
1022 void delayModelVariableParametersIdFromBin( EndianIStream& eis);
1023 void timeFromBin( EndianIStream& eis);
1024 void ut1_utcFromBin( EndianIStream& eis);
1025 void iat_utcFromBin( EndianIStream& eis);
1026 void timeTypeFromBin( EndianIStream& eis);
1027 void gstAtUt0FromBin( EndianIStream& eis);
1028 void earthRotationRateFromBin( EndianIStream& eis);
1029 void polarOffsetsFromBin( EndianIStream& eis);
1030 void polarOffsetsTypeFromBin( EndianIStream& eis);
1031 void delayModelFixedParametersIdFromBin( EndianIStream& eis);
1032 
1033 void nutationInLongitudeFromBin( EndianIStream& eis);
1034 void nutationInLongitudeRateFromBin( EndianIStream& eis);
1035 void nutationInObliquityFromBin( EndianIStream& eis);
1036 void nutationInObliquityRateFromBin( EndianIStream& eis);
1037 
1038 */
1039 
1041  // text-deserialization material //
1043  std::map<std::string, DelayModelVariableParametersAttributeFromText> fromTextMethods;
1044 
1045 void delayModelVariableParametersIdFromText (const std::string & s);
1046 
1047 
1048 void timeFromText (const std::string & s);
1049 
1050 
1051 void ut1_utcFromText (const std::string & s);
1052 
1053 
1054 void iat_utcFromText (const std::string & s);
1055 
1056 
1057 void timeTypeFromText (const std::string & s);
1058 
1059 
1060 void gstAtUt0FromText (const std::string & s);
1061 
1062 
1063 void earthRotationRateFromText (const std::string & s);
1064 
1065 
1066 void polarOffsetsFromText (const std::string & s);
1067 
1068 
1069 void polarOffsetsTypeFromText (const std::string & s);
1070 
1071 
1072 void delayModelFixedParametersIdFromText (const std::string & s);
1073 
1074 
1075 
1076 void nutationInLongitudeFromText (const std::string & s);
1077 
1078 
1079 void nutationInLongitudeRateFromText (const std::string & s);
1080 
1081 
1082 void nutationInObliquityFromText (const std::string & s);
1083 
1084 
1085 void nutationInObliquityRateFromText (const std::string & s);
1086 
1087 
1088 
1093  void toBin(EndianOSStream& eoss);
1094 
1104 };
1105 
1106 } // End namespace asdm
1107 
1108 #endif /* DelayModelVariableParameters_CLASS */
void gstAtUt0FromText(const std::string &s)
bool isNutationInLongitudeExists() const
===&gt; Attribute nutationInLongitude, which is optional
void clearNutationInLongitude()
Mark nutationInLongitude, which is an optional field, as non-existent.
DifferenceTypeMod::DifferenceType getTimeType() const
===&gt; Attribute timeType
void nutationInObliquityRateFromText(const std::string &s)
void polarOffsetsTypeFromBin(EndianIStream &eis)
void ut1_utcFromBin(EndianIStream &eis)
void setUt1_utc(double ut1_utc)
Set ut1_utc with the specified double.
void setIat_utc(double iat_utc)
Set iat_utc with the specified double.
void ut1_utcFromText(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(DelayModelVariableParametersRow::* DelayModelVariableParametersAttributeFromBin)(EndianIStream &eis)
void nutationInLongitudeFromText(const std::string &s)
DifferenceTypeMod::DifferenceType polarOffsetsType
===&gt; Attribute polarOffsetsType
void nutationInLongitudeRateFromBin(EndianIStream &eis)
AngularRate getEarthRotationRate() const
===&gt; Attribute earthRotationRate
void setDelayModelFixedParametersId(Tag delayModelFixedParametersId)
Set delayModelFixedParametersId with the specified Tag.
void setTimeType(DifferenceTypeMod::DifferenceType timeType)
Set timeType with the specified DifferenceTypeMod::DifferenceType.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void nutationInObliquityFromText(const std::string &s)
bool compareNoAutoInc(ArrayTime time, double ut1_utc, double iat_utc, DifferenceTypeMod::DifferenceType timeType, Angle gstAtUt0, AngularRate earthRotationRate, std::vector< double > polarOffsets, DifferenceTypeMod::DifferenceType polarOffsetsType, Tag delayModelFixedParametersId)
Compare each mandatory attribute except the autoincrementable one of this DelayModelVariableParameter...
void nutationInLongitudeRateFromText(const std::string &s)
void timeTypeFromBin(EndianIStream &eis)
AngularRate getNutationInObliquityRate() const
Get nutationInObliquityRate, which is optional.
void nutationInObliquityRateFromBin(EndianIStream &eis)
bool isNutationInObliquityExists() const
===&gt; Attribute nutationInObliquity, which is optional
The DelayModelVariableParametersTable class is an Alma table.
bool compareRequiredValue(ArrayTime time, double ut1_utc, double iat_utc, DifferenceTypeMod::DifferenceType timeType, Angle gstAtUt0, AngularRate earthRotationRate, std::vector< double > polarOffsets, DifferenceTypeMod::DifferenceType polarOffsetsType, Tag delayModelFixedParametersId)
Compare each mandatory value (i.e.
void setPolarOffsets(std::vector< double > polarOffsets)
Set polarOffsets with the specified std::vector&lt;double &gt;.
void setTime(ArrayTime time)
Set time with the specified ArrayTime.
The Angle class implements a quantity of angle in radians.
Definition: Angle.h:53
DifferenceTypeMod::DifferenceType getPolarOffsetsType() const
===&gt; Attribute polarOffsetsType
void iat_utcFromText(const std::string &s)
asdmIDL::DelayModelVariableParametersRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void delayModelVariableParametersIdFromBin(EndianIStream &eis)
void setNutationInLongitudeRate(AngularRate nutationInLongitudeRate)
Set nutationInLongitudeRate with the specified AngularRate.
void timeFromText(const std::string &s)
The AngularRate class implements a quantity of AngularRate in radians per second. ...
Definition: AngularRate.h:53
void delayModelVariableParametersIdFromText(const std::string &s)
bool equalByRequiredValue(DelayModelVariableParametersRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void setNutationInLongitude(Angle nutationInLongitude)
Set nutationInLongitude with the specified Angle.
bool nutationInLongitudeExists
===&gt; Attribute nutationInLongitude, which is optional
double getIat_utc() const
===&gt; Attribute iat_utc
bool nutationInLongitudeRateExists
===&gt; Attribute nutationInLongitudeRate, which is optional
void gstAtUt0FromBin(EndianIStream &eis)
std::vector< double > polarOffsets
===&gt; Attribute polarOffsets
void setEarthRotationRate(AngularRate earthRotationRate)
Set earthRotationRate with the specified AngularRate.
void polarOffsetsFromText(const std::string &s)
void setNutationInObliquity(Angle nutationInObliquity)
Set nutationInObliquity with the specified Angle.
void setNutationInObliquityRate(AngularRate nutationInObliquityRate)
Set nutationInObliquityRate with the specified AngularRate.
void polarOffsetsFromBin(EndianIStream &eis)
The DelayModelVariableParametersRow class is a row of a DelayModelVariableParametersTable.
bool nutationInObliquityRateExists
===&gt; Attribute nutationInObliquityRate, which is optional
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
Definition: ArrayTime.h:89
DelayModelVariableParametersTable & table
The table to which this row belongs.
The DelayModelFixedParametersRow class is a row of a DelayModelFixedParametersTable.
DelayModelVariableParametersTable & getTable() const
Return the table to which this row belongs.
bool nutationInObliquityExists
===&gt; Attribute nutationInObliquity, which is optional
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
DelayModelVariableParametersRow(DelayModelVariableParametersTable &table)
Create a DelayModelVariableParametersRow.
*text deserialization material std::map< std::string, DelayModelVariableParametersAttributeFromText > fromTextMethods
void earthRotationRateFromBin(EndianIStream &eis)
void timeFromBin(EndianIStream &eis)
void clearNutationInObliquity()
Mark nutationInObliquity, which is an optional field, as non-existent.
ArrayTime getTime() const
===&gt; Attribute time
bool hasBeenAdded
Whether this row has been added to the table or not.
bool isNutationInObliquityRateExists() const
===&gt; Attribute nutationInObliquityRate, which is optional
bool isNutationInLongitudeRateExists() const
===&gt; Attribute nutationInLongitudeRate, which is optional
Angle getGstAtUt0() const
===&gt; Attribute gstAtUt0
void nutationInLongitudeFromBin(EndianIStream &eis)
void polarOffsetsTypeFromText(const std::string &s)
double getUt1_utc() const
===&gt; Attribute ut1_utc
void setGstAtUt0(Angle gstAtUt0)
Set gstAtUt0 with the specified Angle.
void earthRotationRateFromText(const std::string &s)
void timeTypeFromText(const std::string &s)
AngularRate getNutationInLongitudeRate() const
Get nutationInLongitudeRate, which is optional.
Links *binary deserialization material from an EndianIStream std::map< std::string, DelayModelVariableParametersAttributeFromBin > fromBinMethods
void iat_utcFromBin(EndianIStream &eis)
void delayModelFixedParametersIdFromText(const std::string &s)
void setPolarOffsetsType(DifferenceTypeMod::DifferenceType polarOffsetsType)
Set polarOffsetsType with the specified DifferenceTypeMod::DifferenceType.
Links *DelayModelFixedParametersRow * getDelayModelFixedParametersUsingDelayModelFixedParametersId()
delayModelFixedParametersId pointer to the row in the DelayModelFixedParameters table having DelayMod...
void nutationInObliquityFromBin(EndianIStream &eis)
Angle getNutationInLongitude() const
Get nutationInLongitude, which is optional.
void setDelayModelVariableParametersId(Tag delayModelVariableParametersId)
Set delayModelVariableParametersId with the specified Tag value.
DifferenceTypeMod::DifferenceType timeType
===&gt; Attribute timeType
void(DelayModelVariableParametersRow::* DelayModelVariableParametersAttributeFromText)(const std::string &s)
void delayModelFixedParametersIdFromBin(EndianIStream &eis)
bool isAdded() const
Has this row been added to its table ?
void clearNutationInObliquityRate()
Mark nutationInObliquityRate, which is an optional field, as non-existent.
virtual ~DelayModelVariableParametersRow()
friend class asdm::TableStreamReader&lt;DelayModelVariableParametersTable, DelayModelVariableParametersR...
void clearNutationInLongitudeRate()
Mark nutationInLongitudeRate, which is an optional field, as non-existent.
std::vector< double > getPolarOffsets() const
===&gt; Attribute polarOffsets
void setFromIDL(asdmIDL::DelayModelVariableParametersRowIDL x)
Fill the values of this row from the IDL struct DelayModelVariableParametersRowIDL.
Angle getNutationInObliquity() const
Get nutationInObliquity, which is optional.
AngularRate earthRotationRate
===&gt; Attribute earthRotationRate
std::string toXML() const
Return this row in the form of an XML string.