34 #ifndef FieldTable_CLASS
35 #define FieldTable_CLASS
244 static const std::vector<std::string>&
getKeyName();
261 unsigned int size()
const;
279 static std::string
name() ;
319 std::string
toXML() ;
328 asdmIDL::FieldTableIDL *
toIDL() ;
337 void toIDL(asdmIDL::FieldTableIDL& x)
const;
348 void fromIDL(asdmIDL::FieldTableIDL x) ;
377 FieldRow *
newRow(std::string fieldName,
int numPoly, std::vector<std::vector<Angle > > delayDir, std::vector<std::vector<Angle > > phaseDir, std::vector<std::vector<Angle > > referenceDir);
424 std::vector<FieldRow *>
get() ;
432 const std::vector<FieldRow *>&
get()
const ;
470 FieldRow*
lookup(std::string fieldName,
int numPoly, std::vector<std::vector<Angle > > delayDir, std::vector<std::vector<Angle > > phaseDir, std::vector<std::vector<Angle > > referenceDir);
542 std::vector<FieldRow *>
row;
600 void toFile(std::string directory);
FieldTable(ASDM &container)
Create a FieldTable.
std::vector< FieldRow * > privateRows
A data structure to store the pointers on the table's rows.
static const ByteOrder * Machine_Endianity
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The FieldTable class is an Alma table.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
A class to represent byte order information.
bool loadInProgress
Load the table in memory if necessary.
FieldRow * add(FieldRow *x)
====> Append a row to its table.
The ASDM class is the container for all tables.
void setFromXMLFile(const std::string &directory)
static std::string name()
Return the name of this 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...
asdmIDL::FieldTableIDL * toIDL()
Conversion Methods.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
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 getName() const
Return the name of this table.
std::string getVersion() const
Return the version information about this table.
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
ASDM & getContainer() const
Return the container to which this table belongs.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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...
std::string toXML()
Produces an XML representation conform to the schema defined for Field (FieldTable.xsd).
void checkPresenceInMemory()
FieldRow * lookup(std::string fieldName, int numPoly, std::vector< std::vector< Angle > > delayDir, std::vector< std::vector< Angle > > phaseDir, std::vector< std::vector< Angle > > referenceDir)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
void addWithoutCheckingUnique(FieldRow *x)
Brutally append an FieldRow x to the collection of rows already stored in this table.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
unsigned int size() const
Return the number of rows in the table.
FieldRow * checkAndAdd(FieldRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The FieldRow class is a row of a FieldTable.
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::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a FieldTable as those produced by the toFile m...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
void setEntity(Entity e)
Set this table's Entity.
void append(FieldRow *x)
Brutally append an FieldRow x to the collection of rows already stored in this table.
Entity getEntity() const
Return this table's Entity.
std::vector< FieldRow * > row
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.
void fromIDL(asdmIDL::FieldTableIDL x)
Populate this table from the content of a FieldTableIDL Corba structure.
void autoIncrement(std::string key, FieldRow *x)
FieldRow * newRow()
====> Row creation.
FieldRow * getRowByKey(Tag fieldId)
Returns a FieldRow* given a key.
The Entity class is an identification of a persistant entity in the ALMA archive. ...