34 #ifndef CalSeeingTable_CLASS
35 #define CalSeeingTable_CLASS
108 #include <asdmIDLC.h>
271 static const std::vector<std::string>&
getKeyName();
288 unsigned int size()
const;
306 static std::string
name() ;
346 std::string
toXML() ;
355 asdmIDL::CalSeeingTableIDL *
toIDL() ;
364 void toIDL(asdmIDL::CalSeeingTableIDL& x)
const;
375 void fromIDL(asdmIDL::CalSeeingTableIDL x) ;
418 CalSeeingRow *
newRow(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Frequency > frequencyRange,
Interval integrationTime,
int numBaseLengths, std::vector<Length > baselineLengths, std::vector<Angle > phaseRMS,
Angle seeing,
Angle seeingError);
468 std::vector<CalSeeingRow *>
get() ;
476 const std::vector<CalSeeingRow *>&
get()
const ;
532 CalSeeingRow*
lookup(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Frequency > frequencyRange,
Interval integrationTime,
int numBaseLengths, std::vector<Length > baselineLengths, std::vector<Angle > phaseRMS,
Angle seeing,
Angle seeingError);
598 std::vector<CalSeeingRow *>
row;
656 void toFile(std::string directory);
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
unsigned int size() const
Return the number of rows in the table.
static const ByteOrder * Machine_Endianity
The Interval class implements an interval of time in units of nanoseconds.
static std::string name()
Return the name of this table.
CalSeeingRow * lookup(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Frequency > frequencyRange, Interval integrationTime, int numBaseLengths, std::vector< Length > baselineLengths, std::vector< Angle > phaseRMS, Angle seeing, Angle seeingError)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
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 getName() const
Return the name of this table.
A class to represent byte order information.
void fromIDL(asdmIDL::CalSeeingTableIDL x)
Populate this table from the content of a CalSeeingTableIDL Corba structure.
std::string toXML()
Produces an XML representation conform to the schema defined for CalSeeing (CalSeeingTable.xsd).
ASDM & getContainer() const
Return the container to which this table belongs.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
CalSeeingRow * checkAndAdd(CalSeeingRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The ASDM class is the container for all tables.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
bool loadInProgress
Load the table in memory if necessary.
void append(CalSeeingRow *x)
Brutally append an CalSeeingRow x to the collection of rows already stored in this table...
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 Angle class implements a quantity of angle in radians.
std::vector< CalSeeingRow * > privateRows
A data structure to store the pointers on the table's rows.
CalSeeingTable(ASDM &container)
Create a CalSeeingTable.
std::vector< CalSeeingRow * > row
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The CalSeeingRow class is a row of a CalSeeingTable.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
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...
CalSeeingRow * add(CalSeeingRow *x)
====> Append a row to its table.
asdmIDL::CalSeeingTableIDL * toIDL()
Conversion Methods.
std::string getVersion() const
Return the version information about this table.
virtual ~CalSeeingTable()
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void addWithoutCheckingUnique(CalSeeingRow *x)
Brutally append an CalSeeingRow x to the collection of rows already stored in this table...
void checkPresenceInMemory()
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 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 setFromXMLFile(const std::string &directory)
CalSeeingRow * newRow()
====> Row creation.
void setEntity(Entity e)
Set 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...
CalSeeingRow * getRowByKey(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId)
Returns a CalSeeingRow* given a key.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
Entity getEntity() const
Return this table's Entity.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalSeeingTable as those produced by the toFi...
The CalSeeingTable class is an Alma table.
The Entity class is an identification of a persistant entity in the ALMA archive. ...