34 #ifndef CalGainTable_CLASS
35 #define CalGainTable_CLASS
212 static const std::vector<std::string>&
getKeyName();
229 unsigned int size()
const;
247 static std::string
name() ;
287 std::string
toXML() ;
296 asdmIDL::CalGainTableIDL *
toIDL() ;
305 void toIDL(asdmIDL::CalGainTableIDL& x)
const;
316 void fromIDL(asdmIDL::CalGainTableIDL x) ;
357 CalGainRow *
newRow(
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
float gain,
bool gainValid,
float fit,
float fitWeight,
bool totalGainValid,
float totalFit,
float totalFitWeight);
407 std::vector<CalGainRow *>
get() ;
415 const std::vector<CalGainRow *>&
get()
const ;
467 CalGainRow*
lookup(
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
float gain,
bool gainValid,
float fit,
float fitWeight,
bool totalGainValid,
float totalFit,
float totalFitWeight);
533 std::vector<CalGainRow *>
row;
591 void toFile(std::string directory);
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
CalGainTable(ASDM &container)
Create a CalGainTable.
asdmIDL::CalGainTableIDL * toIDL()
Conversion Methods.
static const ByteOrder * Machine_Endianity
Entity getEntity() const
Return this table's Entity.
CalGainRow * lookup(Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, float gain, bool gainValid, float fit, float fitWeight, bool totalGainValid, float totalFit, float totalFitWeight)
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 > & getAttributesNames()
Return the names of the attributes of this table.
bool loadInProgress
Load the table in memory if necessary.
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.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
std::string getVersion() const
Return the version information about this table.
CalGainRow * newRow()
====> Row creation.
A class to represent byte order information.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The ASDM class is the container for all tables.
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
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...
CalGainRow * getRowByKey(Tag calDataId, Tag calReductionId)
Returns a CalGainRow* given a key.
void setFromXMLFile(const std::string &directory)
The CalGainTable class is an Alma table.
void fromIDL(asdmIDL::CalGainTableIDL x)
Populate this table from the content of a CalGainTableIDL Corba structure.
ASDM & getContainer() const
Return the container to which this table belongs.
CalGainRow * checkAndAdd(CalGainRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
std::vector< CalGainRow * > row
void append(CalGainRow *x)
Brutally append an CalGainRow x to the collection of rows already stored in this 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...
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void setEntity(Entity e)
Set 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...
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...
std::string toXML()
Produces an XML representation conform to the schema defined for CalGain (CalGainTable.xsd).
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalGainTable as those produced by the toFile...
std::vector< CalGainRow * > privateRows
A data structure to store the pointers on the table's rows.
void checkPresenceInMemory()
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.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
const Double e
e and functions thereof:
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The CalGainRow class is a row of a CalGainTable.
static std::string name()
Return the name of this table.
CalGainRow * add(CalGainRow *x)
====> Append a row to its table.
void addWithoutCheckingUnique(CalGainRow *x)
Brutally append an CalGainRow x to the collection of rows already stored in this table.
unsigned int size() const
Return the number of rows in the table.
std::string getName() const
Return the name of this table.
The Entity class is an identification of a persistant entity in the ALMA archive. ...