34 #ifndef SpectralWindowTable_CLASS
35 #define SpectralWindowTable_CLASS
136 #include <asdmIDLC.h>
149 class SpectralWindowRow;
414 static const std::vector<std::string>&
getKeyName();
431 unsigned int size()
const;
449 static std::string
name() ;
489 std::string
toXML() ;
498 asdmIDL::SpectralWindowTableIDL *
toIDL() ;
507 void toIDL(asdmIDL::SpectralWindowTableIDL& x)
const;
518 void fromIDL(asdmIDL::SpectralWindowTableIDL x) ;
551 SpectralWindowRow *
newRow(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband,
int numChan,
Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode,
Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction);
598 std::vector<SpectralWindowRow *>
get() ;
606 const std::vector<SpectralWindowRow *>&
get()
const ;
648 SpectralWindowRow*
lookup(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband,
int numChan,
Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode,
Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction);
720 std::vector<SpectralWindowRow *>
row;
778 void toFile(std::string directory);
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
static const ByteOrder * Machine_Endianity
ASDM & getContainer() const
Return the container to which this table belongs.
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 SpectralWindowTable as those produced by the...
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this 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...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void checkPresenceInMemory()
A class to represent byte order information.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
SpectralWindowRow * getRowByKey(Tag spectralWindowId)
Returns a SpectralWindowRow* given a key.
The ASDM class is the container for all tables.
void autoIncrement(std::string key, SpectralWindowRow *x)
SpectralWindowRow * add(SpectralWindowRow *x)
====> Append a row to its table.
Entity getEntity() const
Return this table's Entity.
std::vector< SpectralWindowRow * > row
SpectralWindowRow * newRow()
====> Row creation.
void append(SpectralWindowRow *x)
Brutally append an SpectralWindowRow x to the collection of rows already stored in this table...
std::string getVersion() const
Return the version information about this table.
static std::string name()
Return the name of this table.
SpectralWindowRow * checkAndAdd(SpectralWindowRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
bool loadInProgress
Load the table in memory if necessary.
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 SpectralWindowTable class is an Alma table.
asdmIDL::SpectralWindowTableIDL * toIDL()
Conversion Methods.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
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 setFromXMLFile(const std::string &directory)
SpectralWindowRow * lookup(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband, int numChan, Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode, Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction)
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...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void setEntity(Entity e)
Set this table's Entity.
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.
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
unsigned int size() const
Return the number of rows in the table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
const Double e
e and functions thereof:
SpectralWindowTable(ASDM &container)
Create a SpectralWindowTable.
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.
void fromIDL(asdmIDL::SpectralWindowTableIDL x)
Populate this table from the content of a SpectralWindowTableIDL Corba structure. ...
void addWithoutCheckingUnique(SpectralWindowRow *x)
Brutally append an SpectralWindowRow x to the collection of rows already stored in this table...
The Frequency class implements a quantity of frequency in hertz.
std::string getName() const
Return the name of this table.
The SpectralWindowRow class is a row of a SpectralWindowTable.
virtual ~SpectralWindowTable()
std::vector< SpectralWindowRow * > privateRows
A data structure to store the pointers on the table's rows.
std::string toXML()
Produces an XML representation conform to the schema defined for SpectralWindow (SpectralWindowTable...
The Entity class is an identification of a persistant entity in the ALMA archive. ...