34 #ifndef WVMCalTable_CLASS
35 #define WVMCalTable_CLASS
222 static const std::vector<std::string>&
getKeyName();
239 unsigned int size()
const;
257 static std::string
name() ;
297 std::string
toXML() ;
306 asdmIDL::WVMCalTableIDL *
toIDL() ;
315 void toIDL(asdmIDL::WVMCalTableIDL& x)
const;
326 void fromIDL(asdmIDL::WVMCalTableIDL x) ;
367 WVMCalRow *
newRow(
Tag antennaId,
Tag spectralWindowId,
ArrayTimeInterval timeInterval, WVRMethodMod::WVRMethod wvrMethod, std::vector<Frequency > polyFreqLimits,
int numInputAntenna,
int numChan,
int numPoly, std::vector<std::vector<std::vector<float > > > pathCoeff, std::vector<std::vector<Temperature > > refTemp, std::vector<Tag> inputAntennaId);
421 std::vector<WVMCalRow *>
get() ;
429 const std::vector<WVMCalRow *>&
get()
const ;
496 WVMCalRow*
lookup(
Tag antennaId,
Tag spectralWindowId,
ArrayTimeInterval timeInterval, WVRMethodMod::WVRMethod wvrMethod, std::vector<Frequency > polyFreqLimits,
int numInputAntenna,
int numChan,
int numPoly, std::vector<std::vector<std::vector<float > > > pathCoeff, std::vector<std::vector<Temperature > > refTemp, std::vector<Tag> inputAntennaId);
586 std::string
Key(
Tag antennaId,
Tag spectralWindowId) ;
655 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
Entity getEntity() const
Return this table's Entity.
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...
unsigned int size() const
Return the number of rows in the table.
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::vector< WVMCalRow * > * getByContext(Tag antennaId, Tag spectralWindowId)
Returns all the rows sorted by ascending startTime for a given context.
std::map< std::string, TIME_ROWS > context
std::string getName() const
Return the name of this table.
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
WVMCalTable(ASDM &container)
Create a WVMCalTable.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
A class to represent byte order information.
WVMCalRow * lookup(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, WVRMethodMod::WVRMethod wvrMethod, std::vector< Frequency > polyFreqLimits, int numInputAntenna, int numChan, int numPoly, std::vector< std::vector< std::vector< float > > > pathCoeff, std::vector< std::vector< Temperature > > refTemp, std::vector< Tag > inputAntennaId)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
void fromIDL(asdmIDL::WVMCalTableIDL x)
Populate this table from the content of a WVMCalTableIDL Corba structure.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
static std::string name()
Return the name of this table.
The ASDM class is the container for all tables.
std::vector< WVMCalRow * > privateRows
A data structure to store the pointers on the table's rows.
std::string Key(Tag antennaId, Tag spectralWindowId)
Returns a string built by concatenating the ascii representation of the parameters values suffixed wi...
void checkPresenceInMemory()
The WVMCalRow class is a row of a WVMCalTable.
ASDM & getContainer() const
Return the container to which this table belongs.
std::string toXML()
Produces an XML representation conform to the schema defined for WVMCal (WVMCalTable.xsd).
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a WVMCalTable as those produced by the toFile ...
The WVMCalTable class is an Alma table.
WVMCalRow * add(WVMCalRow *x)
====> Append a row to its table.
WVMCalRow * newRow()
====> Row creation.
bool loadInProgress
Load the table in memory if necessary.
void setFromXMLFile(const std::string &directory)
WVMCalRow * getRowByKey(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval)
Returns a WVMCalRow* given a key.
void addWithoutCheckingUnique(WVMCalRow *x)
Brutally append an WVMCalRow x to the collection of rows already stored in 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...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
WVMCalRow * insertByStartTime(WVMCalRow *x, std::vector< WVMCalRow * > &row)
Insert a WVMCalRow* in a vector of WVMCalRow* so that it's ordered by ascending time.
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 getVersion() const
Return the version information about this table.
void getByKeyNoAutoIncNoTime(std::vector< WVMCalRow * > &vin, std::vector< WVMCalRow * > &vout, Tag antennaId, Tag spectralWindowId)
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equ...
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.
void append(WVMCalRow *x)
Brutally append an WVMCalRow x to the collection of rows already stored in this table.
const Double e
e and functions thereof:
WVMCalRow * checkAndAdd(WVMCalRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
asdmIDL::WVMCalTableIDL * toIDL()
Conversion Methods.
std::vector< WVMCalRow * > TIME_ROWS
void setEntity(Entity e)
Set this table's Entity.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
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.