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 SquareLawDetectorRow_CLASS
00035 #define SquareLawDetectorRow_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::SquareLawDetectorRowIDL;
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 #include "CDetectorBandType.h"
00084 using namespace DetectorBandTypeMod;
00085
00086
00087
00088
00089 using asdm::Angle;
00090 using asdm::AngularRate;
00091 using asdm::ArrayTime;
00092 using asdm::Complex;
00093 using asdm::Entity;
00094 using asdm::EntityId;
00095 using asdm::EntityRef;
00096 using asdm::Flux;
00097 using asdm::Frequency;
00098 using asdm::Humidity;
00099 using asdm::Interval;
00100 using asdm::Length;
00101 using asdm::Pressure;
00102 using asdm::Speed;
00103 using asdm::Tag;
00104 using asdm::Temperature;
00105 using asdm::ConversionException;
00106 using asdm::NoSuchRow;
00107 using asdm::IllegalAccessException;
00108
00109
00110
00111
00112
00113 namespace asdm {
00114
00115
00116
00117
00118
00125 class SquareLawDetectorRow {
00126 friend class asdm::SquareLawDetectorTable;
00127
00128 public:
00129
00130 virtual ~SquareLawDetectorRow();
00131
00135 SquareLawDetectorTable &getTable() const;
00136
00137 #ifndef WITHOUT_ACS
00138
00142 SquareLawDetectorRowIDL *toIDL() const;
00143 #endif
00144
00145 #ifndef WITHOUT_ACS
00146
00150 void setFromIDL (SquareLawDetectorRowIDL x) throw(ConversionException);
00151 #endif
00152
00157 string toXML() const;
00158
00164 void setFromXML (string rowDoc) throw(ConversionException);
00165
00167
00169
00170
00171
00172
00173
00174
00175
00176
00181 Tag getSquareLawDetectorId() const;
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00201 int getNumBand() const;
00202
00203
00204
00205
00211 void setNumBand (int numBand);
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00229 DetectorBandType getBandType() const;
00230
00231
00232
00233
00239 void setBandType (DetectorBandType bandType);
00240
00241
00242
00243
00244
00245
00247
00249
00251
00253
00254
00255
00256
00261 bool compareNoAutoInc(int numBand, DetectorBandType bandType);
00262
00263
00264
00265
00266 bool compareRequiredValue(int numBand, DetectorBandType bandType);
00267
00268
00277 bool equalByRequiredValue(SquareLawDetectorRow* x) ;
00278
00279 private:
00283 SquareLawDetectorTable &table;
00287 bool hasBeenAdded;
00288
00289
00290 void isAdded();
00291
00292
00301 SquareLawDetectorRow (SquareLawDetectorTable &table);
00302
00320 SquareLawDetectorRow (SquareLawDetectorTable &table, SquareLawDetectorRow &row);
00321
00323
00325
00326
00327
00328
00329
00330
00331 Tag squareLawDetectorId;
00332
00333
00334
00335
00342 void setSquareLawDetectorId (Tag squareLawDetectorId) throw(IllegalAccessException);
00343
00344
00345
00346
00347
00348
00349
00350
00351 int numBand;
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362 DetectorBandType bandType;
00363
00364
00365
00366
00367
00369
00371
00373
00375
00376
00377 };
00378
00379 }
00380
00381 #endif