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
00205
void setTime (
ArrayTime time);
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00223 string
getMessage()
const;
00224
00225
00226
00227
00235
void setMessage (string message);
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00253 string
getPriority()
const;
00254
00255
00256
00257
00265
void setPriority (string priority);
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00283 string
getOrigin()
const;
00284
00285
00286
00287
00295
void setOrigin (string origin);
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00313 string
getObjectId()
const;
00314
00315
00316
00317
00325
void setObjectId (string objectId);
00326
00327
00328
00329
00330
00331
00332
00333
00334
00335
00336
00337
00338
00343 string
getApplication()
const;
00344
00345
00346
00347
00355
void setApplication (string application);
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00373 string
getCliCommand()
const;
00374
00375
00376
00377
00385
void setCliCommand (string cliCommand);
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00403 string
getAppParms()
const;
00404
00405
00406
00407
00415
void setAppParms (string appParms);
00416
00417
00418
00419
00420
00421
00423
00425
00426
00427
00428
00429
00430
00431
00432
00437
Tag getExecBlockId()
const;
00438
00439
00440
00441
00451
void setExecBlockId (
Tag execBlockId);
00452
00453
00454
00455
00456
00457
00459
00461
00462
00463
00464
00465
00472
ExecBlockRow*
getExecBlockUsingExecBlockId();
00473
00474
00475
00476
00477
00478
00479
00484
bool compareNoAutoInc(
Tag execBlockId,
ArrayTime time, string message, string priority, string origin, string objectId, string application, string cliCommand, string appParms);
00485
00486
00487
00488
00489
bool compareRequiredValue(string message, string priority, string origin, string objectId, string application, string cliCommand, string appParms);
00490
00491
00500
bool equalByRequiredValue(
HistoryRow* x) ;
00501
00502
private:
00506
HistoryTable &table;
00510
bool hasBeenAdded;
00511
00512
00513
void isAdded();
00514
00515
00524
HistoryRow (
HistoryTable &table);
00525
00543
HistoryRow (
HistoryTable &table,
HistoryRow &row);
00544
00546
00548
00549
00550
00551
00552
00553
00554
ArrayTime time;
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565 string message;
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00576 string priority;
00577
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587 string origin;
00588
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598 string objectId;
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00609 string application;
00610
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620 string cliCommand;
00621
00622
00623
00624
00625
00626
00627
00628
00629
00630
00631 string appParms;
00632
00633
00634
00635
00636
00638
00640
00641
00642
00643
00644
00645
00646
Tag execBlockId;
00647
00648
00649
00650
00651
00653
00655
00656
00657
00658
00659
00660
00661
00662
00663
00664 };
00665
00666 }
00667
00668
#endif