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 MainRow_CLASS
00035
#define MainRow_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::MainRowIDL;
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
#include "CTimeSampling.h"
00086
using namespace TimeSamplingMod;
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
using asdm::Angle;
00100
using asdm::AngularRate;
00101
using asdm::ArrayTime;
00102
using asdm::Complex;
00103
using asdm::Entity;
00104
using asdm::EntityId;
00105
using asdm::EntityRef;
00106
using asdm::Flux;
00107
using asdm::Frequency;
00108
using asdm::Humidity;
00109
using asdm::Interval;
00110
using asdm::Length;
00111
using asdm::Pressure;
00112
using asdm::Speed;
00113
using asdm::Tag;
00114
using asdm::Temperature;
00115
using asdm::ConversionException;
00116
using asdm::NoSuchRow;
00117
using asdm::IllegalAccessException;
00118
00119
00120
00121
00122
00123
namespace asdm {
00124
00125
00126
00127
00128
00129
class ConfigDescriptionRow;
00130
00131
00132
class FieldRow;
00133
00134
00135
class StateRow;
00136
00137
00138
class ExecBlockRow;
00139
00140
00147 class MainRow {
00148
friend class asdm::MainTable;
00149
00150
public:
00151
00152
virtual ~
MainRow();
00153
00157
MainTable &
getTable()
const;
00158
00159
#ifndef WITHOUT_ACS
00160
00164 MainRowIDL *
toIDL()
const;
00165
#endif
00166
00167
#ifndef WITHOUT_ACS
00168
00172
void setFromIDL (MainRowIDL x)
throw(
ConversionException);
00173
#endif
00174
00179 string
toXML()
const;
00180
00186
void setFromXML (string rowDoc)
throw(
ConversionException);
00187
00189
00191
00192
00193
00194
00195
00196
00197
00198
00203
ArrayTime getTime()
const;
00204
00205
00206
00207
00217
void setTime (
ArrayTime time);
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00235
int getScanNumber()
const;
00236
00237
00238
00239
00247
void setScanNumber (
int scanNumber);
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00265
int getSubscanNumber()
const;
00266
00267
00268
00269
00277
void setSubscanNumber (
int subscanNumber);
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00295 TimeSamplingMod::TimeSampling
getTimeSampling()
const;
00296
00297
00298
00299
00307
void setTimeSampling (TimeSamplingMod::TimeSampling timeSampling);
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00325
int getNumIntegration()
const;
00326
00327
00328
00329
00337
void setNumIntegration (
int numIntegration);
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00355
EntityRef getDataOid()
const;
00356
00357
00358
00359
00367
void setDataOid (
EntityRef dataOid);
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00385
bool getFlagRow()
const;
00386
00387
00388
00389
00397
void setFlagRow (
bool flagRow);
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00415
Interval getInterval()
const;
00416
00417
00418
00419
00427
void setInterval (
Interval interval);
00428
00429
00430
00431
00432
00433
00435
00437
00438
00439
00440
00441
00442
00443
00444
00449
Tag getConfigDescriptionId()
const;
00450
00451
00452
00453
00463
void setConfigDescriptionId (
Tag configDescriptionId);
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00476
00481
Tag getExecBlockId()
const;
00482
00483
00484
00485
00493
void setExecBlockId (
Tag execBlockId);
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504
00505
00506
00511
Tag getFieldId()
const;
00512
00513
00514
00515
00525
void setFieldId (
Tag fieldId);
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00543 vector<Tag>
getStateId()
const;
00544
00545
00546
00547
00555
void setStateId (vector<Tag> stateId);
00556
00557
00558
00559
00560
00561
00563
00565
00566
00567
00568
00569
00576
ConfigDescriptionRow*
getConfigDescriptionUsingConfigDescriptionId();
00577
00578
00579
00580
00581
00582
00583
00584
00591
FieldRow*
getFieldUsingFieldId();
00592
00593
00594
00595
00596
00597
00605
void setStateId (
int i,
Tag stateId);
00606
00607
00608
00609
00610
00615
void addStateId(
Tag id);
00616
00621
void addStateId(
const vector<Tag> &
id);
00622
00623
00629
const Tag getStateId(
int i);
00630
00638
StateRow*
getState(
int i);
00639
00644 vector<StateRow *>
getStates();
00645
00646
00647
00648
00649
00650
00651
00652
00659
ExecBlockRow*
getExecBlockUsingExecBlockId();
00660
00661
00662
00663
00664
00665
00666
00671
bool compareNoAutoInc(
Tag configDescriptionId,
Tag fieldId,
ArrayTime time,
Tag execBlockId, vector<Tag> stateId,
int scanNumber,
int subscanNumber, TimeSamplingMod::TimeSampling timeSampling,
int numIntegration,
EntityRef dataOid,
bool flagRow,
Interval interval);
00672
00673
00674
00675
00676
bool compareRequiredValue(
Tag execBlockId, vector<Tag> stateId,
int scanNumber,
int subscanNumber, TimeSamplingMod::TimeSampling timeSampling,
int numIntegration,
EntityRef dataOid,
bool flagRow,
Interval interval);
00677
00678
00687
bool equalByRequiredValue(
MainRow* x) ;
00688
00689
private:
00693
MainTable &table;
00697
bool hasBeenAdded;
00698
00699
00700
void isAdded();
00701
00702
00711
MainRow (
MainTable &table);
00712
00730
MainRow (
MainTable &table,
MainRow &row);
00731
00733
00735
00736
00737
00738
00739
00740
00741
ArrayTime time;
00742
00743
00744
00745
00746
00747
00748
00749
00750
00751
00752
int scanNumber;
00753
00754
00755
00756
00757
00758
00759
00760
00761
00762
00763
int subscanNumber;
00764
00765
00766
00767
00768
00769
00770
00771
00772
00773
00774 TimeSamplingMod::TimeSampling timeSampling;
00775
00776
00777
00778
00779
00780
00781
00782
00783
00784
00785
int numIntegration;
00786
00787
00788
00789
00790
00791
00792
00793
00794
00795
00796
EntityRef dataOid;
00797
00798
00799
00800
00801
00802
00803
00804
00805
00806
00807
bool flagRow;
00808
00809
00810
00811
00812
00813
00814
00815
00816
00817
00818
Interval interval;
00819
00820
00821
00822
00823
00825
00827
00828
00829
00830
00831
00832
00833
Tag configDescriptionId;
00834
00835
00836
00837
00838
00839
00840
00841
00842
00843
00844
Tag execBlockId;
00845
00846
00847
00848
00849
00850
00851
00852
00853
00854
00855
Tag fieldId;
00856
00857
00858
00859
00860
00861
00862
00863
00864
00865
00866 vector<Tag> stateId;
00867
00868
00869
00870
00871
00873
00875
00876
00877
00878
00879
00880
00881
00882
00883
00884
00885
00886
00887
00888
00889
00890
00891
00892
00893
00894
00895
00896
00897
00898
00899
00900
00901
00902
00903
00904 };
00905
00906 }
00907
00908
#endif