34 #ifndef FlagCmdTable_CLASS
35 #define FlagCmdTable_CLASS
174 static const std::vector<std::string>&
getKeyName();
191 unsigned int size()
const;
209 static std::string
name() ;
249 std::string
toXML() ;
258 asdmIDL::FlagCmdTableIDL *
toIDL() ;
267 void toIDL(asdmIDL::FlagCmdTableIDL& x)
const;
278 void fromIDL(asdmIDL::FlagCmdTableIDL x) ;
365 std::vector<FlagCmdRow *>
get() ;
373 const std::vector<FlagCmdRow *>&
get()
const ;
511 std::vector <FlagCmdRow *>
row;
573 void toFile(std::string directory);
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
static const ByteOrder * Machine_Endianity
std::string toXML()
Produces an XML representation conform to the schema defined for FlagCmd (FlagCmdTable.xsd).
FlagCmdRow * lookup(ArrayTimeInterval timeInterval, std::string type, std::string reason, int level, int severity, bool applied, std::string command)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
FlagCmdTable(ASDM &container)
Create a FlagCmdTable.
A class to represent byte order information.
ASDM & getContainer() const
Return the container to which this table belongs.
void fromIDL(asdmIDL::FlagCmdTableIDL x)
Populate this table from the content of a FlagCmdTableIDL Corba structure.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
The ASDM class is the container for all tables.
The FlagCmdTable class is an Alma table.
static std::string name()
Return the name of this table.
FlagCmdRow * getRowByKey(ArrayTimeInterval timeInterval)
Returns a FlagCmdRow* given a key.
virtual casacore::String type() const
Implements RegionShape::type.
asdmIDL::FlagCmdTableIDL * toIDL()
Conversion Methods.
std::vector< FlagCmdRow * > row
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
FlagCmdRow * newRow()
====> Row creation.
FlagCmdRow * checkAndAdd(FlagCmdRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
Entity getEntity() const
Return this table's Entity.
void setFromXMLFile(const std::string &directory)
FlagCmdRow * add(FlagCmdRow *x)
====> Append a row to its table.
std::vector< FlagCmdRow * > privateRows
A data structure to store the pointers on the table's rows.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The FlagCmdRow class is a row of a FlagCmdTable.
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.
std::string getName() const
Return the name of this table.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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...
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:
bool loadInProgress
Load the table in memory if necessary.
void append(FlagCmdRow *x)
Brutally append an FlagCmdRow x to the collection of rows already stored in this table.
std::vector< FlagCmdRow * > * getByContext()
Returns all the rows sorted by ascending startTime for a given context.
FlagCmdRow * insertByStartTime(FlagCmdRow *x, std::vector< FlagCmdRow * > &row)
Insert a FlagCmdRow* in a vector of FlagCmdRow* so that it's ordered by ascending time...
void addWithoutCheckingUnique(FlagCmdRow *x)
Brutally append an FlagCmdRow 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 FlagCmdTable as those produced by the toFile...
void checkPresenceInMemory()
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...
std::string getVersion() const
Return the version information about this table.
unsigned int size() const
Return the number of rows in the table.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
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...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)