#include <AntennaTable.h>
Inheritance diagram for asdm::AntennaTable:


Generated from model's revision "1.46", branch "ALMA-5_1_1-B"
| Name | Type | Comment
|
|---|---|---|
| Key
| ||
| antennaId | Tag |
|
| Value (Mandarory)
| ||
| stationId | Tag |
|
| name | string |
|
| antennaMake | AntennaMakeMod::AntennaMake |
|
| antennaType | AntennaTypeMod::AntennaType |
|
| xPosition | Length |
|
| yPosition | Length |
|
| zPosition | Length |
|
| time | ArrayTime |
|
| xOffset | Length |
|
| yOffset | Length |
|
| zOffset | Length |
|
| dishDiameter | Length |
|
| flagRow | bool |
|
| Value (Optional)
| ||
| assocAntennaId | Tag |
|
Definition at line 261 of file AntennaTable.h.
Public Member Functions | |
| virtual | ~AntennaTable () |
| ASDM & | getContainer () const |
| Return the container to which this table belongs. | |
| unsigned int | size () |
| Return the number of rows in the table. | |
| string | getName () const |
| Return the name of this table. | |
| Entity | getEntity () const |
| Return this table's Entity. | |
| void | setEntity (Entity e) |
| Set this table's Entity. | |
| AntennaRow * | newRow () |
| Create a new row with default values. | |
| AntennaRow * | newRowEmpty () |
| Has the same definition than the newRow method with the same signature. | |
| AntennaRow * | newRow (Tag stationId, string name, AntennaMakeMod::AntennaMake antennaMake, AntennaTypeMod::AntennaType antennaType, Length xPosition, Length yPosition, Length zPosition, ArrayTime time, Length xOffset, Length yOffset, Length zOffset, Length dishDiameter, bool flagRow) |
| Create a new row initialized to the specified values. | |
| AntennaRow * | newRowFull (Tag stationId, string name, AntennaMakeMod::AntennaMake antennaMake, AntennaTypeMod::AntennaType antennaType, Length xPosition, Length yPosition, Length zPosition, ArrayTime time, Length xOffset, Length yOffset, Length zOffset, Length dishDiameter, bool flagRow) |
| Has the same definition than the newRow method with the same signature. | |
| AntennaRow * | newRow (AntennaRow *row) |
| Create a new row using a copy constructor mechanism. | |
| AntennaRow * | newRowCopy (AntennaRow *row) |
| Has the same definition than the newRow method with the same signature. | |
| AntennaRow * | add (AntennaRow *x) |
| Add a row. | |
| vector< AntennaRow * > | get () |
| Get all rows. | |
| AntennaRow * | getRowByKey (Tag antennaId) |
| Returns a AntennaRow* given a key. | |
| AntennaRow * | lookup (Tag stationId, string name, AntennaMakeMod::AntennaMake antennaMake, AntennaTypeMod::AntennaType antennaType, Length xPosition, Length yPosition, Length zPosition, ArrayTime time, Length xOffset, Length yOffset, Length zOffset, Length dishDiameter, bool flagRow) |
| Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method. | |
| AntennaTableIDL * | toIDL () |
| Convert this table into a AntennaTableIDL CORBA structure. | |
| void | fromIDL (AntennaTableIDL x) throw (DuplicateKey,ConversionException) |
| Populate this table from the content of a AntennaTableIDL Corba structure. | |
| char * | toFITS () const throw (ConversionException) |
| To be implemented. | |
| void | fromFITS (char *fits) throw (ConversionException) |
| To be implemented. | |
| string | toVOTable () const throw (ConversionException) |
| To be implemented. | |
| void | fromVOTable (string vo) throw (ConversionException) |
| To be implemented. | |
| string | toXML () throw (ConversionException) |
| Translate this table to an XML representation conform to the schema defined for Antenna (AntennaTable.xsd). | |
| void | fromXML (string xmlDoc) throw (ConversionException) |
| Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a Antenna (AntennaTable.xsd). | |
| string | toMIME () |
| Serialize this into a stream of bytes and encapsulates that stream into a MIME message. | |
| void | 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. | |
| void | toFile (string directory) |
| Stores a representation (binary or XML) of this table into a file. | |
| void | setFromFile (const string &directory) |
| Reads and parses a file containing a representation of a AntennaTable as those produced by the toFile method. | |
Static Public Member Functions | |
| static vector< string > | getKeyName () |
| Return the list of field names that make up key key as an array of strings. | |
Private Member Functions | |
| AntennaTable (ASDM &container) | |
| Create a AntennaTable. | |
| void | autoIncrement (string key, AntennaRow *x) |
| AntennaRow * | checkAndAdd (AntennaRow *x) throw (DuplicateKey, UniquenessViolationException) |
| If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and throw exception if not. | |
| void | error () throw (ConversionException) |
Private Attributes | |
| ASDM & | container |
| bool | archiveAsBin |
| bool | fileAsBin |
| Entity | entity |
| map< string, int > | noAutoIncIds |
| A map for the autoincrementation algorithm. | |
| vector< AntennaRow * > | privateRows |
| A data structure to store the pointers on the table's rows. | |
| vector< AntennaRow * > | row |
Static Private Attributes | |
| static string | tableName |
| The name of this table. | |
| static vector< string > | key |
| The list of field names that make up key key. | |
Friends | |
| class | asdm::ASDM |
| virtual asdm::AntennaTable::~AntennaTable | ( | ) | [virtual] |
| asdm::AntennaTable::AntennaTable | ( | ASDM & | container | ) | [private] |
Create a AntennaTable.
This constructor is private because only the container can create tables. All tables must know the container to which they belong.
| container | The container to which this table belongs. |
| static vector<string> asdm::AntennaTable::getKeyName | ( | ) | [static] |
Return the list of field names that make up key key as an array of strings.
| ASDM& asdm::AntennaTable::getContainer | ( | ) | const |
| unsigned int asdm::AntennaTable::size | ( | ) | [virtual] |
Return the number of rows in the table.
Implements asdm::Representable.
| string asdm::AntennaTable::getName | ( | ) | const [virtual] |
Return the name of this table.
Implements asdm::Representable.
| Entity asdm::AntennaTable::getEntity | ( | ) | const [virtual] |
| void asdm::AntennaTable::setEntity | ( | Entity | e | ) | [virtual] |
| AntennaRow* asdm::AntennaTable::newRow | ( | ) |
| AntennaRow* asdm::AntennaTable::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.
| AntennaRow* asdm::AntennaTable::newRow | ( | Tag | stationId, | |
| string | name, | |||
| AntennaMakeMod::AntennaMake | antennaMake, | |||
| AntennaTypeMod::AntennaType | antennaType, | |||
| Length | xPosition, | |||
| Length | yPosition, | |||
| Length | zPosition, | |||
| ArrayTime | time, | |||
| Length | xOffset, | |||
| Length | yOffset, | |||
| Length | zOffset, | |||
| Length | dishDiameter, | |||
| bool | flagRow | |||
| ) |
Create a new row initialized to the specified values.
| stationId. | ||
| name. | ||
| antennaMake. | ||
| antennaType. | ||
| xPosition. | ||
| yPosition. | ||
| zPosition. | ||
| time. | ||
| xOffset. | ||
| yOffset. | ||
| zOffset. | ||
| dishDiameter. | ||
| flagRow. |
| AntennaRow* asdm::AntennaTable::newRowFull | ( | Tag | stationId, | |
| string | name, | |||
| AntennaMakeMod::AntennaMake | antennaMake, | |||
| AntennaTypeMod::AntennaType | antennaType, | |||
| Length | xPosition, | |||
| Length | yPosition, | |||
| Length | zPosition, | |||
| ArrayTime | time, | |||
| Length | xOffset, | |||
| Length | yOffset, | |||
| Length | zOffset, | |||
| Length | dishDiameter, | |||
| bool | flagRow | |||
| ) |
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.
| AntennaRow* asdm::AntennaTable::newRow | ( | AntennaRow * | row | ) |
Create a new row using a copy constructor mechanism.
The method creates a new AntennaRow 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 AntennaRow with default values for its attributes.
| row | the row which is to be copied. |
| AntennaRow* asdm::AntennaTable::newRowCopy | ( | AntennaRow * | row | ) |
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.
| AntennaRow* asdm::AntennaTable::add | ( | AntennaRow * | x | ) |
Add a row.
If there table contains a row whose key's fields are equal to x's ones then return a pointer on this row (i.e. no actual insertion is performed) otherwise add x to the table and return x.
| x. | A pointer on the row to be added. |
| vector<AntennaRow *> asdm::AntennaTable::get | ( | ) |
Get all rows.
| AntennaRow* asdm::AntennaTable::getRowByKey | ( | Tag | antennaId | ) |
Returns a AntennaRow* given a key.
| antennaId. |
| AntennaRow* asdm::AntennaTable::lookup | ( | Tag | stationId, | |
| string | name, | |||
| AntennaMakeMod::AntennaMake | antennaMake, | |||
| AntennaTypeMod::AntennaType | antennaType, | |||
| Length | xPosition, | |||
| Length | yPosition, | |||
| Length | zPosition, | |||
| ArrayTime | time, | |||
| Length | xOffset, | |||
| Length | yOffset, | |||
| Length | zOffset, | |||
| Length | dishDiameter, | |||
| bool | flagRow | |||
| ) |
Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method.
| stationId. | ||
| name. | ||
| antennaMake. | ||
| antennaType. | ||
| xPosition. | ||
| yPosition. | ||
| zPosition. | ||
| time. | ||
| xOffset. | ||
| yOffset. | ||
| zOffset. | ||
| dishDiameter. | ||
| flagRow. |
| AntennaTableIDL* asdm::AntennaTable::toIDL | ( | ) |
Convert this table into a AntennaTableIDL CORBA structure.
| void asdm::AntennaTable::fromIDL | ( | AntennaTableIDL | x | ) | throw (DuplicateKey,ConversionException) |
Populate this table from the content of a AntennaTableIDL Corba structure.
| DuplicateKey | Thrown if the method tries to add a row having a key that is already in the table. | |
| ConversionException |
| char* asdm::AntennaTable::toFITS | ( | ) | const throw (ConversionException) [virtual] |
| void asdm::AntennaTable::fromFITS | ( | char * | fits | ) | throw (ConversionException) [virtual] |
| string asdm::AntennaTable::toVOTable | ( | ) | const throw (ConversionException) [virtual] |
| void asdm::AntennaTable::fromVOTable | ( | string | vo | ) | throw (ConversionException) [virtual] |
| string asdm::AntennaTable::toXML | ( | ) | throw (ConversionException) [virtual] |
Translate this table to an XML representation conform to the schema defined for Antenna (AntennaTable.xsd).
Implements asdm::Representable.
| void asdm::AntennaTable::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 Antenna (AntennaTable.xsd).
Implements asdm::Representable.
| string asdm::AntennaTable::toMIME | ( | ) |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
| void asdm::AntennaTable::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::AntennaTable::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 "Antenna.bin" or an XML representation (fileAsBin==false) will be saved in a file "Antenna.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::AntennaTable::setFromFile | ( | const string & | directory | ) |
Reads and parses a file containing a representation of a AntennaTable 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. |
| void asdm::AntennaTable::autoIncrement | ( | string | key, | |
| AntennaRow * | x | |||
| ) | [private] |
| AntennaRow* asdm::AntennaTable::checkAndAdd | ( | AntennaRow * | x | ) | throw (DuplicateKey, UniquenessViolationException) [private] |
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and throw exception if not.
Check if *x verifies the key uniqueness rule and throw an exception if not. Append x to its table.
| void asdm::AntennaTable::error | ( | ) | throw (ConversionException) [private] |
friend class asdm::ASDM [friend] |
Definition at line 262 of file AntennaTable.h.
ASDM& asdm::AntennaTable::container [private] |
Definition at line 575 of file AntennaTable.h.
bool asdm::AntennaTable::archiveAsBin [private] |
Definition at line 577 of file AntennaTable.h.
bool asdm::AntennaTable::fileAsBin [private] |
Definition at line 578 of file AntennaTable.h.
Entity asdm::AntennaTable::entity [private] |
Definition at line 580 of file AntennaTable.h.
map<string,int> asdm::AntennaTable::noAutoIncIds [private] |
string asdm::AntennaTable::tableName [static, private] |
vector<string> asdm::AntennaTable::key [static, private] |
vector<AntennaRow * > asdm::AntennaTable::privateRows [private] |
A data structure to store the pointers on the table's rows.
In all cases we maintain a private ArrayList of AntennaRow s.
Definition at line 612 of file AntennaTable.h.
vector<AntennaRow *> asdm::AntennaTable::row [private] |
Definition at line 616 of file AntennaTable.h.
1.5.1