34 #ifndef ReceiverTable_CLASS
35 #define ReceiverTable_CLASS
208 static const std::vector<std::string>&
getKeyName();
225 unsigned int size()
const;
243 static std::string
name() ;
283 std::string
toXML() ;
292 asdmIDL::ReceiverTableIDL *
toIDL() ;
301 void toIDL(asdmIDL::ReceiverTableIDL& x)
const;
312 void fromIDL(asdmIDL::ReceiverTableIDL x) ;
347 ReceiverRow *
newRow(
Tag spectralWindowId,
ArrayTimeInterval timeInterval, std::string
name,
int numLO, ReceiverBandMod::ReceiverBand frequencyBand, std::vector<Frequency > freqLO, ReceiverSidebandMod::ReceiverSideband receiverSideband, std::vector<NetSidebandMod::NetSideband > sidebandLO);
395 std::vector<ReceiverRow *>
get() ;
403 const std::vector<ReceiverRow *>&
get()
const ;
460 ReceiverRow*
lookup(
Tag spectralWindowId,
ArrayTimeInterval timeInterval, std::string
name,
int numLO, ReceiverBandMod::ReceiverBand frequencyBand, std::vector<Frequency > freqLO, ReceiverSidebandMod::ReceiverSideband receiverSideband, std::vector<NetSidebandMod::NetSideband > sidebandLO);
552 std::string
Key(
Tag spectralWindowId) ;
621 void toFile(std::string directory);
std::string toXML()
Produces an XML representation conform to the schema defined for Receiver (ReceiverTable.xsd).
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 setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
static const ByteOrder * Machine_Endianity
The ReceiverRow class is a row of a ReceiverTable.
asdmIDL::ReceiverTableIDL * toIDL()
Conversion Methods.
std::vector< ReceiverRow * > privateRows
A data structure to store the pointers on the table's rows.
void fromIDL(asdmIDL::ReceiverTableIDL x)
Populate this table from the content of a ReceiverTableIDL Corba structure.
ReceiverRow * checkAndAdd(ReceiverRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
void getByKeyNoAutoIncNoTime(std::vector< ReceiverRow * > &vin, std::vector< ReceiverRow * > &vout, Tag spectralWindowId)
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equ...
A class to represent byte order information.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
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).
The ASDM class is the container for all tables.
ReceiverRow * insertByStartTime(ReceiverRow *x, std::vector< ReceiverRow * > &row)
Insert a ReceiverRow* in a vector of ReceiverRow* so that it's ordered by ascending time...
ReceiverRow * getRowByKey(int receiverId, Tag spectralWindowId, ArrayTimeInterval timeInterval)
Returns a ReceiverRow* given a key.
ASDM & getContainer() const
Return the container to which this table belongs.
std::string Key(Tag spectralWindowId)
Returns a string built by concatenating the ascii representation of the parameters values suffixed wi...
std::string getVersion() const
Return the version information about this table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
unsigned int size() const
Return the number of rows in the table.
bool loadInProgress
Load the table in memory if necessary.
ReceiverTable(ASDM &container)
Create a ReceiverTable.
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.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
void setEntity(Entity e)
Set this table's Entity.
std::vector< std::vector< ReceiverRow * > > ID_TIME_ROWS
std::string getName() const
Return the name of this table.
The ReceiverTable class is an Alma table.
Entity getEntity() const
Return 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...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void setFromXMLFile(const std::string &directory)
void checkPresenceInMemory()
std::vector< ReceiverRow * > getRowByReceiverId(int)
Returns a vector of pointers on rows whose key element receiverId is equal to the parameter receiverI...
void append(ReceiverRow *x)
Brutally append an ReceiverRow x to the collection of rows already stored in this table...
ReceiverRow * lookup(Tag spectralWindowId, ArrayTimeInterval timeInterval, std::string name, int numLO, ReceiverBandMod::ReceiverBand frequencyBand, std::vector< Frequency > freqLO, ReceiverSidebandMod::ReceiverSideband receiverSideband, std::vector< NetSidebandMod::NetSideband > sidebandLO)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
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:
void addWithoutCheckingUnique(ReceiverRow *x)
Brutally append an ReceiverRow x to the collection of rows already stored in this 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...
ReceiverRow * newRow()
====> Row creation.
std::map< std::string, ID_TIME_ROWS > context
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a ReceiverTable as those produced by the toFil...
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
ReceiverRow * add(ReceiverRow *x)
====> Append a row to its table.
static std::string name()
Return the name of this table.
The Entity class is an identification of a persistant entity in the ALMA archive. ...