34 #ifndef SeeingTable_CLASS
35 #define SeeingTable_CLASS
173 static const std::vector<std::string>&
getKeyName();
190 unsigned int size()
const;
208 static std::string
name() ;
248 std::string
toXML() ;
257 asdmIDL::SeeingTableIDL *
toIDL() ;
266 void toIDL(asdmIDL::SeeingTableIDL& x)
const;
277 void fromIDL(asdmIDL::SeeingTableIDL x) ;
308 SeeingRow *
newRow(
ArrayTimeInterval timeInterval,
int numBaseLength, std::vector<Length > baseLength, std::vector<Angle > phaseRms,
float seeing,
float exponent);
362 std::vector<SeeingRow *>
get() ;
370 const std::vector<SeeingRow *>&
get()
const ;
423 SeeingRow*
lookup(
ArrayTimeInterval timeInterval,
int numBaseLength, std::vector<Length > baseLength, std::vector<Angle > phaseRms,
float seeing,
float exponent);
506 std::vector <SeeingRow *>
row;
568 void toFile(std::string directory);
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
static const ByteOrder * Machine_Endianity
static std::string name()
Return the name of this table.
SeeingTable(ASDM &container)
Create a SeeingTable.
unsigned int size() const
Return the number of rows in the table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
std::vector< SeeingRow * > privateRows
A data structure to store the pointers on the table's rows.
A class to represent byte order information.
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 fromIDL(asdmIDL::SeeingTableIDL x)
Populate this table from the content of a SeeingTableIDL Corba structure.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
The ASDM class is the container for all tables.
std::vector< SeeingRow * > * getByContext()
Returns all the rows sorted by ascending startTime for a given context.
SeeingRow * newRow()
====> Row creation.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
void checkPresenceInMemory()
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...
The SeeingTable class is an Alma table.
std::vector< SeeingRow * > row
std::string getVersion() const
Return the version information about this table.
asdmIDL::SeeingTableIDL * toIDL()
Conversion Methods.
SeeingRow * insertByStartTime(SeeingRow *x, std::vector< SeeingRow * > &row)
Insert a SeeingRow* in a vector of SeeingRow* 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.
The SeeingRow class is a row of a SeeingTable.
std::string toXML()
Produces an XML representation conform to the schema defined for Seeing (SeeingTable.xsd).
Entity getEntity() const
Return this table's Entity.
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...
void append(SeeingRow *x)
Brutally append an SeeingRow x to the collection of rows already stored in this table.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of 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 setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
std::string getName() const
Return the name of this table.
ASDM & getContainer() const
Return the container to which this table belongs.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a SeeingTable as those produced by the toFile ...
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
SeeingRow * lookup(ArrayTimeInterval timeInterval, int numBaseLength, std::vector< Length > baseLength, std::vector< Angle > phaseRms, float seeing, float exponent)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
void setEntity(Entity e)
Set this table's Entity.
void addWithoutCheckingUnique(SeeingRow *x)
Brutally append an SeeingRow x to the collection of rows already stored in this table.
SeeingRow * checkAndAdd(SeeingRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
SeeingRow * getRowByKey(ArrayTimeInterval timeInterval)
Returns a SeeingRow* given a key.
bool loadInProgress
Load the table in memory if necessary.
void setFromXMLFile(const std::string &directory)
The Entity class is an identification of a persistant entity in the ALMA archive. ...
SeeingRow * add(SeeingRow *x)
====> Append a row to its table.