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 StationRow_CLASS
00035 #define StationRow_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::StationRowIDL;
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 "CStationType.h"
00084 using namespace StationTypeMod;
00085
00086
00087
00088
00089
00090
00091 using asdm::Angle;
00092 using asdm::AngularRate;
00093 using asdm::ArrayTime;
00094 using asdm::Complex;
00095 using asdm::Entity;
00096 using asdm::EntityId;
00097 using asdm::EntityRef;
00098 using asdm::Flux;
00099 using asdm::Frequency;
00100 using asdm::Humidity;
00101 using asdm::Interval;
00102 using asdm::Length;
00103 using asdm::Pressure;
00104 using asdm::Speed;
00105 using asdm::Tag;
00106 using asdm::Temperature;
00107 using asdm::ConversionException;
00108 using asdm::NoSuchRow;
00109 using asdm::IllegalAccessException;
00110
00111
00112
00113
00114
00115 namespace asdm {
00116
00117
00118
00119
00120
00127 class StationRow {
00128 friend class asdm::StationTable;
00129
00130 public:
00131
00132 virtual ~StationRow();
00133
00137 StationTable &getTable() const;
00138
00139 #ifndef WITHOUT_ACS
00140
00144 StationRowIDL *toIDL() const;
00145 #endif
00146
00147 #ifndef WITHOUT_ACS
00148
00152 void setFromIDL (StationRowIDL x) throw(ConversionException);
00153 #endif
00154
00159 string toXML() const;
00160
00166 void setFromXML (string rowDoc) throw(ConversionException);
00167
00169
00171
00172
00173
00174
00175
00176
00177
00178
00183 string getName() const;
00184
00185
00186
00187
00193 void setName (string name);
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00211 vector<Length > getPosition() const;
00212
00213
00214
00215
00221 void setPosition (vector<Length > position);
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00239 StationType getType() const;
00240
00241
00242
00243
00249 void setType (StationType type);
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00267 Tag getStationId() const;
00268
00269
00270
00271
00272
00273
00274
00275
00277
00279
00281
00283
00284
00285
00286
00291 bool compareNoAutoInc(string name, vector<Length > position, StationType type);
00292
00293
00294
00295
00296 bool compareRequiredValue(string name, vector<Length > position, StationType type);
00297
00298
00307 bool equalByRequiredValue(StationRow* x) ;
00308
00309 private:
00313 StationTable &table;
00317 bool hasBeenAdded;
00318
00319
00320 void isAdded();
00321
00322
00331 StationRow (StationTable &table);
00332
00350 StationRow (StationTable &table, StationRow &row);
00351
00353
00355
00356
00357
00358
00359
00360
00361 string name;
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372 vector<Length > position;
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383 StationType type;
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394 Tag stationId;
00395
00396
00397
00398
00405 void setStationId (Tag stationId) throw(IllegalAccessException);
00406
00407
00408
00410
00412
00414
00416
00417
00418 };
00419
00420 }
00421
00422 #endif