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 HistoryRow_CLASS
00035 #define HistoryRow_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::HistoryRowIDL;
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 using asdm::Angle;
00097 using asdm::AngularRate;
00098 using asdm::ArrayTime;
00099 using asdm::Complex;
00100 using asdm::Entity;
00101 using asdm::EntityId;
00102 using asdm::EntityRef;
00103 using asdm::Flux;
00104 using asdm::Frequency;
00105 using asdm::Humidity;
00106 using asdm::Interval;
00107 using asdm::Length;
00108 using asdm::Pressure;
00109 using asdm::Speed;
00110 using asdm::Tag;
00111 using asdm::Temperature;
00112 using asdm::ConversionException;
00113 using asdm::NoSuchRow;
00114 using asdm::IllegalAccessException;
00115
00116
00117
00118
00119
00120 namespace asdm {
00121
00122
00123
00124
00125
00126 class ExecBlockRow;
00127
00128
00135 class HistoryRow {
00136 friend class asdm::HistoryTable;
00137
00138 public:
00139
00140 virtual ~HistoryRow();
00141
00145 HistoryTable &getTable() const;
00146
00147 #ifndef WITHOUT_ACS
00148
00152 HistoryRowIDL *toIDL() const;
00153 #endif
00154
00155 #ifndef WITHOUT_ACS
00156
00160 void setFromIDL (HistoryRowIDL x) throw(ConversionException);
00161 #endif
00162
00167 string toXML() const;
00168
00174 void setFromXML (string rowDoc) throw(ConversionException);
00175
00177
00179
00180
00181
00182
00183
00184
00185
00186
00191 ArrayTime getTime() const;
00192
00193
00194
00195
00202 void setTime (ArrayTime time) throw(IllegalAccessException);
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00220 string getMessage() const;
00221
00222
00223
00224
00230 void setMessage (string message);
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00248 string getPriority() const;
00249
00250
00251
00252
00258 void setPriority (string priority);
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00276 string getOrigin() const;
00277
00278
00279
00280
00286 void setOrigin (string origin);
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00304 string getObjectId() const;
00305
00306
00307
00308
00314 void setObjectId (string objectId);
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00332 string getApplication() const;
00333
00334
00335
00336
00342 void setApplication (string application);
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355
00360 string getCliCommand() const;
00361
00362
00363
00364
00370 void setCliCommand (string cliCommand);
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00388 string getAppParms() const;
00389
00390
00391
00392
00398 void setAppParms (string appParms);
00399
00400
00401
00402
00403
00404
00406
00408
00409
00410
00411
00412
00413
00414
00415
00420 Tag getExecBlockId() const;
00421
00422
00423
00424
00431 void setExecBlockId (Tag execBlockId) throw(IllegalAccessException);
00432
00433
00434
00435
00436
00437
00439
00441
00442
00443
00444
00445
00452 ExecBlockRow* getExecBlockUsingExecBlockId();
00453
00454
00455
00456
00457
00458
00459
00464 bool compareNoAutoInc(Tag execBlockId, ArrayTime time, string message, string priority, string origin, string objectId, string application, string cliCommand, string appParms);
00465
00466
00467
00468
00469 bool compareRequiredValue(string message, string priority, string origin, string objectId, string application, string cliCommand, string appParms);
00470
00471
00480 bool equalByRequiredValue(HistoryRow* x) ;
00481
00482 private:
00486 HistoryTable &table;
00490 bool hasBeenAdded;
00491
00492
00493 void isAdded();
00494
00495
00504 HistoryRow (HistoryTable &table);
00505
00523 HistoryRow (HistoryTable &table, HistoryRow &row);
00524
00526
00528
00529
00530
00531
00532
00533
00534 ArrayTime time;
00535
00536
00537
00538
00539
00540
00541
00542
00543
00544
00545 string message;
00546
00547
00548
00549
00550
00551
00552
00553
00554
00555
00556 string priority;
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567 string origin;
00568
00569
00570
00571
00572
00573
00574
00575
00576
00577
00578 string objectId;
00579
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589 string application;
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599
00600 string cliCommand;
00601
00602
00603
00604
00605
00606
00607
00608
00609
00610
00611 string appParms;
00612
00613
00614
00615
00616
00618
00620
00621
00622
00623
00624
00625
00626 Tag execBlockId;
00627
00628
00629
00630
00631
00633
00635
00636
00637
00638
00639
00640
00641
00642
00643
00644 };
00645
00646 }
00647
00648 #endif