34 #ifndef PolarizationTable_CLASS
35 #define PolarizationTable_CLASS
85 class PolarizationRow;
151 static const std::vector<std::string>&
getKeyName();
168 unsigned int size()
const;
186 static std::string
name() ;
226 std::string
toXML() ;
235 asdmIDL::PolarizationTableIDL *
toIDL() ;
244 void toIDL(asdmIDL::PolarizationTableIDL& x)
const;
255 void fromIDL(asdmIDL::PolarizationTableIDL x) ;
280 PolarizationRow *
newRow(
int numCorr, std::vector<StokesParameterMod::StokesParameter > corrType, std::vector<std::vector<PolarizationTypeMod::PolarizationType > > corrProduct);
327 std::vector<PolarizationRow *>
get() ;
335 const std::vector<PolarizationRow *>&
get()
const ;
369 PolarizationRow*
lookup(
int numCorr, std::vector<StokesParameterMod::StokesParameter > corrType, std::vector<std::vector<PolarizationTypeMod::PolarizationType > > corrProduct);
441 std::vector<PolarizationRow *>
row;
499 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
static std::string name()
Return the name of this table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
PolarizationRow * newRow()
====> Row creation.
A class to represent byte order information.
bool loadInProgress
Load the table in memory if necessary.
void append(PolarizationRow *x)
Brutally append an PolarizationRow x to the collection of rows already stored in this table...
The ASDM class is the container for all tables.
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 toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
std::string getName() const
Return the name of this table.
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...
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...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
virtual ~PolarizationTable()
ASDM & getContainer() const
Return the container to which this table belongs.
PolarizationRow * checkAndAdd(PolarizationRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
unsigned int size() const
Return the number of rows in the table.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
PolarizationRow * add(PolarizationRow *x)
====> Append a row to its table.
void fromIDL(asdmIDL::PolarizationTableIDL x)
Populate this table from the content of a PolarizationTableIDL Corba structure.
PolarizationTable(ASDM &container)
Create a PolarizationTable.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
asdmIDL::PolarizationTableIDL * toIDL()
Conversion Methods.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a PolarizationTable as those produced by the t...
std::vector< PolarizationRow * > 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 autoIncrement(std::string key, PolarizationRow *x)
void checkPresenceInMemory()
void setFromXMLFile(const std::string &directory)
std::string getVersion() const
Return the version information about this table.
Entity getEntity() const
Return this table's Entity.
PolarizationRow * lookup(int numCorr, std::vector< StokesParameterMod::StokesParameter > corrType, std::vector< std::vector< PolarizationTypeMod::PolarizationType > > corrProduct)
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...
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.
void addWithoutCheckingUnique(PolarizationRow *x)
Brutally append an PolarizationRow x to the collection of rows already stored in this table...
const Double e
e and functions thereof:
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The PolarizationTable class is an Alma table.
The PolarizationRow class is a row of a PolarizationTable.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
std::string toXML()
Produces an XML representation conform to the schema defined for Polarization (PolarizationTable.xsd).
std::vector< PolarizationRow * > row
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.
PolarizationRow * getRowByKey(Tag polarizationId)
Returns a PolarizationRow* given a key.
The Entity class is an identification of a persistant entity in the ALMA archive. ...