34 #ifndef ExecBlockTable_CLASS
35 #define ExecBlockTable_CLASS
128 #include <asdmIDLC.h>
385 static const std::vector<std::string>&
getKeyName();
402 unsigned int size()
const;
420 static std::string
name() ;
460 std::string
toXML() ;
469 asdmIDL::ExecBlockTableIDL *
toIDL() ;
478 void toIDL(asdmIDL::ExecBlockTableIDL& x)
const;
489 void fromIDL(asdmIDL::ExecBlockTableIDL x) ;
548 ExecBlockRow *
newRow(
ArrayTime startTime,
ArrayTime endTime,
int execBlockNum,
EntityRef execBlockUID,
EntityRef projectUID, std::string configName, std::string telescopeName, std::string observerName,
int numObservingLog, std::vector<std::string > observingLog,
EntityRef sessionReference,
Length baseRangeMin,
Length baseRangeMax,
Length baseRmsMinor,
Length baseRmsMajor,
Angle basePa,
bool aborted,
int numAntenna, std::vector<Tag> antennaId,
Tag sBSummaryId);
595 std::vector<ExecBlockRow *>
get() ;
603 const std::vector<ExecBlockRow *>&
get()
const ;
671 ExecBlockRow*
lookup(
ArrayTime startTime,
ArrayTime endTime,
int execBlockNum,
EntityRef execBlockUID,
EntityRef projectUID, std::string configName, std::string telescopeName, std::string observerName,
int numObservingLog, std::vector<std::string > observingLog,
EntityRef sessionReference,
Length baseRangeMin,
Length baseRangeMax,
Length baseRmsMinor,
Length baseRmsMajor,
Angle basePa,
bool aborted,
int numAntenna, std::vector<Tag> antennaId,
Tag sBSummaryId);
743 std::vector<ExecBlockRow *>
row;
801 void toFile(std::string directory);
std::string getVersion() const
Return the version information about this table.
static const ByteOrder * Machine_Endianity
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
void setEntity(Entity e)
Set this table's Entity.
void setFromXMLFile(const std::string &directory)
void autoIncrement(std::string key, ExecBlockRow *x)
A class to represent byte order information.
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.
std::vector< ExecBlockRow * > privateRows
A data structure to store the pointers on the table's rows.
The ExecBlockTable class is an Alma table.
The ExecBlockRow class is a row of a ExecBlockTable.
ExecBlockTable(ASDM &container)
Create a ExecBlockTable.
void checkPresenceInMemory()
The Angle class implements a quantity of angle in radians.
void fromIDL(asdmIDL::ExecBlockTableIDL x)
Populate this table from the content of a ExecBlockTableIDL Corba structure.
The EntityRef class is an identification of a persistant entity in the ALMA archive.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
ExecBlockRow * add(ExecBlockRow *x)
====> Append a row to its 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...
std::string toXML()
Produces an XML representation conform to the schema defined for ExecBlock (ExecBlockTable.xsd).
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.
ExecBlockRow * newRow()
====> Row creation.
void addWithoutCheckingUnique(ExecBlockRow *x)
Brutally append an ExecBlockRow x to the collection of rows already stored in this table...
bool loadInProgress
Load the table in memory if necessary.
void append(ExecBlockRow *x)
Brutally append an ExecBlockRow x to the collection of rows already stored in this table...
virtual ~ExecBlockTable()
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< ExecBlockRow * > row
The Length class implements a quantity of length in meters.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
ExecBlockRow * checkAndAdd(ExecBlockRow *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...
asdmIDL::ExecBlockTableIDL * toIDL()
Conversion Methods.
ExecBlockRow * lookup(ArrayTime startTime, ArrayTime endTime, int execBlockNum, EntityRef execBlockUID, EntityRef projectUID, std::string configName, std::string telescopeName, std::string observerName, int numObservingLog, std::vector< std::string > observingLog, EntityRef sessionReference, Length baseRangeMin, Length baseRangeMax, Length baseRmsMinor, Length baseRmsMajor, Angle basePa, bool aborted, int numAntenna, std::vector< Tag > antennaId, Tag sBSummaryId)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
static std::string name()
Return the name of this table.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
A pure virtual class whose derived classes are expected to be functors whose behaviours will be to re...
unsigned int size() const
Return the number of rows in the table.
The Representable interface is implemented by all tables and by the container.
const Double e
e and functions thereof:
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a ExecBlockTable as those produced by the toFi...
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
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 setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
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...
std::string getName() const
Return the name of this table.
Entity getEntity() const
Return this table's Entity.
ExecBlockRow * getRowByKey(Tag execBlockId)
Returns a ExecBlockRow* given a key.
The Entity class is an identification of a persistant entity in the ALMA archive. ...