34 #ifndef ProcessorTable_CLASS
35 #define ProcessorTable_CLASS
151 static const std::vector<std::string>&
getKeyName();
168 unsigned int size()
const;
186 static std::string
name() ;
226 std::string
toXML() ;
235 asdmIDL::ProcessorTableIDL *
toIDL() ;
244 void toIDL(asdmIDL::ProcessorTableIDL& x)
const;
255 void fromIDL(asdmIDL::ProcessorTableIDL x) ;
280 ProcessorRow *
newRow(
Tag modeId, ProcessorTypeMod::ProcessorType processorType, ProcessorSubTypeMod::ProcessorSubType processorSubType);
327 std::vector<ProcessorRow *>
get() ;
335 const std::vector<ProcessorRow *>&
get()
const ;
369 ProcessorRow*
lookup(
Tag modeId, ProcessorTypeMod::ProcessorType processorType, ProcessorSubTypeMod::ProcessorSubType processorSubType);
441 std::vector<ProcessorRow *>
row;
499 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
ProcessorRow * checkAndAdd(ProcessorRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
std::vector< ProcessorRow * > privateRows
A data structure to store the pointers on the table's rows.
ASDM & getContainer() const
Return the container to which this table belongs.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
virtual ~ProcessorTable()
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
A class to represent byte order information.
std::vector< ProcessorRow * > row
void append(ProcessorRow *x)
Brutally append an ProcessorRow x to the collection of rows already stored in this table...
std::string getName() const
Return the name of this table.
void fromIDL(asdmIDL::ProcessorTableIDL x)
Populate this table from the content of a ProcessorTableIDL Corba structure.
bool loadInProgress
Load the table in memory if necessary.
The ASDM class is the container for all tables.
void setEntity(Entity e)
Set this table's Entity.
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...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
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 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...
ProcessorRow * lookup(Tag modeId, ProcessorTypeMod::ProcessorType processorType, ProcessorSubTypeMod::ProcessorSubType processorSubType)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
ProcessorRow * newRow()
====> Row creation.
void checkPresenceInMemory()
void autoIncrement(std::string key, ProcessorRow *x)
The ProcessorTable class is an Alma table.
std::string toXML()
Produces an XML representation conform to the schema defined for Processor (ProcessorTable.xsd).
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...
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a ProcessorTable as those produced by the toFi...
void setFromXMLFile(const std::string &directory)
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
asdmIDL::ProcessorTableIDL * toIDL()
Conversion Methods.
static std::string name()
Return the name of 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).
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...
ProcessorRow * add(ProcessorRow *x)
====> Append a row to its table.
ProcessorTable(ASDM &container)
Create a ProcessorTable.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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:
ProcessorRow * getRowByKey(Tag processorId)
Returns a ProcessorRow* given a key.
unsigned int size() const
Return the number of rows in the table.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
The ProcessorRow class is a row of a ProcessorTable.
void addWithoutCheckingUnique(ProcessorRow *x)
Brutally append an ProcessorRow x to the collection of rows already stored in this table...
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
The Entity class is an identification of a persistant entity in the ALMA archive. ...