34 #ifndef TotalPowerTable_CLASS
35 #define TotalPowerTable_CLASS
266 static const std::vector<std::string>&
getKeyName();
283 unsigned int size()
const;
301 static std::string
name() ;
341 std::string
toXML() ;
350 asdmIDL::TotalPowerTableIDL *
toIDL() ;
359 void toIDL(asdmIDL::TotalPowerTableIDL& x)
const;
370 void fromIDL(asdmIDL::TotalPowerTableIDL x) ;
419 TotalPowerRow *
newRow(
ArrayTime time,
Tag configDescriptionId,
Tag fieldId,
int scanNumber,
int subscanNumber,
int integrationNumber, std::vector<std::vector<Length > > uvw, std::vector<std::vector<Interval > > exposure, std::vector<std::vector<ArrayTime > > timeCentroid, std::vector<std::vector<std::vector<float > > > floatData, std::vector<int > flagAnt, std::vector<std::vector<int > > flagPol,
Interval interval, std::vector<Tag> stateId,
Tag execBlockId);
473 std::vector<TotalPowerRow *>
get() ;
481 const std::vector<TotalPowerRow *>&
get()
const ;
556 TotalPowerRow*
lookup(
ArrayTime time,
Tag configDescriptionId,
Tag fieldId,
int scanNumber,
int subscanNumber,
int integrationNumber, std::vector<std::vector<Length > > uvw, std::vector<std::vector<Interval > > exposure, std::vector<std::vector<ArrayTime > > timeCentroid, std::vector<std::vector<std::vector<float > > > floatData, std::vector<int > flagAnt, std::vector<std::vector<int > > flagPol,
Interval interval, std::vector<Tag> stateId,
Tag execBlockId);
646 std::string
Key(
Tag configDescriptionId,
Tag fieldId) ;
715 void toFile(std::string directory);
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a TotalPowerTable as those produced by the toF...
bool loadInProgress
Load the table in memory if necessary.
Entity getEntity() const
Return this table's Entity.
static const ByteOrder * Machine_Endianity
The Interval class implements an interval of time in units of nanoseconds.
TotalPowerTable(ASDM &container)
Create a TotalPowerTable.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
TotalPowerRow * lookup(ArrayTime time, Tag configDescriptionId, Tag fieldId, int scanNumber, int subscanNumber, int integrationNumber, std::vector< std::vector< Length > > uvw, std::vector< std::vector< Interval > > exposure, std::vector< std::vector< ArrayTime > > timeCentroid, std::vector< std::vector< std::vector< float > > > floatData, std::vector< int > flagAnt, std::vector< std::vector< int > > flagPol, Interval interval, std::vector< Tag > stateId, Tag execBlockId)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
TotalPowerRow * add(TotalPowerRow *x)
====> Append a row to its table.
A class to represent byte order information.
std::string Key(Tag configDescriptionId, Tag fieldId)
Returns a string built by concatenating the ascii representation of the parameters values suffixed wi...
ABSTRACT TOOL CLASSES A PlotTool is a higher level event handler for a PlotCanvas The idea is to take common tasks which may require multiple events and put them in one place PlotTools also provide additional functionality in that they can be active and blocking non blocking The PlotCanvas will only send events to active and will not send events to later tools or event handlers if the latest tool was blocking In this way a single tool can be used to handle ALL user interaction via the GUI at one time
The ASDM class is the container for all tables.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
virtual ~TotalPowerTable()
TotalPowerRow * newRow()
====> Row creation.
TotalPowerRow * insertByTime(TotalPowerRow *x, std::vector< TotalPowerRow * > &row)
Insert a TotalPowerRow* in a vector of TotalPowerRow* so that it's ordered by ascending time...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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::TotalPowerTableIDL x)
Populate this table from the content of a TotalPowerTableIDL Corba structure.
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 addWithoutCheckingUnique(TotalPowerRow *x)
Brutally append an TotalPowerRow x to the collection of rows already stored in this table...
void checkPresenceInMemory()
static std::string name()
Return the name of this table.
std::map< std::string, TIME_ROWS > context
TotalPowerRow * checkAndAdd(TotalPowerRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
asdmIDL::TotalPowerTableIDL * toIDL()
Conversion Methods.
TotalPowerRow * getRowByKey(ArrayTime time, Tag configDescriptionId, Tag fieldId)
Returns a TotalPowerRow* given a key.
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 ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void getByKeyNoAutoIncNoTime(std::vector< TotalPowerRow * > &vin, std::vector< TotalPowerRow * > &vout, Tag configDescriptionId, Tag fieldId)
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equ...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
void setEntity(Entity e)
Set this table's Entity.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
std::string getVersion() const
Return the version information about this table.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
std::string getName() const
Return the name of this table.
void setFromXMLFile(const std::string &directory)
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.
The TotalPowerRow class is a row of a TotalPowerTable.
const Double e
e and functions thereof:
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void append(TotalPowerRow *x)
Brutally append an TotalPowerRow x to the collection of rows already stored in this table...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
The TotalPowerTable class is an Alma table.
std::vector< TotalPowerRow * > 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 TotalPower (TotalPowerTable.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...
std::vector< TotalPowerRow * > * getByContext(Tag configDescriptionId, Tag fieldId)
Returns all the rows sorted by ascending startTime for a given context.
std::vector< TotalPowerRow * > TIME_ROWS
unsigned int size() const
Return the number of rows in the 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...
ASDM & getContainer() const
Return the container to which this table belongs.
The Entity class is an identification of a persistant entity in the ALMA archive. ...