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 CalDataRow_CLASS
00035 #define CalDataRow_CLASS
00036
00037 #include <vector>
00038 #include <string>
00039 #include <set>
00040 using std::vector;
00041 using std::string;
00042 using std::set;
00043
00044 #ifndef WITHOUT_ACS
00045 #include <asdmIDLC.h>
00046 using asdmIDL::CalDataRowIDL;
00047 #endif
00048
00049 #include <Angle.h>
00050 #include <AngularRate.h>
00051 #include <ArrayTime.h>
00052 #include <ArrayTimeInterval.h>
00053 #include <Complex.h>
00054 #include <Entity.h>
00055 #include <EntityId.h>
00056 #include <EntityRef.h>
00057 #include <Flux.h>
00058 #include <Frequency.h>
00059 #include <Humidity.h>
00060 #include <Interval.h>
00061 #include <Length.h>
00062 #include <Pressure.h>
00063 #include <Speed.h>
00064 #include <Tag.h>
00065 #include <Temperature.h>
00066 #include <ConversionException.h>
00067 #include <NoSuchRow.h>
00068 #include <IllegalAccessException.h>
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087 #include "CCalType.h"
00088 using namespace CalTypeMod;
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106 #include "CScanIntent.h"
00107 using namespace ScanIntentMod;
00108
00109
00110
00111
00112
00113 #include "CAssociatedCalNature.h"
00114 using namespace AssociatedCalNatureMod;
00115
00116
00117
00118 #include "CCalDataOrigin.h"
00119 using namespace CalDataOriginMod;
00120
00121
00122
00123
00124 using asdm::Angle;
00125 using asdm::AngularRate;
00126 using asdm::ArrayTime;
00127 using asdm::Complex;
00128 using asdm::Entity;
00129 using asdm::EntityId;
00130 using asdm::EntityRef;
00131 using asdm::Flux;
00132 using asdm::Frequency;
00133 using asdm::Humidity;
00134 using asdm::Interval;
00135 using asdm::Length;
00136 using asdm::Pressure;
00137 using asdm::Speed;
00138 using asdm::Tag;
00139 using asdm::Temperature;
00140 using asdm::ConversionException;
00141 using asdm::NoSuchRow;
00142 using asdm::IllegalAccessException;
00143
00144
00145
00146
00147
00148 namespace asdm {
00149
00150
00151
00152
00153
00160 class CalDataRow {
00161 friend class asdm::CalDataTable;
00162
00163 public:
00164
00165 virtual ~CalDataRow();
00166
00170 CalDataTable &getTable() const;
00171
00172 #ifndef WITHOUT_ACS
00173
00177 CalDataRowIDL *toIDL() const;
00178 #endif
00179
00180 #ifndef WITHOUT_ACS
00181
00185 void setFromIDL (CalDataRowIDL x) throw(ConversionException);
00186 #endif
00187
00192 string toXML() const;
00193
00199 void setFromXML (string rowDoc) throw(ConversionException);
00200
00202
00204
00205
00206
00207
00208
00209
00210
00211
00216 Tag getCalDataId() const;
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00236 int getNumScan() const;
00237
00238
00239
00240
00248 void setNumScan (int numScan) throw(IllegalAccessException);
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00264 bool isFrequencyGroupExists() const;
00265
00266
00267
00273 int getFrequencyGroup() const throw(IllegalAccessException);
00274
00275
00276
00277
00284 void setFrequencyGroup (int frequencyGroup);
00285
00286
00287
00288
00292 void clearFrequencyGroup ();
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00307 vector<int > getScanSet() const;
00308
00309
00310
00311
00319 void setScanSet (vector<int > scanSet) throw(IllegalAccessException);
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00337 CalTypeMod::CalType getCalType() const;
00338
00339
00340
00341
00349 void setCalType (CalTypeMod::CalType calType) throw(IllegalAccessException);
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00365 bool isFreqGroupNameExists() const;
00366
00367
00368
00374 string getFreqGroupName() const throw(IllegalAccessException);
00375
00376
00377
00378
00385 void setFreqGroupName (string freqGroupName);
00386
00387
00388
00389
00393 void clearFreqGroupName ();
00394
00395
00396
00397
00398
00399
00400
00401
00406 bool isFieldNameExists() const;
00407
00408
00409
00415 string getFieldName() const throw(IllegalAccessException);
00416
00417
00418
00419
00426 void setFieldName (string fieldName);
00427
00428
00429
00430
00434 void clearFieldName ();
00435
00436
00437
00438
00439
00440
00441
00442
00447 bool isFieldCodeExists() const;
00448
00449
00450
00456 vector<string > getFieldCode() const throw(IllegalAccessException);
00457
00458
00459
00460
00467 void setFieldCode (vector<string > fieldCode);
00468
00469
00470
00471
00475 void clearFieldCode ();
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00490 ArrayTime getStartTimeObserved() const;
00491
00492
00493
00494
00502 void setStartTimeObserved (ArrayTime startTimeObserved) throw(IllegalAccessException);
00503
00504
00505
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515
00520 ArrayTime getEndTimeObserved() const;
00521
00522
00523
00524
00532 void setEndTimeObserved (ArrayTime endTimeObserved) throw(IllegalAccessException);
00533
00534
00535
00536
00537
00538
00539
00540
00541
00542
00543
00548 bool isSourceNameExists() const;
00549
00550
00551
00557 vector<string > getSourceName() const throw(IllegalAccessException);
00558
00559
00560
00561
00568 void setSourceName (vector<string > sourceName);
00569
00570
00571
00572
00576 void clearSourceName ();
00577
00578
00579
00580
00581
00582
00583
00584
00589 bool isSourceCodeExists() const;
00590
00591
00592
00598 vector<string > getSourceCode() const throw(IllegalAccessException);
00599
00600
00601
00602
00609 void setSourceCode (vector<string > sourceCode);
00610
00611
00612
00613
00617 void clearSourceCode ();
00618
00619
00620
00621
00622
00623
00624
00625
00630 bool isScanIntentExists() const;
00631
00632
00633
00639 vector<ScanIntentMod::ScanIntent > getScanIntent() const throw(IllegalAccessException);
00640
00641
00642
00643
00650 void setScanIntent (vector<ScanIntentMod::ScanIntent > scanIntent);
00651
00652
00653
00654
00658 void clearScanIntent ();
00659
00660
00661
00662
00663
00664
00665
00666
00671 bool isAssocCalDataIdExists() const;
00672
00673
00674
00680 Tag getAssocCalDataId() const throw(IllegalAccessException);
00681
00682
00683
00684
00691 void setAssocCalDataId (Tag assocCalDataId);
00692
00693
00694
00695
00699 void clearAssocCalDataId ();
00700
00701
00702
00703
00704
00705
00706
00707
00712 bool isAssocCalNatureExists() const;
00713
00714
00715
00721 AssociatedCalNatureMod::AssociatedCalNature getAssocCalNature() const throw(IllegalAccessException);
00722
00723
00724
00725
00732 void setAssocCalNature (AssociatedCalNatureMod::AssociatedCalNature assocCalNature);
00733
00734
00735
00736
00740 void clearAssocCalNature ();
00741
00742
00743
00744
00745
00746
00747
00748
00749
00750
00755 CalDataOriginMod::CalDataOrigin getCalDataType() const;
00756
00757
00758
00759
00767 void setCalDataType (CalDataOriginMod::CalDataOrigin calDataType) throw(IllegalAccessException);
00768
00769
00770
00771
00772
00773
00775
00777
00779
00781
00782
00783
00784
00789 bool compareNoAutoInc(int numScan, vector<int > scanSet, CalTypeMod::CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOriginMod::CalDataOrigin calDataType);
00790
00791
00792
00793
00794 bool compareRequiredValue(int numScan, vector<int > scanSet, CalTypeMod::CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOriginMod::CalDataOrigin calDataType);
00795
00796
00805 bool equalByRequiredValue(CalDataRow* x) ;
00806
00807 private:
00811 CalDataTable &table;
00815 bool hasBeenAdded;
00816
00817
00818 void isAdded();
00819
00820
00829 CalDataRow (CalDataTable &table);
00830
00848 CalDataRow (CalDataTable &table, CalDataRow &row);
00849
00851
00853
00854
00855
00856
00857
00858
00859 Tag calDataId;
00860
00861
00862
00863
00871 void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00872
00873
00874
00875
00876
00877
00878
00879
00880 int numScan;
00881
00882
00883
00884
00885
00886
00887
00888
00889
00890 bool frequencyGroupExists;
00891
00892
00893 int frequencyGroup;
00894
00895
00896
00897
00898
00899
00900
00901
00902
00903
00904 vector<int > scanSet;
00905
00906
00907
00908
00909
00910
00911
00912
00913
00914
00915 CalTypeMod::CalType calType;
00916
00917
00918
00919
00920
00921
00922
00923
00924
00925 bool freqGroupNameExists;
00926
00927
00928 string freqGroupName;
00929
00930
00931
00932
00933
00934
00935
00936
00937
00938 bool fieldNameExists;
00939
00940
00941 string fieldName;
00942
00943
00944
00945
00946
00947
00948
00949
00950
00951 bool fieldCodeExists;
00952
00953
00954 vector<string > fieldCode;
00955
00956
00957
00958
00959
00960
00961
00962
00963
00964
00965 ArrayTime startTimeObserved;
00966
00967
00968
00969
00970
00971
00972
00973
00974
00975
00976 ArrayTime endTimeObserved;
00977
00978
00979
00980
00981
00982
00983
00984
00985
00986 bool sourceNameExists;
00987
00988
00989 vector<string > sourceName;
00990
00991
00992
00993
00994
00995
00996
00997
00998
00999 bool sourceCodeExists;
01000
01001
01002 vector<string > sourceCode;
01003
01004
01005
01006
01007
01008
01009
01010
01011
01012 bool scanIntentExists;
01013
01014
01015 vector<ScanIntentMod::ScanIntent > scanIntent;
01016
01017
01018
01019
01020
01021
01022
01023
01024
01025 bool assocCalDataIdExists;
01026
01027
01028 Tag assocCalDataId;
01029
01030
01031
01032
01033
01034
01035
01036
01037
01038 bool assocCalNatureExists;
01039
01040
01041 AssociatedCalNatureMod::AssociatedCalNature assocCalNature;
01042
01043
01044
01045
01046
01047
01048
01049
01050
01051
01052 CalDataOriginMod::CalDataOrigin calDataType;
01053
01054
01055
01056
01057
01059
01061
01063
01065
01066
01067 };
01068
01069 }
01070
01071 #endif