34 #ifndef ConfigDescriptionTable_CLASS
35 #define ConfigDescriptionTable_CLASS
107 class ConfigDescriptionRow;
274 static const std::vector<std::string>&
getKeyName();
291 unsigned int size()
const;
309 static std::string
name() ;
349 std::string
toXML() ;
358 asdmIDL::ConfigDescriptionTableIDL *
toIDL() ;
367 void toIDL(asdmIDL::ConfigDescriptionTableIDL& x)
const;
378 void fromIDL(asdmIDL::ConfigDescriptionTableIDL x) ;
423 ConfigDescriptionRow *
newRow(
int numAntenna,
int numDataDescription,
int numFeed, CorrelationModeMod::CorrelationMode correlationMode,
int numAtmPhaseCorrection, std::vector<AtmPhaseCorrectionMod::AtmPhaseCorrection > atmPhaseCorrection, ProcessorTypeMod::ProcessorType processorType, SpectralResolutionTypeMod::SpectralResolutionType spectralType, std::vector<Tag> antennaId, std::vector<int> feedId, std::vector<Tag> switchCycleId, std::vector<Tag> dataDescriptionId,
Tag processorId);
470 std::vector<ConfigDescriptionRow *>
get() ;
478 const std::vector<ConfigDescriptionRow *>&
get()
const ;
532 ConfigDescriptionRow*
lookup(
int numAntenna,
int numDataDescription,
int numFeed, CorrelationModeMod::CorrelationMode correlationMode,
int numAtmPhaseCorrection, std::vector<AtmPhaseCorrectionMod::AtmPhaseCorrection > atmPhaseCorrection, ProcessorTypeMod::ProcessorType processorType, SpectralResolutionTypeMod::SpectralResolutionType spectralType, std::vector<Tag> antennaId, std::vector<int> feedId, std::vector<Tag> switchCycleId, std::vector<Tag> dataDescriptionId,
Tag processorId);
604 std::vector<ConfigDescriptionRow *>
row;
662 void toFile(std::string directory);
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
static const ByteOrder * Machine_Endianity
static std::string name()
Return the name of this table.
std::vector< ConfigDescriptionRow * > row
A class to represent byte order information.
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...
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...
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 const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
The ASDM class is the container for all tables.
The ConfigDescriptionTable class is an Alma table.
void fromIDL(asdmIDL::ConfigDescriptionTableIDL x)
Populate this table from the content of a ConfigDescriptionTableIDL Corba structure.
std::vector< ConfigDescriptionRow * > privateRows
A data structure to store the pointers on the table's rows.
virtual ~ConfigDescriptionTable()
Entity getEntity() const
Return this table's Entity.
ConfigDescriptionRow * lookup(int numAntenna, int numDataDescription, int numFeed, CorrelationModeMod::CorrelationMode correlationMode, int numAtmPhaseCorrection, std::vector< AtmPhaseCorrectionMod::AtmPhaseCorrection > atmPhaseCorrection, ProcessorTypeMod::ProcessorType processorType, SpectralResolutionTypeMod::SpectralResolutionType spectralType, std::vector< Tag > antennaId, std::vector< int > feedId, std::vector< Tag > switchCycleId, std::vector< Tag > dataDescriptionId, Tag processorId)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
void addWithoutCheckingUnique(ConfigDescriptionRow *x)
Brutally append an ConfigDescriptionRow x to the collection of rows already stored in this table...
ConfigDescriptionRow * add(ConfigDescriptionRow *x)
====> Append a row to its table.
void setEntity(Entity e)
Set this table's Entity.
void setFromXMLFile(const std::string &directory)
std::string getName() const
Return the name of this table.
ConfigDescriptionRow * checkAndAdd(ConfigDescriptionRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
std::string getVersion() const
Return the version information about this table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
void append(ConfigDescriptionRow *x)
Brutally append an ConfigDescriptionRow x to the collection of rows already stored in this table...
void autoIncrement(std::string key, ConfigDescriptionRow *x)
void checkPresenceInMemory()
ConfigDescriptionTable(ASDM &container)
Create a ConfigDescriptionTable.
std::string toXML()
Produces an XML representation conform to the schema defined for ConfigDescription (ConfigDescription...
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...
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.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
unsigned int size() const
Return the number of rows in the table.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a ConfigDescriptionTable as those produced by ...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
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.
const Double e
e and functions thereof:
The ConfigDescriptionRow class is a row of a ConfigDescriptionTable.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
ConfigDescriptionRow * newRow()
====> Row creation.
ASDM & getContainer() const
Return the container to which this table belongs.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
ConfigDescriptionRow * getRowByKey(Tag configDescriptionId)
Returns a ConfigDescriptionRow* given a key.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
bool loadInProgress
Load the table in memory if necessary.
asdmIDL::ConfigDescriptionTableIDL * toIDL()
Conversion Methods.
The Entity class is an identification of a persistant entity in the ALMA archive. ...