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 HolographyRow_CLASS
00035 #define HolographyRow_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::HolographyRowIDL;
00047 #endif
00048
00049
00050
00051
00052
00053
00054 #include <Tag.h>
00055 using asdm::Tag;
00056
00057 #include <Length.h>
00058 using asdm::Length;
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072 #include "CHolographyChannelType.h"
00073 using namespace HolographyChannelTypeMod;
00074
00075
00076
00077
00078 #include <ConversionException.h>
00079 #include <NoSuchRow.h>
00080 #include <IllegalAccessException.h>
00081
00082
00083
00084
00085
00086
00087 namespace asdm {
00088
00089
00090
00091
00092
00093 class HolographyRow;
00094 typedef void (HolographyRow::*HolographyAttributeFromBin) (EndianISStream& eiss);
00095
00102 class HolographyRow {
00103 friend class asdm::HolographyTable;
00104
00105 public:
00106
00107 virtual ~HolographyRow();
00108
00112 HolographyTable &getTable() const;
00113
00118 bool isAdded() const;
00119
00121
00123
00124
00125
00126
00127
00128
00129
00130
00135 Tag getHolographyId() const;
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00155 Length getDistance() const;
00156
00157
00158
00159
00167 void setDistance (Length distance);
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00185 Length getFocus() const;
00186
00187
00188
00189
00197 void setFocus (Length focus);
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00215 int getNumCorr() const;
00216
00217
00218
00219
00227 void setNumCorr (int numCorr);
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00245 vector<HolographyChannelTypeMod::HolographyChannelType > getType() const;
00246
00247
00248
00249
00257 void setType (vector<HolographyChannelTypeMod::HolographyChannelType > type);
00258
00259
00260
00261
00262
00263
00265
00267
00269
00271
00272
00273
00274
00288 bool compareNoAutoInc(Length distance, Length focus, int numCorr, vector<HolographyChannelTypeMod::HolographyChannelType > type);
00289
00290
00291
00292
00306 bool compareRequiredValue(Length distance, Length focus, int numCorr, vector<HolographyChannelTypeMod::HolographyChannelType > type);
00307
00308
00317 bool equalByRequiredValue(HolographyRow* x) ;
00318
00319 #ifndef WITHOUT_ACS
00320
00324 HolographyRowIDL *toIDL() const;
00325 #endif
00326
00327 #ifndef WITHOUT_ACS
00328
00333 void setFromIDL (HolographyRowIDL x) ;
00334 #endif
00335
00340 string toXML() const;
00341
00348 void setFromXML (string rowDoc) ;
00349
00350 private:
00354 HolographyTable &table;
00358 bool hasBeenAdded;
00359
00360
00361 void isAdded(bool added);
00362
00363
00372 HolographyRow (HolographyTable &table);
00373
00391 HolographyRow (HolographyTable &table, HolographyRow &row);
00392
00394
00396
00397
00398
00399
00400
00401
00402 Tag holographyId;
00403
00404
00405
00406
00416 void setHolographyId (Tag holographyId);
00417
00418
00419
00420
00421
00422
00423
00424
00425 Length distance;
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436 Length focus;
00437
00438
00439
00440
00441
00442
00443
00444
00445
00446
00447 int numCorr;
00448
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458 vector<HolographyChannelTypeMod::HolographyChannelType > type;
00459
00460
00461
00462
00463
00465
00467
00469
00471
00472
00474
00476 map<string, HolographyAttributeFromBin> fromBinMethods;
00477 void holographyIdFromBin( EndianISStream& eiss);
00478 void distanceFromBin( EndianISStream& eiss);
00479 void focusFromBin( EndianISStream& eiss);
00480 void numCorrFromBin( EndianISStream& eiss);
00481 void typeFromBin( EndianISStream& eiss);
00482
00483
00484
00489 void toBin(EndianOSStream& eoss);
00490
00498 static HolographyRow* fromBin(EndianISStream& eiss, HolographyTable& table, const vector<string>& attributesSeq);
00499
00500 };
00501
00502 }
00503
00504 #endif