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 CalSeeingTable_CLASS
00035
#define CalSeeingTable_CLASS
00036
00037
#include <string>
00038
#include <vector>
00039
#include <map>
00040
#include <set>
00041
using std::string;
00042
using std::vector;
00043
using std::map;
00044
00045
#include <Angle.h>
00046
#include <AngularRate.h>
00047
#include <ArrayTime.h>
00048
#include <ArrayTimeInterval.h>
00049
#include <Complex.h>
00050
#include <Entity.h>
00051
#include <EntityId.h>
00052
#include <EntityRef.h>
00053
#include <Flux.h>
00054
#include <Frequency.h>
00055
#include <Humidity.h>
00056
#include <Interval.h>
00057
#include <Length.h>
00058
#include <PartId.h>
00059
#include <Pressure.h>
00060
#include <Speed.h>
00061
#include <Tag.h>
00062
#include <Temperature.h>
00063
#include <ConversionException.h>
00064
#include <DuplicateKey.h>
00065
#include <UniquenessViolationException.h>
00066
#include <NoSuchRow.h>
00067
#include <DuplicateKey.h>
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
#ifndef WITHOUT_ACS
00101
#include <asdmIDLC.h>
00102
using asdmIDL::CalSeeingTableIDL;
00103
#endif
00104
00105
using asdm::Angle;
00106
using asdm::AngularRate;
00107
using asdm::ArrayTime;
00108
using asdm::Complex;
00109
using asdm::Entity;
00110
using asdm::EntityId;
00111
using asdm::EntityRef;
00112
using asdm::Flux;
00113
using asdm::Frequency;
00114
using asdm::Humidity;
00115
using asdm::Interval;
00116
using asdm::Length;
00117
using asdm::PartId;
00118
using asdm::Pressure;
00119
using asdm::Speed;
00120
using asdm::Tag;
00121
using asdm::Temperature;
00122
00123
using asdm::DuplicateKey;
00124
using asdm::ConversionException;
00125
using asdm::NoSuchRow;
00126
using asdm::DuplicateKey;
00127
00128
#include <Representable.h>
00129
00130
namespace asdm {
00131
00132
00133
00134
00135
class ASDM;
00136
class CalSeeingRow;
00241 class CalSeeingTable :
public Representable {
00242
friend class asdm::ASDM;
00243
00244
public:
00245
00246
00252
static vector<string>
getKeyName();
00253
00254
00255
virtual ~
CalSeeingTable();
00256
00262
ASDM &
getContainer()
const;
00263
00269
unsigned int size() ;
00270
00276 string
getName()
const;
00277
00281
Entity getEntity()
const;
00282
00287
void setEntity(
Entity e);
00288
00289
00290
00291
00292
00297
CalSeeingRow *
newRow();
00298
00303
CalSeeingRow*
newRowEmpty();
00304
00305
00335
CalSeeingRow *
newRow(
Tag calDataId,
Tag calReductionId,
int numBaseLength,
ArrayTime startValidTime,
ArrayTime endValidTime, vector<Frequency > frequencyRange, vector<Length > baseLength, vector<Angle > corrPhaseRms, vector<Angle > uncorrPhaseRms,
Angle seeing,
Frequency seeingFrequency,
Frequency seeingFreqBandwidth);
00336
00341
CalSeeingRow *
newRowFull(
Tag calDataId,
Tag calReductionId,
int numBaseLength,
ArrayTime startValidTime,
ArrayTime endValidTime, vector<Frequency > frequencyRange, vector<Length > baseLength, vector<Angle > corrPhaseRms, vector<Angle > uncorrPhaseRms,
Angle seeing,
Frequency seeingFrequency,
Frequency seeingFreqBandwidth);
00342
00343
00356
CalSeeingRow *
newRow(
CalSeeingRow *row);
00357
00362
CalSeeingRow *
newRowCopy(
CalSeeingRow *row);
00363
00364
00365
00366
00367
00368
00381
CalSeeingRow*
add(
CalSeeingRow* x) ;
00382
00383
00384
00385
00386
00387
00388
00389
00390
00396 vector<CalSeeingRow *>
get() ;
00397
00398
00399
00400
00401
00413
CalSeeingRow*
getRowByKey(
Tag calDataId,
Tag calReductionId);
00414
00415
00416
00417
00418
00450
CalSeeingRow*
lookup(
Tag calDataId,
Tag calReductionId,
int numBaseLength,
ArrayTime startValidTime,
ArrayTime endValidTime, vector<Frequency > frequencyRange, vector<Length > baseLength, vector<Angle > corrPhaseRms, vector<Angle > uncorrPhaseRms,
Angle seeing,
Frequency seeingFrequency,
Frequency seeingFreqBandwidth);
00451
00452
00453
#ifndef WITHOUT_ACS
00454
00460 CalSeeingTableIDL *
toIDL() ;
00461
#endif
00462
00463
#ifndef WITHOUT_ACS
00464
00470
void fromIDL(CalSeeingTableIDL x)
throw(
DuplicateKey,
ConversionException);
00471
#endif
00472
00476
char *
toFITS()
const throw(
ConversionException);
00477
00481
void fromFITS(
char *fits)
throw(
ConversionException);
00482
00486 string
toVOTable()
const throw(
ConversionException);
00487
00491
void fromVOTable(string vo)
throw(
ConversionException);
00492
00499 string
toXML()
throw(
ConversionException);
00500
00506
void fromXML(string xmlDoc)
throw(
ConversionException);
00507
00513 string
toMIME();
00514
00521
void setFromMIME(
const string & mimeMsg);
00522
00532
void toFile(string directory);
00533
00542
void setFromFile(
const string& directory);
00543
00544
private:
00545
00554
CalSeeingTable (
ASDM & container);
00555
00556
ASDM & container;
00557
00558
bool archiveAsBin;
00559
bool fileAsBin ;
00560
00561
Entity entity;
00562
00563
00564
00568
static string tableName;
00569
00570
00574
static vector<string> key;
00575
00576
00582
CalSeeingRow* checkAndAdd(
CalSeeingRow* x)
throw (
DuplicateKey);
00583
00584
00585
00586
00587
00588
00589 vector<CalSeeingRow * > privateRows;
00590
00591
00592
00593 vector<CalSeeingRow *> row;
00594
00595
00596
void error()
throw(
ConversionException);
00597
00598 };
00599
00600 }
00601
00602
#endif