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 FlagCmdRow_CLASS
00035
#define FlagCmdRow_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::FlagCmdRowIDL;
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
using asdm::Angle;
00095
using asdm::AngularRate;
00096
using asdm::ArrayTime;
00097
using asdm::Complex;
00098
using asdm::Entity;
00099
using asdm::EntityId;
00100
using asdm::EntityRef;
00101
using asdm::Flux;
00102
using asdm::Frequency;
00103
using asdm::Humidity;
00104
using asdm::Interval;
00105
using asdm::Length;
00106
using asdm::Pressure;
00107
using asdm::Speed;
00108
using asdm::Tag;
00109
using asdm::Temperature;
00110
using asdm::ConversionException;
00111
using asdm::NoSuchRow;
00112
using asdm::IllegalAccessException;
00113
00114
00115
00116
00117
00118
namespace asdm {
00119
00120
00121
00122
00123
00130 class FlagCmdRow {
00131
friend class asdm::FlagCmdTable;
00132
00133
public:
00134
00135
virtual ~
FlagCmdRow();
00136
00140
FlagCmdTable &
getTable()
const;
00141
00142
#ifndef WITHOUT_ACS
00143
00147 FlagCmdRowIDL *
toIDL()
const;
00148
#endif
00149
00150
#ifndef WITHOUT_ACS
00151
00155
void setFromIDL (FlagCmdRowIDL x)
throw(
ConversionException);
00156
#endif
00157
00162 string
toXML()
const;
00163
00169
void setFromXML (string rowDoc)
throw(
ConversionException);
00170
00172
00174
00175
00176
00177
00178
00179
00180
00181
00186
ArrayTimeInterval getTimeInterval()
const;
00187
00188
00189
00190
00200
void setTimeInterval (
ArrayTimeInterval timeInterval);
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00218 string
getType()
const;
00219
00220
00221
00222
00230
void setType (string type);
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00248 string
getReason()
const;
00249
00250
00251
00252
00260
void setReason (string reason);
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00278
int getLevel()
const;
00279
00280
00281
00282
00290
void setLevel (
int level);
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00308
int getSeverity()
const;
00309
00310
00311
00312
00320
void setSeverity (
int severity);
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333
00338
bool getApplied()
const;
00339
00340
00341
00342
00350
void setApplied (
bool applied);
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362
00363
00368 string
getCommand()
const;
00369
00370
00371
00372
00380
void setCommand (string command);
00381
00382
00383
00384
00385
00386
00388
00390
00392
00394
00395
00396
00397
00402
bool compareNoAutoInc(
ArrayTimeInterval timeInterval, string type, string reason,
int level,
int severity,
bool applied, string command);
00403
00404
00405
00406
00407
bool compareRequiredValue(string type, string reason,
int level,
int severity,
bool applied, string command);
00408
00409
00418
bool equalByRequiredValue(
FlagCmdRow* x) ;
00419
00420
private:
00424
FlagCmdTable &table;
00428
bool hasBeenAdded;
00429
00430
00431
void isAdded();
00432
00433
00442
FlagCmdRow (
FlagCmdTable &table);
00443
00461
FlagCmdRow (
FlagCmdTable &table,
FlagCmdRow &row);
00462
00464
00466
00467
00468
00469
00470
00471
00472
ArrayTimeInterval timeInterval;
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483 string type;
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494 string reason;
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504
00505
int level;
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515
00516
int severity;
00517
00518
00519
00520
00521
00522
00523
00524
00525
00526
00527
bool applied;
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538 string command;
00539
00540
00541
00542
00543
00545
00547
00549
00551
00552
00553 };
00554
00555 }
00556
00557
#endif