34 #ifndef CalAntennaSolutionsTable_CLASS
35 #define CalAntennaSolutionsTable_CLASS
118 #include <asdmIDLC.h>
131 class CalAntennaSolutionsRow;
321 static const std::vector<std::string>&
getKeyName();
338 unsigned int size()
const;
356 static std::string
name() ;
396 std::string
toXML() ;
405 asdmIDL::CalAntennaSolutionsTableIDL *
toIDL() ;
414 void toIDL(asdmIDL::CalAntennaSolutionsTableIDL& x)
const;
425 void fromIDL(asdmIDL::CalAntennaSolutionsTableIDL x) ;
484 CalAntennaSolutionsRow *
newRow(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId,
Tag spectralWindowId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numReceptor, std::string refAntennaName, std::vector<Angle > direction, std::vector<Frequency > frequencyRange,
Interval integrationTime, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
bool correctionValidity, std::vector<float > phaseAnt, std::vector<float > phaseAntRMS, std::vector<float > amplitudeAnt, std::vector<float > amplitudeAntRMS);
534 std::vector<CalAntennaSolutionsRow *>
get() ;
542 const std::vector<CalAntennaSolutionsRow *>&
get()
const ;
569 CalAntennaSolutionsRow*
getRowByKey(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId,
Tag spectralWindowId);
622 CalAntennaSolutionsRow*
lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId,
Tag spectralWindowId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numReceptor, std::string refAntennaName, std::vector<Angle > direction, std::vector<Frequency > frequencyRange,
Interval integrationTime, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
bool correctionValidity, std::vector<float > phaseAnt, std::vector<float > phaseAntRMS, std::vector<float > amplitudeAnt, std::vector<float > amplitudeAntRMS);
688 std::vector<CalAntennaSolutionsRow *>
row;
746 void toFile(std::string directory);
void checkPresenceInMemory()
static const ByteOrder * Machine_Endianity
The Interval class implements an interval of time in units of nanoseconds.
static std::string name()
Return the name of this table.
CalAntennaSolutionsTable(ASDM &container)
Create a CalAntennaSolutionsTable.
CalAntennaSolutionsRow * getRowByKey(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId, Tag spectralWindowId)
Returns a CalAntennaSolutionsRow* given a key.
unsigned int size() const
Return the number of rows in the table.
The CalAntennaSolutionsTable class is an Alma table.
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
A class to represent byte order information.
void append(CalAntennaSolutionsRow *x)
Brutally append an CalAntennaSolutionsRow x to the collection of rows already stored in this table...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The ASDM class is the container for all tables.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalAntennaSolutionsTable as those produced b...
CalAntennaSolutionsRow * checkAndAdd(CalAntennaSolutionsRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
bool loadInProgress
Load the table in memory if necessary.
virtual ~CalAntennaSolutionsTable()
std::string getName() const
Return the name of this table.
void fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
void setFromMIMEFile(const std::string &directory)
Private methods involved during the build of this table out of the content of file(s) containing an e...
void setFromMIME(const std::string &mimeMsg)
Extracts the binary part of a MIME message and deserialize its content to fill this with the result o...
std::string toMIME(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
std::string toXML()
Produces an XML representation conform to the schema defined for CalAntennaSolutions (CalAntennaSolut...
CalAntennaSolutionsRow * add(CalAntennaSolutionsRow *x)
====> Append a row to its table.
asdmIDL::CalAntennaSolutionsTableIDL * toIDL()
Conversion Methods.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void addWithoutCheckingUnique(CalAntennaSolutionsRow *x)
Brutally append an CalAntennaSolutionsRow x to the collection of rows already stored in this table...
CalAntennaSolutionsRow * lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId, Tag spectralWindowId, ArrayTime startValidTime, ArrayTime endValidTime, int numReceptor, std::string refAntennaName, std::vector< Angle > direction, std::vector< Frequency > frequencyRange, Interval integrationTime, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, bool correctionValidity, std::vector< float > phaseAnt, std::vector< float > phaseAntRMS, std::vector< float > amplitudeAnt, std::vector< float > amplitudeAntRMS)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void fromIDL(asdmIDL::CalAntennaSolutionsTableIDL x)
Populate this table from the content of a CalAntennaSolutionsTableIDL Corba structure.
std::vector< CalAntennaSolutionsRow * > privateRows
A data structure to store the pointers on the table's rows.
Entity getEntity() const
Return this table's Entity.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
The CalAntennaSolutionsRow class is a row of a CalAntennaSolutionsTable.
ASDM & getContainer() const
Return the container to which this table belongs.
A pure virtual class whose derived classes are expected to be functors whose behaviours will be to re...
The Representable interface is implemented by all tables and by the container.
const Double e
e and functions thereof:
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
CalAntennaSolutionsRow * newRow()
====> Row creation.
std::string getVersion() const
Return the version information about this table.
std::vector< CalAntennaSolutionsRow * > row
void setFromXMLFile(const std::string &directory)
void setEntity(Entity e)
Set this table's Entity.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.