34 #ifndef HolographyTable_CLASS
35 #define HolographyTable_CLASS
162 static const std::vector<std::string>&
getKeyName();
179 unsigned int size()
const;
197 static std::string
name() ;
237 std::string
toXML() ;
246 asdmIDL::HolographyTableIDL *
toIDL() ;
255 void toIDL(asdmIDL::HolographyTableIDL& x)
const;
266 void fromIDL(asdmIDL::HolographyTableIDL x) ;
340 std::vector<HolographyRow *>
get() ;
348 const std::vector<HolographyRow *>&
get()
const ;
456 std::vector<HolographyRow *>
row;
514 void toFile(std::string directory);
std::string toXML()
Produces an XML representation conform to the schema defined for Holography (HolographyTable.xsd).
static const ByteOrder * Machine_Endianity
std::vector< HolographyRow * > row
ASDM & getContainer() const
Return the container to which this table belongs.
void setFromXMLFile(const std::string &directory)
virtual ~HolographyTable()
The HolographyRow class is a row of a HolographyTable.
A class to represent byte order information.
static std::string name()
Return the name of this table.
Entity getEntity() const
Return this table's Entity.
void checkPresenceInMemory()
HolographyRow * lookup(Length distance, Length focus, int numCorr, std::vector< HolographyChannelTypeMod::HolographyChannelType > type)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
The ASDM class is the container for all tables.
virtual casacore::String type() const
Implements RegionShape::type.
void fromIDL(asdmIDL::HolographyTableIDL x)
Populate this table from the content of a HolographyTableIDL Corba structure.
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
std::string getVersion() const
Return the version information about this table.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
void setEntity(Entity e)
Set this table's Entity.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
The HolographyTable class is an Alma table.
The Length class implements a quantity of length in meters.
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 autoIncrement(std::string key, HolographyRow *x)
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
std::vector< HolographyRow * > 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...
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 append(HolographyRow *x)
Brutally append an HolographyRow x to the collection of rows already stored in this table...
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
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 > & 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.
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.
HolographyRow * add(HolographyRow *x)
====> Append a row to its table.
const Double e
e and functions thereof:
HolographyRow * checkAndAdd(HolographyRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void addWithoutCheckingUnique(HolographyRow *x)
Brutally append an HolographyRow x to the collection of rows already stored in this table...
std::string getName() const
Return the name of this table.
HolographyRow * newRow()
====> Row creation.
HolographyRow * getRowByKey(Tag holographyId)
Returns a HolographyRow* given a key.
asdmIDL::HolographyTableIDL * toIDL()
Conversion Methods.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a HolographyTable as those produced by the toF...
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::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
HolographyTable(ASDM &container)
Create a HolographyTable.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
bool loadInProgress
Load the table in memory if necessary.