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 CalFocusTable_CLASS
00035
#define CalFocusTable_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
#include "CReceiverBand.h"
00087
using namespace ReceiverBandMod;
00088
00089
00090
00091
00092
00093
00094
00095
#include "CFocusMethod.h"
00096
using namespace FocusMethodMod;
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
#ifndef WITHOUT_ACS
00107
#include <asdmIDLC.h>
00108
using asdmIDL::CalFocusTableIDL;
00109
#endif
00110
00111
using asdm::Angle;
00112
using asdm::AngularRate;
00113
using asdm::ArrayTime;
00114
using asdm::Complex;
00115
using asdm::Entity;
00116
using asdm::EntityId;
00117
using asdm::EntityRef;
00118
using asdm::Flux;
00119
using asdm::Frequency;
00120
using asdm::Humidity;
00121
using asdm::Interval;
00122
using asdm::Length;
00123
using asdm::PartId;
00124
using asdm::Pressure;
00125
using asdm::Speed;
00126
using asdm::Tag;
00127
using asdm::Temperature;
00128
00129
using asdm::DuplicateKey;
00130
using asdm::ConversionException;
00131
using asdm::NoSuchRow;
00132
using asdm::DuplicateKey;
00133
00134
#include <Representable.h>
00135
00136
namespace asdm {
00137
00138
00139
00140
00141
class ASDM;
00142
class CalFocusRow;
00246 class CalFocusTable :
public Representable {
00247
friend class asdm::ASDM;
00248
00249
public:
00250
00251
00257
static vector<string>
getKeyName();
00258
00259
00260
virtual ~
CalFocusTable();
00261
00267
ASDM &
getContainer()
const;
00268
00274
unsigned int size() ;
00275
00281 string
getName()
const;
00282
00286
Entity getEntity()
const;
00287
00292
void setEntity(
Entity e);
00293
00294
00295
00296
00297
00302
CalFocusRow *
newRow();
00303
00308
CalFocusRow*
newRowEmpty();
00309
00310
00342
CalFocusRow *
newRow(
Tag calDataId,
Tag calReductionId, string antennaName, vector<Frequency > frequencyRange,
ArrayTime startValidTime,
ArrayTime endValidTime, ReceiverBandMod::ReceiverBand receiverBand, vector<Length > offset, vector<Length > error, FocusMethodMod::FocusMethod focusMethod, vector<Angle > pointingDirection, vector<bool > wasFixed,
Temperature ambientTemperature);
00343
00348
CalFocusRow *
newRowFull(
Tag calDataId,
Tag calReductionId, string antennaName, vector<Frequency > frequencyRange,
ArrayTime startValidTime,
ArrayTime endValidTime, ReceiverBandMod::ReceiverBand receiverBand, vector<Length > offset, vector<Length > error, FocusMethodMod::FocusMethod focusMethod, vector<Angle > pointingDirection, vector<bool > wasFixed,
Temperature ambientTemperature);
00349
00350
00363
CalFocusRow *
newRow(
CalFocusRow *row);
00364
00369
CalFocusRow *
newRowCopy(
CalFocusRow *row);
00370
00371
00372
00373
00374
00375
00388
CalFocusRow*
add(
CalFocusRow* x) ;
00389
00390
00391
00392
00393
00394
00395
00396
00397
00403 vector<CalFocusRow *>
get() ;
00404
00405
00406
00407
00408
00422
CalFocusRow*
getRowByKey(
Tag calDataId,
Tag calReductionId, string antennaName);
00423
00424
00425
00426
00427
00461
CalFocusRow*
lookup(
Tag calDataId,
Tag calReductionId, string antennaName, vector<Frequency > frequencyRange,
ArrayTime startValidTime,
ArrayTime endValidTime, ReceiverBandMod::ReceiverBand receiverBand, vector<Length > offset, vector<Length > error, FocusMethodMod::FocusMethod focusMethod, vector<Angle > pointingDirection, vector<bool > wasFixed,
Temperature ambientTemperature);
00462
00463
00464
#ifndef WITHOUT_ACS
00465
00471 CalFocusTableIDL *
toIDL() ;
00472
#endif
00473
00474
#ifndef WITHOUT_ACS
00475
00481
void fromIDL(CalFocusTableIDL x)
throw(
DuplicateKey,
ConversionException);
00482
#endif
00483
00487
char *
toFITS()
const throw(
ConversionException);
00488
00492
void fromFITS(
char *fits)
throw(
ConversionException);
00493
00497 string
toVOTable()
const throw(
ConversionException);
00498
00502
void fromVOTable(string vo)
throw(
ConversionException);
00503
00510 string
toXML()
throw(
ConversionException);
00511
00517
void fromXML(string xmlDoc)
throw(
ConversionException);
00518
00524 string
toMIME();
00525
00532
void setFromMIME(
const string & mimeMsg);
00533
00543
void toFile(string directory);
00544
00553
void setFromFile(
const string& directory);
00554
00555
private:
00556
00565
CalFocusTable (
ASDM & container);
00566
00567
ASDM & container;
00568
00569
bool archiveAsBin;
00570
bool fileAsBin ;
00571
00572
Entity entity;
00573
00574
00575
00579
static string tableName;
00580
00581
00585
static vector<string> key;
00586
00587
00593
CalFocusRow* checkAndAdd(
CalFocusRow* x)
throw (
DuplicateKey);
00594
00595
00596
00597
00598
00599
00600 vector<CalFocusRow * > privateRows;
00601
00602
00603
00604 vector<CalFocusRow *> row;
00605
00606
00607
void error()
throw(
ConversionException);
00608
00609 };
00610
00611 }
00612
00613
#endif