34 #ifndef FreqOffsetTable_CLASS
35 #define FreqOffsetTable_CLASS
164 static const std::vector<std::string>&
getKeyName();
181 unsigned int size()
const;
199 static std::string
name() ;
239 std::string
toXML() ;
248 asdmIDL::FreqOffsetTableIDL *
toIDL() ;
257 void toIDL(asdmIDL::FreqOffsetTableIDL& x)
const;
268 void fromIDL(asdmIDL::FreqOffsetTableIDL x) ;
351 std::vector<FreqOffsetRow *>
get() ;
359 const std::vector<FreqOffsetRow *>&
get()
const ;
372 std::vector <FreqOffsetRow*> *
getByContext(
Tag antennaId,
Tag spectralWindowId,
int feedId);
506 std::string
Key(
Tag antennaId,
Tag spectralWindowId,
int feedId) ;
516 void getByKeyNoAutoIncNoTime(std::vector <FreqOffsetRow*>& vin, std::vector <FreqOffsetRow*>& vout,
Tag antennaId,
Tag spectralWindowId,
int feedId);
575 void toFile(std::string directory);
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 fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
static const ByteOrder * Machine_Endianity
virtual ~FreqOffsetTable()
void setFromXMLFile(const std::string &directory)
std::string Key(Tag antennaId, Tag spectralWindowId, int feedId)
Returns a string built by concatenating the ascii representation of the parameters values suffixed wi...
The FreqOffsetRow class is a row of a FreqOffsetTable.
The FreqOffsetTable class is an Alma table.
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
static std::string name()
Return the name of this table.
FreqOffsetTable(ASDM &container)
Create a FreqOffsetTable.
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...
A class to represent byte order information.
asdmIDL::FreqOffsetTableIDL * toIDL()
Conversion Methods.
std::map< std::string, TIME_ROWS > context
FreqOffsetRow * insertByStartTime(FreqOffsetRow *x, std::vector< FreqOffsetRow * > &row)
Insert a FreqOffsetRow* in a vector of FreqOffsetRow* so that it's ordered by ascending time...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
The ASDM class is the container for all tables.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
std::vector< FreqOffsetRow * > privateRows
A data structure to store the pointers on the table's rows.
std::vector< FreqOffsetRow * > * getByContext(Tag antennaId, Tag spectralWindowId, int feedId)
Returns all the rows sorted by ascending startTime for a given context.
void checkPresenceInMemory()
void setEntity(Entity e)
Set this table's Entity.
std::string getName() const
Return the name of this table.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
ASDM & getContainer() const
Return the container to which this table belongs.
void fromIDL(asdmIDL::FreqOffsetTableIDL x)
Populate this table from the content of a FreqOffsetTableIDL Corba structure.
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.
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 toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
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...
Entity getEntity() const
Return this table's Entity.
FreqOffsetRow * getRowByKey(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId)
Returns a FreqOffsetRow* given a key.
FreqOffsetRow * checkAndAdd(FreqOffsetRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
bool loadInProgress
Load the table in memory if necessary.
void append(FreqOffsetRow *x)
Brutally append an FreqOffsetRow x to the collection of rows already stored in 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.
std::vector< FreqOffsetRow * > TIME_ROWS
FreqOffsetRow * add(FreqOffsetRow *x)
====> Append a row to its table.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a FreqOffsetTable as those produced by the toF...
const Double e
e and functions thereof:
void getByKeyNoAutoIncNoTime(std::vector< FreqOffsetRow * > &vin, std::vector< FreqOffsetRow * > &vout, Tag antennaId, Tag spectralWindowId, int feedId)
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equ...
FreqOffsetRow * newRow()
====> Row creation.
void addWithoutCheckingUnique(FreqOffsetRow *x)
Brutally append an FreqOffsetRow x to the collection of rows already stored in this table...
std::string getVersion() const
Return the version information about this table.
FreqOffsetRow * lookup(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, Frequency offset)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
The Frequency class implements a quantity of frequency in hertz.
std::string toXML()
Produces an XML representation conform to the schema defined for FreqOffset (FreqOffsetTable.xsd).
The Entity class is an identification of a persistant entity in the ALMA archive. ...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...