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
#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
00084
00085
00086
00087
00088
00089
00090
00091
00092
using asdm::Angle;
00093
using asdm::AngularRate;
00094
using asdm::ArrayTime;
00095
using asdm::Complex;
00096
using asdm::Entity;
00097
using asdm::EntityId;
00098
using asdm::EntityRef;
00099
using asdm::Flux;
00100
using asdm::Frequency;
00101
using asdm::Humidity;
00102
using asdm::Interval;
00103
using asdm::Length;
00104
using asdm::Pressure;
00105
using asdm::Speed;
00106
using asdm::Tag;
00107
using asdm::Temperature;
00108
using asdm::ConversionException;
00109
using asdm::NoSuchRow;
00110
using asdm::IllegalAccessException;
00111
00112
00113
00114
00115
00116
namespace asdm {
00117
00118
00119
00120
00121
00128 class SeeingRow {
00129
friend class asdm::SeeingTable;
00130
00131
public:
00132
00133
virtual ~
SeeingRow();
00134
00138
SeeingTable &
getTable()
const;
00139
00140
#ifndef WITHOUT_ACS
00141
00145 SeeingRowIDL *
toIDL()
const;
00146
#endif
00147
00148
#ifndef WITHOUT_ACS
00149
00153
void setFromIDL (SeeingRowIDL x)
throw(
ConversionException);
00154
#endif
00155
00160 string
toXML()
const;
00161
00167
void setFromXML (string rowDoc)
throw(
ConversionException);
00168
00170
00172
00173
00174
00175
00176
00177
00178
00179
00184
ArrayTimeInterval getTimeInterval()
const;
00185
00186
00187
00188
00198
void setTimeInterval (
ArrayTimeInterval timeInterval);
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00216
int getNumBaseLength()
const;
00217
00218
00219
00220
00228
void setNumBaseLength (
int numBaseLength);
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00246 vector<Length >
getBaseLength()
const;
00247
00248
00249
00250
00258
void setBaseLength (vector<Length > baseLength);
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00276 vector<Angle >
getPhaseRms()
const;
00277
00278
00279
00280
00288
void setPhaseRms (vector<Angle > phaseRms);
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00306
float getSeeing()
const;
00307
00308
00309
00310
00318
void setSeeing (
float seeing);
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00336
float getExponent()
const;
00337
00338
00339
00340
00348
void setExponent (
float exponent);
00349
00350
00351
00352
00353
00354
00356
00358
00360
00362
00363
00364
00365
00370
bool compareNoAutoInc(
ArrayTimeInterval timeInterval,
int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms,
float seeing,
float exponent);
00371
00372
00373
00374
00375
bool compareRequiredValue(
int numBaseLength, vector<Length > baseLength, vector<Angle > phaseRms,
float seeing,
float exponent);
00376
00377
00386
bool equalByRequiredValue(
SeeingRow* x) ;
00387
00388
private:
00392
SeeingTable &table;
00396
bool hasBeenAdded;
00397
00398
00399
void isAdded();
00400
00401
00410
SeeingRow (
SeeingTable &table);
00411
00429
SeeingRow (
SeeingTable &table,
SeeingRow &row);
00430
00432
00434
00435
00436
00437
00438
00439
00440
ArrayTimeInterval timeInterval;
00441
00442
00443
00444
00445
00446
00447
00448
00449
00450
00451
int numBaseLength;
00452
00453
00454
00455
00456
00457
00458
00459
00460
00461
00462 vector<Length > baseLength;
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473 vector<Angle > phaseRms;
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
float seeing;
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495
float exponent;
00496
00497
00498
00499
00500
00502
00504
00506
00508
00509
00510 };
00511
00512 }
00513
00514
#endif