34 #ifndef DopplerTable_CLASS
35 #define DopplerTable_CLASS
145 static const std::vector<std::string>&
getKeyName();
162 unsigned int size()
const;
180 static std::string
name() ;
220 std::string
toXML() ;
229 asdmIDL::DopplerTableIDL *
toIDL() ;
238 void toIDL(asdmIDL::DopplerTableIDL& x)
const;
249 void fromIDL(asdmIDL::DopplerTableIDL x) ;
274 DopplerRow *
newRow(
int sourceId,
int transitionIndex, DopplerReferenceCodeMod::DopplerReferenceCode velDef);
321 std::vector<DopplerRow *>
get() ;
329 const std::vector<DopplerRow *>&
get()
const ;
374 DopplerRow*
lookup(
int sourceId,
int transitionIndex, DopplerReferenceCodeMod::DopplerReferenceCode velDef);
446 std::vector<DopplerRow *>
row;
504 void toFile(std::string directory);
void checkPresenceInMemory()
static const ByteOrder * Machine_Endianity
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
void fromIDL(asdmIDL::DopplerTableIDL x)
Populate this table from the content of a DopplerTableIDL Corba structure.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
The DopplerRow class is a row of a DopplerTable.
DopplerRow * add(DopplerRow *x)
====> Append a row to its table.
A class to represent byte order information.
std::string getName() const
Return the name of this table.
The ASDM class is the container for all tables.
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.
bool loadInProgress
Load the table in memory if necessary.
DopplerRow * getRowByKey(int dopplerId, int sourceId)
Returns a DopplerRow* given a key.
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...
Entity getEntity() const
Return this table's Entity.
ASDM & getContainer() const
Return the container to which this table belongs.
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...
DopplerRow * newRow()
====> Row creation.
DopplerTable(ASDM &container)
Create a DopplerTable.
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 append(DopplerRow *x)
Brutally append an DopplerRow 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.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a DopplerTable as those produced by the toFile...
std::vector< DopplerRow * > privateRows
A data structure to store the pointers on the table's rows.
void setFromXMLFile(const std::string &directory)
DopplerRow * checkAndAdd(DopplerRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void autoIncrement(std::string key, DopplerRow *x)
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
asdmIDL::DopplerTableIDL * toIDL()
Conversion Methods.
void addWithoutCheckingUnique(DopplerRow *x)
Brutally append an DopplerRow x to the collection of rows already stored in this table.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
static std::string name()
Return the name of this table.
void setEntity(Entity e)
Set this table's Entity.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
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.
DopplerRow * lookup(int sourceId, int transitionIndex, DopplerReferenceCodeMod::DopplerReferenceCode velDef)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
const Double e
e and functions thereof:
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
std::string getVersion() const
Return the version information about this table.
std::string toXML()
Produces an XML representation conform to the schema defined for Doppler (DopplerTable.xsd).
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
std::vector< DopplerRow * > getRowByDopplerId(int)
Returns a vector of pointers on rows whose key element dopplerId is equal to the parameter dopplerId...
unsigned int size() const
Return the number of rows in the 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).
The DopplerTable class is an Alma table.
std::vector< DopplerRow * > row
The Entity class is an identification of a persistant entity in the ALMA archive. ...