34 #ifndef CorrelatorModeTable_CLASS
35 #define CorrelatorModeTable_CLASS
103 class CorrelatorModeRow;
211 static const std::vector<std::string>&
getKeyName();
228 unsigned int size()
const;
246 static std::string
name() ;
286 std::string
toXML() ;
295 asdmIDL::CorrelatorModeTableIDL *
toIDL() ;
304 void toIDL(asdmIDL::CorrelatorModeTableIDL& x)
const;
315 void fromIDL(asdmIDL::CorrelatorModeTableIDL x) ;
352 CorrelatorModeRow *
newRow(
int numBaseband, std::vector<BasebandNameMod::BasebandName > basebandNames, std::vector<int > basebandConfig, AccumModeMod::AccumMode accumMode,
int binMode,
int numAxes, std::vector<AxisNameMod::AxisName > axesOrderArray, std::vector<FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName);
399 std::vector<CorrelatorModeRow *>
get() ;
407 const std::vector<CorrelatorModeRow *>&
get()
const ;
453 CorrelatorModeRow*
lookup(
int numBaseband, std::vector<BasebandNameMod::BasebandName > basebandNames, std::vector<int > basebandConfig, AccumModeMod::AccumMode accumMode,
int binMode,
int numAxes, std::vector<AxisNameMod::AxisName > axesOrderArray, std::vector<FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName);
525 std::vector<CorrelatorModeRow *>
row;
583 void toFile(std::string directory);
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 ByteOrder * Machine_Endianity
std::string getVersion() const
Return the version information about this table.
The CorrelatorModeRow class is a row of a CorrelatorModeTable.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
void append(CorrelatorModeRow *x)
Brutally append an CorrelatorModeRow x to the collection of rows already stored in this table...
ASDM & getContainer() const
Return the container to which this table belongs.
std::string getName() const
Return the name of this table.
A class to represent byte order information.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
virtual ~CorrelatorModeTable()
The ASDM class is the container for all tables.
void addWithoutCheckingUnique(CorrelatorModeRow *x)
Brutally append an CorrelatorModeRow x to the collection of rows already stored in this table...
CorrelatorModeRow * newRow()
====> Row creation.
CorrelatorModeRow * lookup(int numBaseband, std::vector< BasebandNameMod::BasebandName > basebandNames, std::vector< int > basebandConfig, AccumModeMod::AccumMode accumMode, int binMode, int numAxes, std::vector< AxisNameMod::AxisName > axesOrderArray, std::vector< FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
std::vector< CorrelatorModeRow * > privateRows
A data structure to store the pointers on the table's rows.
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...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
unsigned int size() const
Return the number of rows in the table.
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 setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CorrelatorModeTable as those produced by the...
CorrelatorModeTable(ASDM &container)
Create a CorrelatorModeTable.
void setEntity(Entity e)
Set this table's Entity.
bool loadInProgress
Load the table in memory if necessary.
void fromIDL(asdmIDL::CorrelatorModeTableIDL x)
Populate this table from the content of a CorrelatorModeTableIDL Corba structure. ...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
CorrelatorModeRow * add(CorrelatorModeRow *x)
====> Append a row to its table.
The CorrelatorModeTable class is an Alma 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...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void checkPresenceInMemory()
asdmIDL::CorrelatorModeTableIDL * toIDL()
Conversion Methods.
void setFromXMLFile(const std::string &directory)
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
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.
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 CorrelatorMode (CorrelatorModeTable...
const Double e
e and functions thereof:
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
static std::string name()
Return the name of this table.
void autoIncrement(std::string key, CorrelatorModeRow *x)
CorrelatorModeRow * checkAndAdd(CorrelatorModeRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
std::vector< CorrelatorModeRow * > row
Entity getEntity() const
Return this table's Entity.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
CorrelatorModeRow * getRowByKey(Tag correlatorModeId)
Returns a CorrelatorModeRow* given a key.