DelayModelVariableParametersRow.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef DelayModelVariableParametersRow_CLASS
00035 #define DelayModelVariableParametersRow_CLASS
00036
00037 #include <vector>
00038 #include <string>
00039 #include <set>
00040
00041 #ifndef WITHOUT_ACS
00042 #include <asdmIDLC.h>
00043 #endif
00044
00045
00046
00047
00048
00049
00050
00051 #include <ArrayTime.h>
00052
00053
00054
00055 #include <Angle.h>
00056
00057
00058
00059 #include <Tag.h>
00060
00061
00062
00063 #include <AngularRate.h>
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078 #include "CDifferenceType.h"
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088 #include "CDifferenceType.h"
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101 #include <ConversionException.h>
00102 #include <NoSuchRow.h>
00103 #include <IllegalAccessException.h>
00104
00105 #include <RowTransformer.h>
00106
00107
00108
00109
00110
00111
00112 namespace asdm {
00113
00114
00115
00116
00117
00118 class DelayModelFixedParametersRow;
00119
00120
00121 class DelayModelVariableParametersRow;
00122 typedef void (DelayModelVariableParametersRow::*DelayModelVariableParametersAttributeFromBin) (EndianIStream& eis);
00123 typedef void (DelayModelVariableParametersRow::*DelayModelVariableParametersAttributeFromText) (const string& s);
00124
00131 class DelayModelVariableParametersRow {
00132 friend class asdm::DelayModelVariableParametersTable;
00133 friend class asdm::RowTransformer<DelayModelVariableParametersRow>;
00134
00135
00136 public:
00137
00138 virtual ~DelayModelVariableParametersRow();
00139
00143 DelayModelVariableParametersTable &getTable() const;
00144
00149 bool isAdded() const;
00150
00152
00154
00155
00156
00157
00158
00159
00160
00161
00166 Tag getDelayModelVariableParametersId() const;
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00186 ArrayTime getTime() const;
00187
00188
00189
00190
00198 void setTime (ArrayTime time);
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00216 double getUt1_utc() const;
00217
00218
00219
00220
00228 void setUt1_utc (double ut1_utc);
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00246 double getIat_utc() const;
00247
00248
00249
00250
00258 void setIat_utc (double iat_utc);
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00276 DifferenceTypeMod::DifferenceType getTimeType() const;
00277
00278
00279
00280
00288 void setTimeType (DifferenceTypeMod::DifferenceType timeType);
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00306 Angle getGstAtUt0() const;
00307
00308
00309
00310
00318 void setGstAtUt0 (Angle gstAtUt0);
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00336 AngularRate getEarthRotationRate() const;
00337
00338
00339
00340
00348 void setEarthRotationRate (AngularRate earthRotationRate);
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00366 vector<double > getPolarOffsets() const;
00367
00368
00369
00370
00378 void setPolarOffsets (vector<double > polarOffsets);
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00396 DifferenceTypeMod::DifferenceType getPolarOffsetsType() const;
00397
00398
00399
00400
00408 void setPolarOffsetsType (DifferenceTypeMod::DifferenceType polarOffsetsType);
00409
00410
00411
00412
00413
00414
00415
00416
00417
00418
00419
00424 bool isNutationInLongitudeExists() const;
00425
00426
00427
00433 Angle getNutationInLongitude() const;
00434
00435
00436
00437
00444 void setNutationInLongitude (Angle nutationInLongitude);
00445
00446
00447
00448
00452 void clearNutationInLongitude ();
00453
00454
00455
00456
00457
00458
00459
00460
00465 bool isNutationInLongitudeRateExists() const;
00466
00467
00468
00474 AngularRate getNutationInLongitudeRate() const;
00475
00476
00477
00478
00485 void setNutationInLongitudeRate (AngularRate nutationInLongitudeRate);
00486
00487
00488
00489
00493 void clearNutationInLongitudeRate ();
00494
00495
00496
00497
00498
00499
00500
00501
00506 bool isNutationInObliquityExists() const;
00507
00508
00509
00515 Angle getNutationInObliquity() const;
00516
00517
00518
00519
00526 void setNutationInObliquity (Angle nutationInObliquity);
00527
00528
00529
00530
00534 void clearNutationInObliquity ();
00535
00536
00537
00538
00539
00540
00541
00542
00547 bool isNutationInObliquityRateExists() const;
00548
00549
00550
00556 AngularRate getNutationInObliquityRate() const;
00557
00558
00559
00560
00567 void setNutationInObliquityRate (AngularRate nutationInObliquityRate);
00568
00569
00570
00571
00575 void clearNutationInObliquityRate ();
00576
00577
00578
00580
00582
00583
00584
00585
00586
00587
00588
00589
00594 Tag getDelayModelFixedParametersId() const;
00595
00596
00597
00598
00606 void setDelayModelFixedParametersId (Tag delayModelFixedParametersId);
00607
00608
00609
00610
00611
00612
00614
00616
00617
00618
00619
00620
00627 DelayModelFixedParametersRow* getDelayModelFixedParametersUsingDelayModelFixedParametersId();
00628
00629
00630
00631
00632
00633
00634
00658 bool compareNoAutoInc(ArrayTime time, double ut1_utc, double iat_utc, DifferenceTypeMod::DifferenceType timeType, Angle gstAtUt0, AngularRate earthRotationRate, vector<double > polarOffsets, DifferenceTypeMod::DifferenceType polarOffsetsType, Tag delayModelFixedParametersId);
00659
00660
00661
00662
00686 bool compareRequiredValue(ArrayTime time, double ut1_utc, double iat_utc, DifferenceTypeMod::DifferenceType timeType, Angle gstAtUt0, AngularRate earthRotationRate, vector<double > polarOffsets, DifferenceTypeMod::DifferenceType polarOffsetsType, Tag delayModelFixedParametersId);
00687
00688
00697 bool equalByRequiredValue(DelayModelVariableParametersRow* x) ;
00698
00699 #ifndef WITHOUT_ACS
00700
00704 asdmIDL::DelayModelVariableParametersRowIDL *toIDL() const;
00705
00713 void toIDL(asdmIDL::DelayModelVariableParametersRowIDL& x) const;
00714 #endif
00715
00716 #ifndef WITHOUT_ACS
00717
00722 void setFromIDL (asdmIDL::DelayModelVariableParametersRowIDL x) ;
00723 #endif
00724
00729 std::string toXML() const;
00730
00737 void setFromXML (std::string rowDoc) ;
00738
00741
00743
00744 std::map<std::string, DelayModelVariableParametersAttributeFromBin> fromBinMethods;
00745 void delayModelVariableParametersIdFromBin( EndianIStream& eis);
00746 void timeFromBin( EndianIStream& eis);
00747 void ut1_utcFromBin( EndianIStream& eis);
00748 void iat_utcFromBin( EndianIStream& eis);
00749 void timeTypeFromBin( EndianIStream& eis);
00750 void gstAtUt0FromBin( EndianIStream& eis);
00751 void earthRotationRateFromBin( EndianIStream& eis);
00752 void polarOffsetsFromBin( EndianIStream& eis);
00753 void polarOffsetsTypeFromBin( EndianIStream& eis);
00754 void delayModelFixedParametersIdFromBin( EndianIStream& eis);
00755
00756 void nutationInLongitudeFromBin( EndianIStream& eis);
00757 void nutationInLongitudeRateFromBin( EndianIStream& eis);
00758 void nutationInObliquityFromBin( EndianIStream& eis);
00759 void nutationInObliquityRateFromBin( EndianIStream& eis);
00760
00761
00769 static DelayModelVariableParametersRow* fromBin(EndianIStream& eis, DelayModelVariableParametersTable& table, const std::vector<std::string>& attributesSeq);
00770
00777 void fromText(const std::string& attributeName, const std::string& t);
00779
00780 private:
00784 DelayModelVariableParametersTable &table;
00788 bool hasBeenAdded;
00789
00790
00791 void isAdded(bool added);
00792
00793
00802 DelayModelVariableParametersRow (DelayModelVariableParametersTable &table);
00803
00821 DelayModelVariableParametersRow (DelayModelVariableParametersTable &table, DelayModelVariableParametersRow &row);
00822
00824
00826
00827
00828
00829
00830
00831
00832 Tag delayModelVariableParametersId;
00833
00834
00835
00836
00846 void setDelayModelVariableParametersId (Tag delayModelVariableParametersId);
00847
00848
00849
00850
00851
00852
00853
00854
00855 ArrayTime time;
00856
00857
00858
00859
00860
00861
00862
00863
00864
00865
00866 double ut1_utc;
00867
00868
00869
00870
00871
00872
00873
00874
00875
00876
00877 double iat_utc;
00878
00879
00880
00881
00882
00883
00884
00885
00886
00887
00888 DifferenceTypeMod::DifferenceType timeType;
00889
00890
00891
00892
00893
00894
00895
00896
00897
00898
00899 Angle gstAtUt0;
00900
00901
00902
00903
00904
00905
00906
00907
00908
00909
00910 AngularRate earthRotationRate;
00911
00912
00913
00914
00915
00916
00917
00918
00919
00920
00921 vector<double > polarOffsets;
00922
00923
00924
00925
00926
00927
00928
00929
00930
00931
00932 DifferenceTypeMod::DifferenceType polarOffsetsType;
00933
00934
00935
00936
00937
00938
00939
00940
00941
00942 bool nutationInLongitudeExists;
00943
00944
00945 Angle nutationInLongitude;
00946
00947
00948
00949
00950
00951
00952
00953
00954
00955 bool nutationInLongitudeRateExists;
00956
00957
00958 AngularRate nutationInLongitudeRate;
00959
00960
00961
00962
00963
00964
00965
00966
00967
00968 bool nutationInObliquityExists;
00969
00970
00971 Angle nutationInObliquity;
00972
00973
00974
00975
00976
00977
00978
00979
00980
00981 bool nutationInObliquityRateExists;
00982
00983
00984 AngularRate nutationInObliquityRate;
00985
00986
00987
00988
00989
00991
00993
00994
00995
00996
00997
00998
00999 Tag delayModelFixedParametersId;
01000
01001
01002
01003
01004
01006
01008
01009
01010
01011
01012
01013
01014
01015
01016
01017
01019
01021
01022
01023
01024
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034
01035
01036
01037
01038
01039
01041
01043 std::map<std::string, DelayModelVariableParametersAttributeFromText> fromTextMethods;
01044
01045 void delayModelVariableParametersIdFromText (const string & s);
01046
01047
01048 void timeFromText (const string & s);
01049
01050
01051 void ut1_utcFromText (const string & s);
01052
01053
01054 void iat_utcFromText (const string & s);
01055
01056
01057 void timeTypeFromText (const string & s);
01058
01059
01060 void gstAtUt0FromText (const string & s);
01061
01062
01063 void earthRotationRateFromText (const string & s);
01064
01065
01066 void polarOffsetsFromText (const string & s);
01067
01068
01069 void polarOffsetsTypeFromText (const string & s);
01070
01071
01072 void delayModelFixedParametersIdFromText (const string & s);
01073
01074
01075
01076 void nutationInLongitudeFromText (const string & s);
01077
01078
01079 void nutationInLongitudeRateFromText (const string & s);
01080
01081
01082 void nutationInObliquityFromText (const string & s);
01083
01084
01085 void nutationInObliquityRateFromText (const string & s);
01086
01087
01088
01093 void toBin(EndianOSStream& eoss);
01094
01104 };
01105
01106 }
01107
01108 #endif