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
00246 void setNumScan (int numScan);
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00262 bool isFrequencyGroupExists() const;
00263
00264
00265
00271 int getFrequencyGroup() const throw(IllegalAccessException);
00272
00273
00274
00275
00281 void setFrequencyGroup (int frequencyGroup);
00282
00283
00284
00285
00289 void clearFrequencyGroup ();
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00304 vector<int > getScanSet() const;
00305
00306
00307
00308
00314 void setScanSet (vector<int > scanSet);
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00332 CalType getCalType() const;
00333
00334
00335
00336
00342 void setCalType (CalType calType);
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00358 bool isFreqGroupNameExists() const;
00359
00360
00361
00367 string getFreqGroupName() const throw(IllegalAccessException);
00368
00369
00370
00371
00377 void setFreqGroupName (string freqGroupName);
00378
00379
00380
00381
00385 void clearFreqGroupName ();
00386
00387
00388
00389
00390
00391
00392
00393
00398 bool isFieldNameExists() const;
00399
00400
00401
00407 string getFieldName() const throw(IllegalAccessException);
00408
00409
00410
00411
00417 void setFieldName (string fieldName);
00418
00419
00420
00421
00425 void clearFieldName ();
00426
00427
00428
00429
00430
00431
00432
00433
00438 bool isFieldCodeExists() const;
00439
00440
00441
00447 vector<string > getFieldCode() const throw(IllegalAccessException);
00448
00449
00450
00451
00457 void setFieldCode (vector<string > fieldCode);
00458
00459
00460
00461
00465 void clearFieldCode ();
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00480 ArrayTime getStartTimeObserved() const;
00481
00482
00483
00484
00490 void setStartTimeObserved (ArrayTime startTimeObserved);
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00508 ArrayTime getEndTimeObserved() const;
00509
00510
00511
00512
00518 void setEndTimeObserved (ArrayTime endTimeObserved);
00519
00520
00521
00522
00523
00524
00525
00526
00527
00528
00529
00534 bool isSourceNameExists() const;
00535
00536
00537
00543 vector<string > getSourceName() const throw(IllegalAccessException);
00544
00545
00546
00547
00553 void setSourceName (vector<string > sourceName);
00554
00555
00556
00557
00561 void clearSourceName ();
00562
00563
00564
00565
00566
00567
00568
00569
00574 bool isSourceCodeExists() const;
00575
00576
00577
00583 vector<string > getSourceCode() const throw(IllegalAccessException);
00584
00585
00586
00587
00593 void setSourceCode (vector<string > sourceCode);
00594
00595
00596
00597
00601 void clearSourceCode ();
00602
00603
00604
00605
00606
00607
00608
00609
00614 bool isScanIntentExists() const;
00615
00616
00617
00623 vector<ScanIntent > getScanIntent() const throw(IllegalAccessException);
00624
00625
00626
00627
00633 void setScanIntent (vector<ScanIntent > scanIntent);
00634
00635
00636
00637
00641 void clearScanIntent ();
00642
00643
00644
00645
00646
00647
00648
00649
00654 bool isAssocCalDataIdExists() const;
00655
00656
00657
00663 Tag getAssocCalDataId() const throw(IllegalAccessException);
00664
00665
00666
00667
00673 void setAssocCalDataId (Tag assocCalDataId);
00674
00675
00676
00677
00681 void clearAssocCalDataId ();
00682
00683
00684
00685
00686
00687
00688
00689
00694 bool isAssocCalNatureExists() const;
00695
00696
00697
00703 AssociatedCalNature getAssocCalNature() const throw(IllegalAccessException);
00704
00705
00706
00707
00713 void setAssocCalNature (AssociatedCalNature assocCalNature);
00714
00715
00716
00717
00721 void clearAssocCalNature ();
00722
00723
00724
00725
00726
00727
00728
00729
00730
00731
00736 CalDataOrigin getCalDataType() const;
00737
00738
00739
00740
00746 void setCalDataType (CalDataOrigin calDataType);
00747
00748
00749
00750
00751
00752
00754
00756
00758
00760
00761
00762
00763
00768 bool compareNoAutoInc(int numScan, vector<int > scanSet, CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOrigin calDataType);
00769
00770
00771
00772
00773 bool compareRequiredValue(int numScan, vector<int > scanSet, CalType calType, ArrayTime startTimeObserved, ArrayTime endTimeObserved, CalDataOrigin calDataType);
00774
00775
00784 bool equalByRequiredValue(CalDataRow* x) ;
00785
00786 private:
00790 CalDataTable &table;
00794 bool hasBeenAdded;
00795
00796
00797 void isAdded();
00798
00799
00808 CalDataRow (CalDataTable &table);
00809
00827 CalDataRow (CalDataTable &table, CalDataRow &row);
00828
00830
00832
00833
00834
00835
00836
00837
00838 Tag calDataId;
00839
00840
00841
00842
00849 void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00850
00851
00852
00853
00854
00855
00856
00857
00858 int numScan;
00859
00860
00861
00862
00863
00864
00865
00866
00867
00868 bool frequencyGroupExists;
00869
00870
00871 int frequencyGroup;
00872
00873
00874
00875
00876
00877
00878
00879
00880
00881
00882 vector<int > scanSet;
00883
00884
00885
00886
00887
00888
00889
00890
00891
00892
00893 CalType calType;
00894
00895
00896
00897
00898
00899
00900
00901
00902
00903 bool freqGroupNameExists;
00904
00905
00906 string freqGroupName;
00907
00908
00909
00910
00911
00912
00913
00914
00915
00916 bool fieldNameExists;
00917
00918
00919 string fieldName;
00920
00921
00922
00923
00924
00925
00926
00927
00928
00929 bool fieldCodeExists;
00930
00931
00932 vector<string > fieldCode;
00933
00934
00935
00936
00937
00938
00939
00940
00941
00942
00943 ArrayTime startTimeObserved;
00944
00945
00946
00947
00948
00949
00950
00951
00952
00953
00954 ArrayTime endTimeObserved;
00955
00956
00957
00958
00959
00960
00961
00962
00963
00964 bool sourceNameExists;
00965
00966
00967 vector<string > sourceName;
00968
00969
00970
00971
00972
00973
00974
00975
00976
00977 bool sourceCodeExists;
00978
00979
00980 vector<string > sourceCode;
00981
00982
00983
00984
00985
00986
00987
00988
00989
00990 bool scanIntentExists;
00991
00992
00993 vector<ScanIntent > scanIntent;
00994
00995
00996
00997
00998
00999
01000
01001
01002
01003 bool assocCalDataIdExists;
01004
01005
01006 Tag assocCalDataId;
01007
01008
01009
01010
01011
01012
01013
01014
01015
01016 bool assocCalNatureExists;
01017
01018
01019 AssociatedCalNature assocCalNature;
01020
01021
01022
01023
01024
01025
01026
01027
01028
01029
01030 CalDataOrigin calDataType;
01031
01032
01033
01034
01035
01037
01039
01041
01043
01044
01045 };
01046
01047 }
01048
01049 #endif