34 #ifndef FlagTable_CLASS
35 #define FlagTable_CLASS
245 static const std::vector<std::string>&
getKeyName();
262 unsigned int size()
const;
280 static std::string
name() ;
320 std::string
toXML() ;
329 asdmIDL::FlagTableIDL *
toIDL() ;
338 void toIDL(asdmIDL::FlagTableIDL& x)
const;
349 void fromIDL(asdmIDL::FlagTableIDL x) ;
425 std::vector<FlagRow *>
get() ;
433 const std::vector<FlagRow *>&
get()
const ;
543 std::vector<FlagRow *>
row;
601 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
unsigned int size() const
Return the number of rows in the table.
Entity getEntity() const
Return this table's Entity.
void addWithoutCheckingUnique(FlagRow *x)
Brutally append an FlagRow x to the collection of rows already stored in 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.
A class to represent byte order information.
std::vector< FlagRow * > privateRows
A data structure to store the pointers on the table's rows.
void autoIncrement(std::string key, FlagRow *x)
The ASDM class is the container for all tables.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a FlagTable as those produced by the toFile me...
FlagRow * newRow()
====> Row creation.
void fromIDL(asdmIDL::FlagTableIDL x)
Populate this table from the content of a FlagTableIDL Corba structure.
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 std::string name()
Return the name of this table.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
FlagRow * lookup(ArrayTime startTime, ArrayTime endTime, std::string reason, int numAntenna, std::vector< Tag > antennaId)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
void setFromXMLFile(const std::string &directory)
FlagRow * add(FlagRow *x)
====> Append a row to its table.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
asdmIDL::FlagTableIDL * toIDL()
Conversion Methods.
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 fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
FlagTable(ASDM &container)
Create a FlagTable.
void append(FlagRow *x)
Brutally append an FlagRow x to the collection of rows already stored in this table.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
FlagRow * getRowByKey(Tag flagId)
Returns a FlagRow* given a key.
std::string getName() const
Return the name of this table.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
bool loadInProgress
Load the table in memory if necessary.
void checkPresenceInMemory()
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
void setEntity(Entity e)
Set this table's Entity.
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.
FlagRow * checkAndAdd(FlagRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
const Double e
e and functions thereof:
std::string toXML()
Produces an XML representation conform to the schema defined for Flag (FlagTable.xsd).
The FlagRow class is a row of a FlagTable.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
ASDM & getContainer() const
Return the container to which this table belongs.
The FlagTable class is an Alma 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::string getVersion() const
Return the version information about 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...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
The Entity class is an identification of a persistant entity in the ALMA archive. ...
std::vector< FlagRow * > row