34 #ifndef AlmaRadiometerTable_CLASS
35 #define AlmaRadiometerTable_CLASS
77 class AlmaRadiometerRow;
136 static const std::vector<std::string>&
getKeyName();
153 unsigned int size()
const;
171 static std::string
name() ;
211 std::string
toXML() ;
220 asdmIDL::AlmaRadiometerTableIDL *
toIDL() ;
229 void toIDL(asdmIDL::AlmaRadiometerTableIDL& x)
const;
240 void fromIDL(asdmIDL::AlmaRadiometerTableIDL x) ;
298 std::vector<AlmaRadiometerRow *>
get() ;
306 const std::vector<AlmaRadiometerRow *>&
get()
const ;
397 std::vector<AlmaRadiometerRow *>
row;
455 void toFile(std::string directory);
void append(AlmaRadiometerRow *x)
Brutally append an AlmaRadiometerRow x to the collection of rows already stored in this table...
The AlmaRadiometerRow class is a row of a AlmaRadiometerTable.
void addWithoutCheckingUnique(AlmaRadiometerRow *x)
Brutally append an AlmaRadiometerRow x to the collection of rows already stored in this table...
static const ByteOrder * Machine_Endianity
void fromIDL(asdmIDL::AlmaRadiometerTableIDL x)
Populate this table from the content of a AlmaRadiometerTableIDL Corba structure. ...
The AlmaRadiometerTable class is an Alma table.
AlmaRadiometerRow * add(AlmaRadiometerRow *x)
====> Append a row to its table.
static std::string name()
Return the name of 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...
A class to represent byte order information.
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...
AlmaRadiometerRow * checkAndAdd(AlmaRadiometerRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
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 setFromXMLFile(const std::string &directory)
std::string getName() const
Return the name of this table.
AlmaRadiometerRow * newRow()
====> Row creation.
void checkPresenceInMemory()
The ASDM class is the container for all tables.
void autoIncrement(std::string key, AlmaRadiometerRow *x)
bool loadInProgress
Load the table in memory if necessary.
ASDM & getContainer() const
Return the container to which this table belongs.
std::vector< AlmaRadiometerRow * > privateRows
A data structure to store the pointers on the table's rows.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
unsigned int size() const
Return the number of rows in the table.
void setEntity(Entity e)
Set this table's Entity.
std::vector< AlmaRadiometerRow * > row
Entity getEntity() const
Return this table's Entity.
virtual ~AlmaRadiometerTable()
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
asdmIDL::AlmaRadiometerTableIDL * toIDL()
Conversion Methods.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a AlmaRadiometerTable as those produced by the...
std::string getVersion() const
Return the version information about this 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.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the 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.
const Double e
e and functions thereof:
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
AlmaRadiometerRow * getRowByKey(Tag almaRadiometerId)
Returns a AlmaRadiometerRow* given a key.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
std::string toXML()
Produces an XML representation conform to the schema defined for AlmaRadiometer (AlmaRadiometerTable...
AlmaRadiometerTable(ASDM &container)
Create a AlmaRadiometerTable.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
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 Entity class is an identification of a persistant entity in the ALMA archive. ...