34 #ifndef CalDelayTable_CLASS
35 #define CalDelayTable_CLASS
120 #include <asdmIDLC.h>
331 static const std::vector<std::string>&
getKeyName();
348 unsigned int size()
const;
366 static std::string
name() ;
406 std::string
toXML() ;
415 asdmIDL::CalDelayTableIDL *
toIDL() ;
424 void toIDL(asdmIDL::CalDelayTableIDL& x)
const;
435 void fromIDL(asdmIDL::CalDelayTableIDL x) ;
484 CalDelayRow *
newRow(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::string refAntennaName,
int numReceptor, std::vector<double > delayError, std::vector<double > delayOffset, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<double > reducedChiSquared, std::vector<double > appliedDelay);
534 std::vector<CalDelayRow *>
get() ;
542 const std::vector<CalDelayRow *>&
get()
const ;
567 CalDelayRow*
getRowByKey(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId);
610 CalDelayRow*
lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::string refAntennaName,
int numReceptor, std::vector<double > delayError, std::vector<double > delayOffset, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<double > reducedChiSquared, std::vector<double > appliedDelay);
676 std::vector<CalDelayRow *>
row;
734 void toFile(std::string directory);
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
unsigned int size() const
Return the number of rows in the table.
void append(CalDelayRow *x)
Brutally append an CalDelayRow x to the collection of rows already stored in this table...
std::string getVersion() const
Return the version information about this table.
void setEntity(Entity e)
Set this table's Entity.
void checkPresenceInMemory()
static const ByteOrder * Machine_Endianity
The CalDelayTable class is an Alma table.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalDelayTable as those produced by the toFil...
std::vector< CalDelayRow * > privateRows
A data structure to store the pointers on the table's rows.
CalDelayRow * newRow()
====> Row creation.
ASDM & getContainer() const
Return the container to which this table belongs.
void fromIDL(asdmIDL::CalDelayTableIDL x)
Populate this table from the content of a CalDelayTableIDL Corba structure.
The CalDelayRow class is a row of a CalDelayTable.
A class to represent byte order information.
CalDelayTable(ASDM &container)
Create a CalDelayTable.
std::string toXML()
Produces an XML representation conform to the schema defined for CalDelay (CalDelayTable.xsd).
The ASDM class is the container for all tables.
CalDelayRow * add(CalDelayRow *x)
====> Append a row to its 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).
bool loadInProgress
Load the table in memory if necessary.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
Entity getEntity() const
Return this table's Entity.
asdmIDL::CalDelayTableIDL * toIDL()
Conversion Methods.
static std::string name()
Return the name of this table.
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.
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...
CalDelayRow * checkAndAdd(CalDelayRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
CalDelayRow * lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, std::string refAntennaName, int numReceptor, std::vector< double > delayError, std::vector< double > delayOffset, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector< double > reducedChiSquared, std::vector< double > appliedDelay)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
std::vector< CalDelayRow * > row
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
void addWithoutCheckingUnique(CalDelayRow *x)
Brutally append an CalDelayRow x to the collection of rows already stored in this table...
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:
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 getName() const
Return the name of this table.
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 fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
CalDelayRow * getRowByKey(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId)
Returns a CalDelayRow* given a key.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void setFromXMLFile(const std::string &directory)
The Entity class is an identification of a persistant entity in the ALMA archive. ...