Go to the documentation of this file.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 DopplerRow_CLASS
00035 #define DopplerRow_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::DopplerRowIDL;
00047 #endif
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 #include "CDopplerReferenceCode.h"
00063 using namespace DopplerReferenceCodeMod;
00064
00065
00066
00067
00068 #include <ConversionException.h>
00069 #include <NoSuchRow.h>
00070 #include <IllegalAccessException.h>
00071
00072
00073
00074
00075
00076
00077 namespace asdm {
00078
00079
00080
00081
00082
00083 class SourceRow;
00084
00085
00086 class DopplerRow;
00087 typedef void (DopplerRow::*DopplerAttributeFromBin) (EndianISStream& eiss);
00088
00095 class DopplerRow {
00096 friend class asdm::DopplerTable;
00097
00098 public:
00099
00100 virtual ~DopplerRow();
00101
00105 DopplerTable &getTable() const;
00106
00111 bool isAdded() const;
00112
00114
00116
00117
00118
00119
00120
00121
00122
00123
00128 int getDopplerId() const;
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00148 int getTransitionIndex() const;
00149
00150
00151
00152
00160 void setTransitionIndex (int transitionIndex);
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00178 DopplerReferenceCodeMod::DopplerReferenceCode getVelDef() const;
00179
00180
00181
00182
00190 void setVelDef (DopplerReferenceCodeMod::DopplerReferenceCode velDef);
00191
00192
00193
00194
00195
00196
00198
00200
00201
00202
00203
00204
00205
00206
00207
00212 int getSourceId() const;
00213
00214
00215
00216
00226 void setSourceId (int sourceId);
00227
00228
00229
00230
00231
00232
00234
00236
00237
00238
00239
00240
00241
00242
00248 vector <SourceRow *> getSources();
00249
00250
00251
00252
00253
00254
00255
00256
00268 bool compareNoAutoInc(int sourceId, int transitionIndex, DopplerReferenceCodeMod::DopplerReferenceCode velDef);
00269
00270
00271
00272
00282 bool compareRequiredValue(int transitionIndex, DopplerReferenceCodeMod::DopplerReferenceCode velDef);
00283
00284
00293 bool equalByRequiredValue(DopplerRow* x) ;
00294
00295 #ifndef WITHOUT_ACS
00296
00300 DopplerRowIDL *toIDL() const;
00301 #endif
00302
00303 #ifndef WITHOUT_ACS
00304
00309 void setFromIDL (DopplerRowIDL x) ;
00310 #endif
00311
00316 string toXML() const;
00317
00324 void setFromXML (string rowDoc) ;
00325
00326 private:
00330 DopplerTable &table;
00334 bool hasBeenAdded;
00335
00336
00337 void isAdded(bool added);
00338
00339
00348 DopplerRow (DopplerTable &table);
00349
00367 DopplerRow (DopplerTable &table, DopplerRow &row);
00368
00370
00372
00373
00374
00375
00376
00377
00378 int dopplerId;
00379
00380
00381
00382
00392 void setDopplerId (int dopplerId);
00393
00394
00395
00396
00397
00398
00399
00400
00401 int transitionIndex;
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412 DopplerReferenceCodeMod::DopplerReferenceCode velDef;
00413
00414
00415
00416
00417
00419
00421
00422
00423
00424
00425
00426
00427 int sourceId;
00428
00429
00430
00431
00432
00434
00436
00437
00438
00439
00440
00441
00442
00443
00445
00447 map<string, DopplerAttributeFromBin> fromBinMethods;
00448 void dopplerIdFromBin( EndianISStream& eiss);
00449 void sourceIdFromBin( EndianISStream& eiss);
00450 void transitionIndexFromBin( EndianISStream& eiss);
00451 void velDefFromBin( EndianISStream& eiss);
00452
00453
00454
00459 void toBin(EndianOSStream& eoss);
00460
00468 static DopplerRow* fromBin(EndianISStream& eiss, DopplerTable& table, const vector<string>& attributesSeq);
00469
00470 };
00471
00472 }
00473
00474 #endif