34 #ifndef DelayModelTable_CLASS
35 #define DelayModelTable_CLASS
130 #include <asdmIDLC.h>
405 static const std::vector<std::string>&
getKeyName();
422 unsigned int size()
const;
440 static std::string
name() ;
480 std::string
toXML() ;
489 asdmIDL::DelayModelTableIDL *
toIDL() ;
498 void toIDL(asdmIDL::DelayModelTableIDL& x)
const;
509 void fromIDL(asdmIDL::DelayModelTableIDL x) ;
546 DelayModelRow *
newRow(
Tag antennaId,
Tag spectralWindowId,
ArrayTimeInterval timeInterval,
int numPoly, std::vector<double > phaseDelay, std::vector<double > phaseDelayRate, std::vector<double > groupDelay, std::vector<double > groupDelayRate,
Tag fieldId);
600 std::vector<DelayModelRow *>
get() ;
608 const std::vector<DelayModelRow *>&
get()
const ;
671 DelayModelRow*
lookup(
Tag antennaId,
Tag spectralWindowId,
ArrayTimeInterval timeInterval,
int numPoly, std::vector<double > phaseDelay, std::vector<double > phaseDelayRate, std::vector<double > groupDelay, std::vector<double > groupDelayRate,
Tag fieldId);
761 std::string
Key(
Tag antennaId,
Tag spectralWindowId) ;
830 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
void append(DelayModelRow *x)
Brutally append an DelayModelRow x to the collection of rows already stored in this table...
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a DelayModelTable as those produced by the toF...
void checkPresenceInMemory()
The DelayModelTable 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.
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
The DelayModelRow class is a row of a DelayModelTable.
std::string getVersion() const
Return the version information about this table.
DelayModelRow * lookup(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int numPoly, std::vector< double > phaseDelay, std::vector< double > phaseDelayRate, std::vector< double > groupDelay, std::vector< double > groupDelayRate, Tag fieldId)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
A class to represent byte order information.
void setFromXMLFile(const std::string &directory)
The ASDM class is the container for all tables.
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...
unsigned int size() const
Return the number of rows in the 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).
std::string Key(Tag antennaId, Tag spectralWindowId)
Returns a string built by concatenating the ascii representation of the parameters values suffixed wi...
DelayModelRow * checkAndAdd(DelayModelRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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...
Entity getEntity() const
Return this table's Entity.
DelayModelRow * add(DelayModelRow *x)
====> Append a row to its table.
std::map< std::string, TIME_ROWS > context
DelayModelRow * getRowByKey(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval)
Returns a DelayModelRow* given a key.
void setEntity(Entity e)
Set this table's Entity.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
void getByKeyNoAutoIncNoTime(std::vector< DelayModelRow * > &vin, std::vector< DelayModelRow * > &vout, Tag antennaId, Tag spectralWindowId)
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equ...
std::vector< DelayModelRow * > * getByContext(Tag antennaId, Tag spectralWindowId)
Returns all the rows sorted by ascending startTime for a given context.
std::vector< DelayModelRow * > privateRows
A data structure to store the pointers on the table's rows.
DelayModelRow * insertByStartTime(DelayModelRow *x, std::vector< DelayModelRow * > &row)
Insert a DelayModelRow* in a vector of DelayModelRow* so that it's ordered by ascending time...
std::string toXML()
Produces an XML representation conform to the schema defined for DelayModel (DelayModelTable.xsd).
virtual ~DelayModelTable()
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
asdmIDL::DelayModelTableIDL * toIDL()
Conversion Methods.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
DelayModelTable(ASDM &container)
Create a DelayModelTable.
void addWithoutCheckingUnique(DelayModelRow *x)
Brutally append an DelayModelRow x to the collection of rows already stored in this table...
ASDM & getContainer() const
Return the container to which this table belongs.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
std::string getName() const
Return the name of 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 fromIDL(asdmIDL::DelayModelTableIDL x)
Populate this table from the content of a DelayModelTableIDL Corba structure.
DelayModelRow * newRow()
====> Row creation.
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 fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
std::vector< DelayModelRow * > TIME_ROWS
static std::string name()
Return the name of this table.
bool loadInProgress
Load the table in memory if necessary.
The Entity class is an identification of a persistant entity in the ALMA archive. ...