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 FieldRow_CLASS
00035
#define FieldRow_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::FieldRowIDL;
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
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
using asdm::Angle;
00101
using asdm::AngularRate;
00102
using asdm::ArrayTime;
00103
using asdm::Complex;
00104
using asdm::Entity;
00105
using asdm::EntityId;
00106
using asdm::EntityRef;
00107
using asdm::Flux;
00108
using asdm::Frequency;
00109
using asdm::Humidity;
00110
using asdm::Interval;
00111
using asdm::Length;
00112
using asdm::Pressure;
00113
using asdm::Speed;
00114
using asdm::Tag;
00115
using asdm::Temperature;
00116
using asdm::ConversionException;
00117
using asdm::NoSuchRow;
00118
using asdm::IllegalAccessException;
00119
00120
00121
00122
00123
00124
namespace asdm {
00125
00126
00127
00128
00129
00130
class FieldRow;
00131
00132
00133
class EphemerisRow;
00134
00135
00136
class SourceRow;
00137
00138
00145 class FieldRow {
00146
friend class asdm::FieldTable;
00147
00148
public:
00149
00150
virtual ~
FieldRow();
00151
00155
FieldTable &
getTable()
const;
00156
00157
#ifndef WITHOUT_ACS
00158
00162 FieldRowIDL *
toIDL()
const;
00163
#endif
00164
00165
#ifndef WITHOUT_ACS
00166
00170
void setFromIDL (FieldRowIDL x)
throw(
ConversionException);
00171
#endif
00172
00177 string
toXML()
const;
00178
00184
void setFromXML (string rowDoc)
throw(
ConversionException);
00185
00187
00189
00190
00191
00192
00193
00194
00195
00196
00201
Tag getFieldId()
const;
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00221 string
getFieldName()
const;
00222
00223
00224
00225
00233
void setFieldName (string fieldName);
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00251 string
getCode()
const;
00252
00253
00254
00255
00263
void setCode (string code);
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00281
ArrayTime getTime()
const;
00282
00283
00284
00285
00293
void setTime (
ArrayTime time);
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00311
int getNumPoly()
const;
00312
00313
00314
00315
00323
void setNumPoly (
int numPoly);
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333
00334
00335
00336
00341 vector<vector<Angle > >
getDelayDir()
const;
00342
00343
00344
00345
00353
void setDelayDir (vector<vector<Angle > > delayDir);
00354
00355
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00371 vector<vector<Angle > >
getPhaseDir()
const;
00372
00373
00374
00375
00383
void setPhaseDir (vector<vector<Angle > > phaseDir);
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00401 vector<vector<Angle > >
getReferenceDir()
const;
00402
00403
00404
00405
00413
void setReferenceDir (vector<vector<Angle > > referenceDir);
00414
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424
00429
bool isAssocNatureExists()
const;
00430
00431
00432
00438 string
getAssocNature()
const throw(
IllegalAccessException);
00439
00440
00441
00442
00449
void setAssocNature (string assocNature);
00450
00451
00452
00453
00457
void clearAssocNature ();
00458
00459
00460
00461
00462
00463
00464
00465
00466
00467
00472
bool getFlagRow()
const;
00473
00474
00475
00476
00484
void setFlagRow (
bool flagRow);
00485
00486
00487
00488
00489
00490
00492
00494
00495
00496
00497
00498
00499
00504
bool isAssocFieldIdExists()
const;
00505
00506
00507
00513 vector<Tag>
getAssocFieldId()
const throw(
IllegalAccessException);
00514
00515
00516
00517
00524
void setAssocFieldId (vector<Tag> assocFieldId);
00525
00526
00527
00528
00532
void clearAssocFieldId ();
00533
00534
00535
00536
00537
00538
00539
00540
00545
bool isEphemerisIdExists()
const;
00546
00547
00548
00554
Tag getEphemerisId()
const throw(
IllegalAccessException);
00555
00556
00557
00558
00565
void setEphemerisId (
Tag ephemerisId);
00566
00567
00568
00569
00573
void clearEphemerisId ();
00574
00575
00576
00577
00578
00579
00580
00581
00586
bool isSourceIdExists()
const;
00587
00588
00589
00595
int getSourceId()
const throw(
IllegalAccessException);
00596
00597
00598
00599
00606
void setSourceId (
int sourceId);
00607
00608
00609
00610
00614
void clearSourceId ();
00615
00616
00617
00619
00621
00622
00623
00630
void setAssocFieldId (
int i,
Tag assocFieldId) ;
00631
00632
00633
00634
00635
00640
void addAssocFieldId(
Tag id);
00641
00646
void addAssocFieldId(
const vector<Tag> &
id);
00647
00648
00654
const Tag getAssocFieldId(
int i);
00655
00663
FieldRow*
getField(
int i);
00664
00669 vector<FieldRow *>
getFields();
00670
00671
00672
00673
00674
00675
00676
00677
00686
EphemerisRow*
getEphemerisUsingEphemerisId();
00687
00688
00689
00690
00691
00692
00693
00694
00695
00696
00702 vector <SourceRow *>
getSources();
00703
00704
00705
00706
00707
00708
00709
00710
00715
bool compareNoAutoInc(string fieldName, string code,
ArrayTime time,
int numPoly, vector<vector<Angle > > delayDir, vector<vector<Angle > > phaseDir, vector<vector<Angle > > referenceDir,
bool flagRow);
00716
00717
00718
00719
00720
bool compareRequiredValue(string fieldName, string code,
ArrayTime time,
int numPoly, vector<vector<Angle > > delayDir, vector<vector<Angle > > phaseDir, vector<vector<Angle > > referenceDir,
bool flagRow);
00721
00722
00731
bool equalByRequiredValue(
FieldRow* x) ;
00732
00733
private:
00737
FieldTable &table;
00741
bool hasBeenAdded;
00742
00743
00744
void isAdded();
00745
00746
00755
FieldRow (
FieldTable &table);
00756
00774
FieldRow (
FieldTable &table,
FieldRow &row);
00775
00777
00779
00780
00781
00782
00783
00784
00785
Tag fieldId;
00786
00787
00788
00789
00799
void setFieldId (
Tag fieldId);
00800
00801
00802
00803
00804
00805
00806
00807
00808 string fieldName;
00809
00810
00811
00812
00813
00814
00815
00816
00817
00818
00819 string code;
00820
00821
00822
00823
00824
00825
00826
00827
00828
00829
00830
ArrayTime time;
00831
00832
00833
00834
00835
00836
00837
00838
00839
00840
00841
int numPoly;
00842
00843
00844
00845
00846
00847
00848
00849
00850
00851
00852 vector<vector<Angle > > delayDir;
00853
00854
00855
00856
00857
00858
00859
00860
00861
00862
00863 vector<vector<Angle > > phaseDir;
00864
00865
00866
00867
00868
00869
00870
00871
00872
00873
00874 vector<vector<Angle > > referenceDir;
00875
00876
00877
00878
00879
00880
00881
00882
00883
00884
bool assocNatureExists;
00885
00886
00887 string assocNature;
00888
00889
00890
00891
00892
00893
00894
00895
00896
00897
00898
bool flagRow;
00899
00900
00901
00902
00903
00905
00907
00908
00909
00910
00911
00912
bool assocFieldIdExists;
00913
00914
00915 vector<Tag> assocFieldId;
00916
00917
00918
00919
00920
00921
00922
00923
00924
00925
bool ephemerisIdExists;
00926
00927
00928
Tag ephemerisId;
00929
00930
00931
00932
00933
00934
00935
00936
00937
00938
bool sourceIdExists;
00939
00940
00941
int sourceId;
00942
00943
00944
00945
00946
00948
00950
00951
00952
00953
00954
00955
00956
00957
00958
00959
00960
00961
00962
00963
00964
00965
00966
00967
00968
00969
00970
00971 };
00972
00973 }
00974
00975
#endif