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 SeeingRow_CLASS
00035 #define SeeingRow_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::SeeingRowIDL;
00047 #endif
00048
00049
00050
00051
00052
00053
00054 #include <Angle.h>
00055 using asdm::Angle;
00056
00057 #include <Length.h>
00058 using asdm::Length;
00059
00060 #include <ArrayTimeInterval.h>
00061 using asdm::ArrayTimeInterval;
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 #include <ConversionException.h>
00081 #include <NoSuchRow.h>
00082 #include <IllegalAccessException.h>
00083
00084
00085
00086
00087
00088
00089 namespace asdm {
00090
00091
00092
00093
00094
00095 class SeeingRow;
00096 typedef void (SeeingRow::*SeeingAttributeFromBin) (EndianISStream& eiss);
00097
00104 class SeeingRow {
00105 friend class asdm::SeeingTable;
00106
00107 public:
00108
00109 virtual ~SeeingRow();
00110
00114 SeeingTable &getTable() const;
00115
00120 bool isAdded() const;
00121
00123
00125
00126
00127
00128
00129
00130
00131
00132
00137 ArrayTimeInterval getTimeInterval() const;
00138
00139
00140
00141
00151 void setTimeInterval (ArrayTimeInterval timeInterval);
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00169 int getNumBaseLength() const;
00170
00171
00172
00173
00181 void setNumBaseLength (int numBaseLength);
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00199 vector<Length > getBaseLength() const;
00200
00201
00202
00203
00211 void setBaseLength (vector<Length > baseLength);
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00229 vector<Angle > getPhaseRms() const;
00230
00231
00232
00233
00241 void setPhaseRms (vector<Angle > phaseRms);
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00259 float getSeeing() const;
00260
00261
00262
00263
00271 void setSeeing (float seeing);
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00289 float getExponent() const;
00290
00291
00292
00293
00301 void setExponent (float exponent);
00302
00303
00304
00305
00306
00307
00309
00311
00313
00315
00316
00317
00318
00336 bool compareNoAutoInc(ArrayTimeInterval timeInterval, int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms, float seeing, float exponent);
00337
00338
00339
00340
00356 bool compareRequiredValue(int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms, float seeing, float exponent);
00357
00358
00367 bool equalByRequiredValue(SeeingRow* x) ;
00368
00369 #ifndef WITHOUT_ACS
00370
00374 SeeingRowIDL *toIDL() const;
00375 #endif
00376
00377 #ifndef WITHOUT_ACS
00378
00383 void setFromIDL (SeeingRowIDL x) ;
00384 #endif
00385
00390 string toXML() const;
00391
00398 void setFromXML (string rowDoc) ;
00399
00400 private:
00404 SeeingTable &table;
00408 bool hasBeenAdded;
00409
00410
00411 void isAdded(bool added);
00412
00413
00422 SeeingRow (SeeingTable &table);
00423
00441 SeeingRow (SeeingTable &table, SeeingRow &row);
00442
00444
00446
00447
00448
00449
00450
00451
00452 ArrayTimeInterval timeInterval;
00453
00454
00455
00456
00457
00458
00459
00460
00461
00462
00463 int numBaseLength;
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474 vector<Length > baseLength;
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485 vector<Angle > phaseRms;
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495
00496 float seeing;
00497
00498
00499
00500
00501
00502
00503
00504
00505
00506
00507 float exponent;
00508
00509
00510
00511
00512
00514
00516
00518
00520
00521
00523
00525 map<string, SeeingAttributeFromBin> fromBinMethods;
00526 void timeIntervalFromBin( EndianISStream& eiss);
00527 void numBaseLengthFromBin( EndianISStream& eiss);
00528 void baseLengthFromBin( EndianISStream& eiss);
00529 void phaseRmsFromBin( EndianISStream& eiss);
00530 void seeingFromBin( EndianISStream& eiss);
00531 void exponentFromBin( EndianISStream& eiss);
00532
00533
00534
00539 void toBin(EndianOSStream& eoss);
00540
00548 static SeeingRow* fromBin(EndianISStream& eiss, SeeingTable& table, const vector<string>& attributesSeq);
00549
00550 };
00551
00552 }
00553
00554 #endif