34 #ifndef SubscanTable_CLASS
35 #define SubscanTable_CLASS
225 static const std::vector<std::string>&
getKeyName();
242 unsigned int size()
const;
260 static std::string
name() ;
300 std::string
toXML() ;
309 asdmIDL::SubscanTableIDL *
toIDL() ;
318 void toIDL(asdmIDL::SubscanTableIDL& x)
const;
329 void fromIDL(asdmIDL::SubscanTableIDL x) ;
366 SubscanRow *
newRow(
Tag execBlockId,
int scanNumber,
int subscanNumber,
ArrayTime startTime,
ArrayTime endTime, std::string fieldName, SubscanIntentMod::SubscanIntent subscanIntent,
int numIntegration, std::vector<int > numSubintegration);
416 std::vector<SubscanRow *>
get() ;
424 const std::vector<SubscanRow *>&
get()
const ;
474 SubscanRow*
lookup(
Tag execBlockId,
int scanNumber,
int subscanNumber,
ArrayTime startTime,
ArrayTime endTime, std::string fieldName, SubscanIntentMod::SubscanIntent subscanIntent,
int numIntegration, std::vector<int > numSubintegration);
540 std::vector<SubscanRow *>
row;
598 void toFile(std::string directory);
unsigned int size() const
Return the number of rows in the table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
static const ByteOrder * Machine_Endianity
SubscanRow * checkAndAdd(SubscanRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void fromIDL(asdmIDL::SubscanTableIDL x)
Populate this table from the content of a SubscanTableIDL Corba structure.
SubscanRow * getRowByKey(Tag execBlockId, int scanNumber, int subscanNumber)
Returns a SubscanRow* given a key.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a SubscanTable as those produced by the toFile...
std::vector< SubscanRow * > privateRows
A data structure to store the pointers on the table's rows.
void addWithoutCheckingUnique(SubscanRow *x)
Brutally append an SubscanRow x to the collection of rows already stored in this table.
A class to represent byte order information.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
The SubscanRow class is a row of a SubscanTable.
The ASDM class is the container for all tables.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
void checkPresenceInMemory()
SubscanTable(ASDM &container)
Create a SubscanTable.
void setFromXMLFile(const std::string &directory)
ASDM & getContainer() const
Return the container to which this table belongs.
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
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< SubscanRow * > row
static std::string name()
Return the name of this table.
SubscanRow * newRow()
====> Row creation.
asdmIDL::SubscanTableIDL * toIDL()
Conversion Methods.
bool loadInProgress
Load the table in memory if necessary.
SubscanRow * lookup(Tag execBlockId, int scanNumber, int subscanNumber, ArrayTime startTime, ArrayTime endTime, std::string fieldName, SubscanIntentMod::SubscanIntent subscanIntent, int numIntegration, std::vector< int > numSubintegration)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
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 Subscan (SubscanTable.xsd).
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
void append(SubscanRow *x)
Brutally append an SubscanRow x to the collection of rows already stored in this table.
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 setFromMIMEFile(const std::string &directory)
Private methods involved during the build of this table out of the content of file(s) containing an e...
Entity getEntity() const
Return this table's Entity.
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...
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 SubscanTable class is an Alma table.
std::string getVersion() const
Return the version information about this table.
SubscanRow * add(SubscanRow *x)
====> Append a row to its 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.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void setEntity(Entity e)
Set this table's Entity.