34 #ifndef GainTrackingTable_CLASS
35 #define GainTrackingTable_CLASS
99 class GainTrackingRow;
223 static const std::vector<std::string>&
getKeyName();
240 unsigned int size()
const;
258 static std::string
name() ;
298 std::string
toXML() ;
307 asdmIDL::GainTrackingTableIDL *
toIDL() ;
316 void toIDL(asdmIDL::GainTrackingTableIDL& x)
const;
327 void fromIDL(asdmIDL::GainTrackingTableIDL x) ;
360 GainTrackingRow *
newRow(
Tag antennaId,
Tag spectralWindowId,
ArrayTimeInterval timeInterval,
int feedId,
int numReceptor, std::vector<float > attenuator, std::vector<PolarizationTypeMod::PolarizationType > polarizationType);
414 std::vector<GainTrackingRow *>
get() ;
422 const std::vector<GainTrackingRow *>&
get()
const ;
435 std::vector <GainTrackingRow*> *
getByContext(
Tag antennaId,
Tag spectralWindowId,
int feedId);
483 GainTrackingRow*
lookup(
Tag antennaId,
Tag spectralWindowId,
ArrayTimeInterval timeInterval,
int feedId,
int numReceptor, std::vector<float > attenuator, std::vector<PolarizationTypeMod::PolarizationType > polarizationType);
573 std::string
Key(
Tag antennaId,
Tag spectralWindowId,
int feedId) ;
583 void getByKeyNoAutoIncNoTime(std::vector <GainTrackingRow*>& vin, std::vector <GainTrackingRow*>& vout,
Tag antennaId,
Tag spectralWindowId,
int feedId);
642 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
GainTrackingRow * lookup(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numReceptor, std::vector< float > attenuator, std::vector< PolarizationTypeMod::PolarizationType > polarizationType)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
void checkPresenceInMemory()
std::string getName() const
Return the name of this table.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
void append(GainTrackingRow *x)
Brutally append an GainTrackingRow x to the collection of rows already stored in this table...
void setFromXMLFile(const std::string &directory)
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
GainTrackingTable(ASDM &container)
Create a GainTrackingTable.
GainTrackingRow * add(GainTrackingRow *x)
====> Append a row to its table.
A class to represent byte order information.
The GainTrackingRow class is a row of a GainTrackingTable.
static std::string name()
Return the name of this table.
std::vector< GainTrackingRow * > privateRows
A data structure to store the pointers on the table's rows.
GainTrackingRow * checkAndAdd(GainTrackingRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The ASDM class is the container for all tables.
std::map< std::string, TIME_ROWS > context
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
std::vector< GainTrackingRow * > * getByContext(Tag antennaId, Tag spectralWindowId, int feedId)
Returns all the rows sorted by ascending startTime for a given context.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
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...
bool loadInProgress
Load the table in memory if necessary.
std::string getVersion() const
Return the version information about this table.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
GainTrackingRow * getRowByKey(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId)
Returns a GainTrackingRow* given a key.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a GainTrackingTable as those produced by the t...
void fromIDL(asdmIDL::GainTrackingTableIDL x)
Populate this table from the content of a GainTrackingTableIDL Corba structure.
GainTrackingRow * insertByStartTime(GainTrackingRow *x, std::vector< GainTrackingRow * > &row)
Insert a GainTrackingRow* in a vector of GainTrackingRow* so that it's ordered by ascending time...
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.
std::vector< GainTrackingRow * > TIME_ROWS
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void getByKeyNoAutoIncNoTime(std::vector< GainTrackingRow * > &vin, std::vector< GainTrackingRow * > &vout, Tag antennaId, Tag spectralWindowId, int feedId)
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equ...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
std::string toXML()
Produces an XML representation conform to the schema defined for GainTracking (GainTrackingTable.xsd).
asdmIDL::GainTrackingTableIDL * toIDL()
Conversion Methods.
The GainTrackingTable class is an Alma table.
GainTrackingRow * newRow()
====> Row creation.
std::string Key(Tag antennaId, Tag spectralWindowId, int feedId)
Returns a string built by concatenating the ascii representation of the parameters values suffixed wi...
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:
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 setEntity(Entity e)
Set this table's Entity.
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...
unsigned int size() const
Return the number of rows in the table.
Entity getEntity() const
Return this table's Entity.
void addWithoutCheckingUnique(GainTrackingRow *x)
Brutally append an GainTrackingRow x to the collection of rows already stored in this table...
ASDM & getContainer() const
Return the container to which this table belongs.
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...
virtual ~GainTrackingTable()
The Entity class is an identification of a persistant entity in the ALMA archive. ...