34 #ifndef CalWVRTable_CLASS
35 #define CalWVRTable_CLASS
110 #include <asdmIDLC.h>
291 static const std::vector<std::string>&
getKeyName();
308 unsigned int size()
const;
326 static std::string
name() ;
366 std::string
toXML() ;
375 asdmIDL::CalWVRTableIDL *
toIDL() ;
384 void toIDL(asdmIDL::CalWVRTableIDL& x)
const;
395 void fromIDL(asdmIDL::CalWVRTableIDL x) ;
450 CalWVRRow *
newRow(std::string antennaName,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, WVRMethodMod::WVRMethod wvrMethod,
int numInputAntennas, std::vector<std::string > inputAntennaNames,
int numChan, std::vector<Frequency > chanFreq, std::vector<Frequency > chanWidth, std::vector<std::vector<Temperature > > refTemp,
int numPoly, std::vector<std::vector<std::vector<float > > > pathCoeff, std::vector<Frequency > polyFreqLimits, std::vector<float > wetPath, std::vector<float > dryPath,
Length water);
500 std::vector<CalWVRRow *>
get() ;
508 const std::vector<CalWVRRow *>&
get()
const ;
576 CalWVRRow*
lookup(std::string antennaName,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, WVRMethodMod::WVRMethod wvrMethod,
int numInputAntennas, std::vector<std::string > inputAntennaNames,
int numChan, std::vector<Frequency > chanFreq, std::vector<Frequency > chanWidth, std::vector<std::vector<Temperature > > refTemp,
int numPoly, std::vector<std::vector<std::vector<float > > > pathCoeff, std::vector<Frequency > polyFreqLimits, std::vector<float > wetPath, std::vector<float > dryPath,
Length water);
642 std::vector<CalWVRRow *>
row;
700 void toFile(std::string directory);
void fromIDL(asdmIDL::CalWVRTableIDL x)
Populate this table from the content of a CalWVRTableIDL Corba structure.
void setFromXMLFile(const std::string &directory)
static const ByteOrder * Machine_Endianity
CalWVRTable(ASDM &container)
Create a CalWVRTable.
std::vector< CalWVRRow * > privateRows
A data structure to store the pointers on the table's rows.
CalWVRRow * lookup(std::string antennaName, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, WVRMethodMod::WVRMethod wvrMethod, int numInputAntennas, std::vector< std::string > inputAntennaNames, int numChan, std::vector< Frequency > chanFreq, std::vector< Frequency > chanWidth, std::vector< std::vector< Temperature > > refTemp, int numPoly, std::vector< std::vector< std::vector< float > > > pathCoeff, std::vector< Frequency > polyFreqLimits, std::vector< float > wetPath, std::vector< float > dryPath, Length water)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the 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...
A class to represent byte order information.
unsigned int size() const
Return the number of rows in the table.
Entity getEntity() const
Return this table's Entity.
The ASDM class is the container for all tables.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void addWithoutCheckingUnique(CalWVRRow *x)
Brutally append an CalWVRRow x to the collection of rows already stored in this table.
std::string getVersion() const
Return the version information about this table.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
ASDM & getContainer() const
Return the container to which this table belongs.
bool loadInProgress
Load the table in memory if necessary.
static std::string name()
Return the name of this table.
The CalWVRRow class is a row of a CalWVRTable.
CalWVRRow * checkAndAdd(CalWVRRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The Length class implements a quantity of length in meters.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
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.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void checkPresenceInMemory()
std::vector< CalWVRRow * > row
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...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void append(CalWVRRow *x)
Brutally append an CalWVRRow x to the collection of rows already stored in this table.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
CalWVRRow * newRow()
====> Row creation.
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 toXML()
Produces an XML representation conform to the schema defined for CalWVR (CalWVRTable.xsd).
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:
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...
asdmIDL::CalWVRTableIDL * toIDL()
Conversion Methods.
CalWVRRow * add(CalWVRRow *x)
====> Append a row to its table.
The CalWVRTable class is an Alma table.
void setEntity(Entity e)
Set this table's Entity.
CalWVRRow * getRowByKey(std::string antennaName, Tag calDataId, Tag calReductionId)
Returns a CalWVRRow* given a key.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalWVRTable as those produced by the toFile ...
The Entity class is an identification of a persistant entity in the ALMA archive. ...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors