34 #ifndef FocusModelTable_CLASS
35 #define FocusModelTable_CLASS
203 static const std::vector<std::string>&
getKeyName();
220 unsigned int size()
const;
238 static std::string
name() ;
278 std::string
toXML() ;
287 asdmIDL::FocusModelTableIDL *
toIDL() ;
296 void toIDL(asdmIDL::FocusModelTableIDL& x)
const;
307 void fromIDL(asdmIDL::FocusModelTableIDL x) ;
344 FocusModelRow *
newRow(
Tag antennaId, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand,
int numCoeff, std::vector<std::string > coeffName, std::vector<std::string > coeffFormula, std::vector<float > coeffVal, std::string assocNature,
int assocFocusModelId);
391 std::vector<FocusModelRow *>
get() ;
399 const std::vector<FocusModelRow *>&
get()
const ;
456 FocusModelRow*
lookup(
Tag antennaId, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand,
int numCoeff, std::vector<std::string > coeffName, std::vector<std::string > coeffFormula, std::vector<float > coeffVal, std::string assocNature,
int assocFocusModelId);
528 std::vector<FocusModelRow *>
row;
586 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
virtual ~FocusModelTable()
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
FocusModelRow * add(FocusModelRow *x)
====> Append a row to its table.
void autoIncrement(std::string key, FocusModelRow *x)
std::string toXML()
Produces an XML representation conform to the schema defined for FocusModel (FocusModelTable.xsd).
void setEntity(Entity e)
Set this table's Entity.
A class to represent byte order information.
FocusModelRow * getRowByKey(Tag antennaId, int focusModelId)
Returns a FocusModelRow* given a key.
The ASDM class is the container for all tables.
void setFromXMLFile(const std::string &directory)
void append(FocusModelRow *x)
Brutally append an FocusModelRow x to the collection of rows already stored in this table...
bool loadInProgress
Load the table in memory if necessary.
std::string getVersion() const
Return the version information about this table.
FocusModelRow * checkAndAdd(FocusModelRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
static std::string name()
Return the name of this table.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a FocusModelTable as those produced by the toF...
unsigned int size() const
Return the number of rows in the 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 toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
Entity getEntity() const
Return this table's Entity.
std::string getName() const
Return the name of this table.
void checkPresenceInMemory()
std::vector< FocusModelRow * > privateRows
A data structure to store the pointers on the table's rows.
The Tag class is an implementation of a unique index identifying a row of an ASDM 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).
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 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::vector< FocusModelRow * > getRowByFocusModelId(int)
Returns a vector of pointers on rows whose key element focusModelId is equal to the parameter focusMo...
asdmIDL::FocusModelTableIDL * toIDL()
Conversion Methods.
void addWithoutCheckingUnique(FocusModelRow *x)
Brutally append an FocusModelRow x to the collection of rows already stored in 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.
The FocusModelRow class is a row of a FocusModelTable.
const Double e
e and functions thereof:
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::vector< FocusModelRow * > row
FocusModelRow * newRow()
====> Row creation.
FocusModelTable(ASDM &container)
Create a FocusModelTable.
The FocusModelTable class is an Alma table.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
FocusModelRow * lookup(Tag antennaId, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, int numCoeff, std::vector< std::string > coeffName, std::vector< std::string > coeffFormula, std::vector< float > coeffVal, std::string assocNature, int assocFocusModelId)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
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...
ASDM & getContainer() const
Return the container to which this table belongs.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
void fromIDL(asdmIDL::FocusModelTableIDL x)
Populate this table from the content of a FocusModelTableIDL Corba structure.