#include <SeeingTable.h>
Inherits asdm::Representable.
Generated from model's revision "1.41", branch "HEAD"
Name | Type | Comment
|
---|---|---|
Key
| ||
timeInterval | ArrayTimeInterval |
|
Value (Mandarory)
| ||
numBaseLength | int |
|
baseLength | vector<Length > | numBaseLength
|
phaseRms | vector<Angle > | numBaseLength
|
seeing | float |
|
exponent | float |
|
Public Member Functions | |
ASDM & | getContainer () const |
unsigned int | size () |
string | getName () const |
Entity | getEntity () const |
void | setEntity (Entity e) |
SeeingRow * | newRow () |
SeeingRow * | newRowEmpty () |
SeeingRow * | newRow (ArrayTimeInterval timeInterval, int numBaseLength, vector< Length > baseLength, vector< Angle > phaseRms, float seeing, float exponent) |
SeeingRow * | newRowFull (ArrayTimeInterval timeInterval, int numBaseLength, vector< Length > baseLength, vector< Angle > phaseRms, float seeing, float exponent) |
SeeingRow * | newRow (SeeingRow *row) |
SeeingRow * | newRowCopy (SeeingRow *row) |
SeeingRow * | add (SeeingRow *x) |
vector< SeeingRow * > | get () |
vector< SeeingRow * > * | getByContext () |
SeeingRow * | SeeingTable::getRowByKey (ArrayTimeInterval timeInterval) |
SeeingRow * | lookup (ArrayTimeInterval timeInterval, int numBaseLength, vector< Length > baseLength, vector< Angle > phaseRms, float seeing, float exponent) |
SeeingTableIDL * | toIDL () |
void | fromIDL (SeeingTableIDL x) throw (DuplicateKey,ConversionException) |
char * | toFITS () const throw (ConversionException) |
void | fromFITS (char *fits) throw (ConversionException) |
string | toVOTable () const throw (ConversionException) |
void | fromVOTable (string vo) throw (ConversionException) |
string | toXML () throw (ConversionException) |
void | fromXML (string xmlDoc) throw (ConversionException) |
string | toMIME () |
void | setFromMIME (const string &mimeMsg) |
void | toFile (string directory) |
void | setFromFile (const string &directory) |
Static Public Member Functions | |
static vector< string > | getKeyName () |
Friends | |
class | asdm::ASDM |
static vector<string> asdm::SeeingTable::getKeyName | ( | ) | [static] |
Return the list of field names that make up key key as an array of strings.
ASDM& asdm::SeeingTable::getContainer | ( | ) | const |
unsigned int asdm::SeeingTable::size | ( | ) | [virtual] |
Return the number of rows in the table.
Implements asdm::Representable.
string asdm::SeeingTable::getName | ( | ) | const [virtual] |
Return the name of this table.
Implements asdm::Representable.
Entity asdm::SeeingTable::getEntity | ( | ) | const [virtual] |
Return this table's Entity.
Implements asdm::Representable.
void asdm::SeeingTable::setEntity | ( | Entity | e | ) | [virtual] |
SeeingRow* asdm::SeeingTable::newRow | ( | ) |
Create a new row with default values.
SeeingRow* asdm::SeeingTable::newRowEmpty | ( | ) |
Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.
SeeingRow* asdm::SeeingTable::newRow | ( | ArrayTimeInterval | timeInterval, | |
int | numBaseLength, | |||
vector< Length > | baseLength, | |||
vector< Angle > | phaseRms, | |||
float | seeing, | |||
float | exponent | |||
) |
Create a new row initialized to the specified values.
timeInterval. | ||
numBaseLength. | ||
baseLength. | ||
phaseRms. | ||
seeing. | ||
exponent. |
SeeingRow* asdm::SeeingTable::newRowFull | ( | ArrayTimeInterval | timeInterval, | |
int | numBaseLength, | |||
vector< Length > | baseLength, | |||
vector< Angle > | phaseRms, | |||
float | seeing, | |||
float | exponent | |||
) |
Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.
Create a new row using a copy constructor mechanism.
The method creates a new SeeingRow owned by this. Each attribute of the created row is a (deep) copy of the corresponding attribute of row. The method does not add the created row to this, its simply parents it to this, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a new SeeingRow with default values for its attributes.
row | the row which is to be copied. |
Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.
Add a row.
x | a pointer to the SeeingRow to be added. |
DuplicateKey | { thrown when the table contains a SeeingRow with a key equal to the x one but having and a value section different from x one } |
vector<SeeingRow *> asdm::SeeingTable::get | ( | ) |
Get all rows.
vector<SeeingRow*>* asdm::SeeingTable::getByContext | ( | ) |
Returns all the rows sorted by ascending startTime for a given context. The context is defined by a value of ( ).
SeeingRow* asdm::SeeingTable::SeeingTable::getRowByKey | ( | ArrayTimeInterval | timeInterval | ) |
Returns a SeeingRow* given a key.
timeInterval. |
SeeingRow* asdm::SeeingTable::lookup | ( | ArrayTimeInterval | timeInterval, | |
int | numBaseLength, | |||
vector< Length > | baseLength, | |||
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 method.
timeInterval. | ||
numBaseLength. | ||
baseLength. | ||
phaseRms. | ||
seeing. | ||
exponent. |
SeeingTableIDL* asdm::SeeingTable::toIDL | ( | ) |
Convert this table into a SeeingTableIDL CORBA structure.
void asdm::SeeingTable::fromIDL | ( | SeeingTableIDL | x | ) | throw (DuplicateKey,ConversionException) |
Populate this table from the content of a SeeingTableIDL Corba structure.
DuplicateKey | Thrown if the method tries to add a row having a key that is already in the table. | |
ConversionException |
char* asdm::SeeingTable::toFITS | ( | ) | const throw (ConversionException) [virtual] |
To be implemented
Implements asdm::Representable.
void asdm::SeeingTable::fromFITS | ( | char * | fits | ) | throw (ConversionException) [virtual] |
To be implemented
Implements asdm::Representable.
string asdm::SeeingTable::toVOTable | ( | ) | const throw (ConversionException) [virtual] |
To be implemented
Implements asdm::Representable.
void asdm::SeeingTable::fromVOTable | ( | string | vo | ) | throw (ConversionException) [virtual] |
To be implemented
Implements asdm::Representable.
string asdm::SeeingTable::toXML | ( | ) | throw (ConversionException) [virtual] |
Translate this table to an XML representation conform to the schema defined for Seeing (SeeingTable.xsd).
Implements asdm::Representable.
void asdm::SeeingTable::fromXML | ( | string | xmlDoc | ) | throw (ConversionException) [virtual] |
Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a Seeing (SeeingTable.xsd).
Implements asdm::Representable.
string asdm::SeeingTable::toMIME | ( | ) |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
void asdm::SeeingTable::setFromMIME | ( | const string & | mimeMsg | ) |
Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.
mimeMsg | the string containing the MIME message. |
ConversionException |
void asdm::SeeingTable::toFile | ( | string | directory | ) |
Stores a representation (binary or XML) of this table into a file.
Depending on the boolean value of its private field fileAsBin a binary serialization of this (fileAsBin==true) will be saved in a file "Seeing.bin" or an XML representation (fileAsBin==false) will be saved in a file "Seeing.xml". The file is always written in a directory whose name is passed as a parameter.
directory | The name of directory where the file containing the table's representation will be saved. |
void asdm::SeeingTable::setFromFile | ( | const string & | directory | ) |
Reads and parses a file containing a representation of a SeeingTable as those produced by the toFile method. This table is populated with the result of the parsing.
directory | The name of the directory containing the file te be read and parsed. |
ConversionException | If any error occurs while reading the files in the directory or parsing them. |