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