34 #ifndef CalReductionTable_CLASS
35 #define CalReductionTable_CLASS
101 class CalReductionRow;
216 static const std::vector<std::string>&
getKeyName();
233 unsigned int size()
const;
251 static std::string
name() ;
291 std::string
toXML() ;
300 asdmIDL::CalReductionTableIDL *
toIDL() ;
309 void toIDL(asdmIDL::CalReductionTableIDL& x)
const;
320 void fromIDL(asdmIDL::CalReductionTableIDL x) ;
359 CalReductionRow *
newRow(
int numApplied, std::vector<std::string > appliedCalibrations,
int numParam, std::vector<std::string > paramSet,
int numInvalidConditions, std::vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions,
ArrayTime timeReduced, std::string messages, std::string software, std::string softwareVersion);
406 std::vector<CalReductionRow *>
get() ;
414 const std::vector<CalReductionRow *>&
get()
const ;
462 CalReductionRow*
lookup(
int numApplied, std::vector<std::string > appliedCalibrations,
int numParam, std::vector<std::string > paramSet,
int numInvalidConditions, std::vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions,
ArrayTime timeReduced, std::string messages, std::string software, std::string softwareVersion);
534 std::vector<CalReductionRow *>
row;
592 void toFile(std::string directory);
ASDM & getContainer() const
Return the container to which this table belongs.
static const ByteOrder * Machine_Endianity
void checkPresenceInMemory()
virtual ~CalReductionTable()
CalReductionRow * getRowByKey(Tag calReductionId)
Returns a CalReductionRow* given a key.
bool loadInProgress
Load the table in memory if necessary.
void addWithoutCheckingUnique(CalReductionRow *x)
Brutally append an CalReductionRow x to the collection of rows already stored in this table...
CalReductionRow * checkAndAdd(CalReductionRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
std::string getVersion() const
Return the version information about this table.
A class to represent byte order information.
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 setFromXMLFile(const std::string &directory)
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
The ASDM class is the container for all tables.
void autoIncrement(std::string key, CalReductionRow *x)
void fromIDL(asdmIDL::CalReductionTableIDL x)
Populate this table from the content of a CalReductionTableIDL Corba structure.
std::vector< CalReductionRow * > privateRows
A data structure to store the pointers on the table's rows.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
unsigned int size() const
Return the number of rows in the table.
The CalReductionTable class is an Alma table.
void setEntity(Entity e)
Set this table's Entity.
std::string toXML()
Produces an XML representation conform to the schema defined for CalReduction (CalReductionTable.xsd).
std::vector< CalReductionRow * > row
asdmIDL::CalReductionTableIDL * toIDL()
Conversion Methods.
CalReductionTable(ASDM &container)
Create a CalReductionTable.
The CalReductionRow class is a row of a CalReductionTable.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void append(CalReductionRow *x)
Brutally append an CalReductionRow x to the collection of rows already stored in this table...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
static std::string name()
Return the name of this table.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
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...
Entity getEntity() const
Return this table's Entity.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
CalReductionRow * newRow()
====> Row creation.
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 setFromMIMEFile(const std::string &directory)
Private methods involved during the build of this table out of the content of file(s) containing an e...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
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...
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
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 > & getAttributesNames()
Return the names of the attributes of this table.
CalReductionRow * lookup(int numApplied, std::vector< std::string > appliedCalibrations, int numParam, std::vector< std::string > paramSet, int numInvalidConditions, std::vector< InvalidatingConditionMod::InvalidatingCondition > invalidConditions, ArrayTime timeReduced, std::string messages, std::string software, std::string softwareVersion)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
std::string getName() const
Return the name of this table.
CalReductionRow * add(CalReductionRow *x)
====> Append a row to its table.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalReductionTable as those produced by the t...
The Entity class is an identification of a persistant entity in the ALMA archive. ...