asdm::PointingTable Class Reference

#include <PointingTable.h>

Inherits asdm::Representable.

List of all members.


Detailed Description

The PointingTable class is an Alma table.
Attributes of Pointing
Name Type Comment

Key

antennaId Tag  

timeInterval ArrayTimeInterval  

Value
(Mandarory)

pointingModelId int  

numPoly int  

timeOrigin ArrayTime  

pointingDirection vector<vector<Angle > > numPoly+1, 2

target vector<vector<Angle > > numPoly+1, 2

offset vector<vector<Angle > > numPoly+1, 2

encoder vector<Angle > 2

pointingTracking bool  

Value
(Optional)

name string  

sourceOffset vector<vector<Angle > > numPoly+1, 2

phaseTracking bool  

overTheTop bool  


Public Member Functions

ASDMgetContainer () const
unsigned int size ()
string getName () const
Entity getEntity () const
void setEntity (Entity e)
PointingRownewRow ()
PointingRownewRowEmpty ()
PointingRownewRow (Tag antennaId, ArrayTimeInterval timeInterval, int pointingModelId, int numPoly, ArrayTime timeOrigin, vector< vector< Angle > > pointingDirection, vector< vector< Angle > > target, vector< vector< Angle > > offset, vector< Angle > encoder, bool pointingTracking)
PointingRownewRowFull (Tag antennaId, ArrayTimeInterval timeInterval, int pointingModelId, int numPoly, ArrayTime timeOrigin, vector< vector< Angle > > pointingDirection, vector< vector< Angle > > target, vector< vector< Angle > > offset, vector< Angle > encoder, bool pointingTracking)
PointingRownewRow (PointingRow *row)
PointingRownewRowCopy (PointingRow *row)
PointingRowadd (PointingRow *x)
vector< PointingRow * > get ()
vector< PointingRow * > * getByContext (Tag antennaId)
PointingRowPointingTable::getRowByKey (Tag antennaId, ArrayTimeInterval timeInterval)
PointingTableIDL * toIDL ()
void fromIDL (PointingTableIDL 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


Member Function Documentation

static vector<string> asdm::PointingTable::getKeyName (  )  [static]

Return the list of field names that make up key key as an array of strings.

Returns:
a vector of string.

ASDM& asdm::PointingTable::getContainer (  )  const

Return the container to which this table belongs.

Returns:
the ASDM containing this table.

unsigned int asdm::PointingTable::size (  )  [virtual]

Return the number of rows in the table.

Returns:
the number of rows in an unsigned int.

Implements asdm::Representable.

string asdm::PointingTable::getName (  )  const [virtual]

Return the name of this table.

Returns:
the name of this table in a string.

Implements asdm::Representable.

Entity asdm::PointingTable::getEntity (  )  const [virtual]

Return this table's Entity.

Implements asdm::Representable.

void asdm::PointingTable::setEntity ( Entity  e  )  [virtual]

Set this table's Entity.

Parameters:
e An entity.

Implements asdm::Representable.

PointingRow* asdm::PointingTable::newRow (  ) 

Create a new row with default values.

Returns:
a pointer on a PointingRow

PointingRow* asdm::PointingTable::newRowEmpty (  ) 

Same as the newRow method with the same signature. Defined to facilitate the call from Python.

PointingRow* asdm::PointingTable::newRow ( Tag  antennaId,
ArrayTimeInterval  timeInterval,
int  pointingModelId,
int  numPoly,
ArrayTime  timeOrigin,
vector< vector< Angle > >  pointingDirection,
vector< vector< Angle > >  target,
vector< vector< Angle > >  offset,
vector< Angle encoder,
bool  pointingTracking 
)

Create a new row initialized to the specified values.

Returns:
a pointer on the created and initialized row.
Parameters:
antennaId. 
timeInterval. 
pointingModelId. 
numPoly. 
timeOrigin. 
pointingDirection. 
target. 
offset. 
encoder. 
pointingTracking. 

PointingRow* asdm::PointingTable::newRowFull ( Tag  antennaId,
ArrayTimeInterval  timeInterval,
int  pointingModelId,
int  numPoly,
ArrayTime  timeOrigin,
vector< vector< Angle > >  pointingDirection,
vector< vector< Angle > >  target,
vector< vector< Angle > >  offset,
vector< Angle encoder,
bool  pointingTracking 
)

Same as the newRow method with the same signature. Defined to facilitate the call from Python.

PointingRow* asdm::PointingTable::newRow ( PointingRow row  ) 

Create a new row using a copy constructor mechanism.

The method creates a new PointingRow 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 PointingRow with default values for its attributes.

Parameters:
row the row which is to be copied.

PointingRow* asdm::PointingTable::newRowCopy ( PointingRow row  ) 

Same as the newRow method with the same signature. Defined to facilitate the call from Python.

PointingRow* asdm::PointingTable::add ( PointingRow x  ) 

Add a row.

Parameters:
x a pointer to the PointingRow to be added.
Returns:
a pointer to a PointingRow. If the table contains a PointingRow whose attributes (key and mandatory values) are equal to x ones then returns a pointer on that PointingRow, otherwise returns x.
Exceptions:
DuplicateKey { thrown when the table contains a PointingRow with a key equal to the x one but having and a value section different from x one }
Note:
The row is inserted in the table in such a way that all the rows having the same value of ( antennaId ) are stored by ascending time.
See also:
method getByContext.

vector<PointingRow *> asdm::PointingTable::get (  ) 

Get all rows.

Returns:
Alls rows as a vector of pointers of PointingRow. The elements of this vector are stored in the order in which they have been added to the PointingTable.

vector<PointingRow*>* asdm::PointingTable::getByContext ( Tag  antennaId  ) 

Returns all the rows sorted by ascending startTime for a given context. The context is defined by a value of ( antennaId ).

Returns:
a pointer on a vector<PointingRow *>. A null returned value means that the table contains no PointingRow for the given ( antennaId ).

PointingRow* asdm::PointingTable::PointingTable::getRowByKey ( Tag  antennaId,
ArrayTimeInterval  timeInterval 
)

Returns a PointingRow* given a key.

Returns:
a pointer to the row having the key whose values are passed as parameters, or 0 if no row exists for that key.
Parameters:
antennaId. 
timeInterval. 

PointingTableIDL* asdm::PointingTable::toIDL (  ) 

Convert this table into a PointingTableIDL CORBA structure.

Returns:
a pointer to a PointingTableIDL

void asdm::PointingTable::fromIDL ( PointingTableIDL  x  )  throw (DuplicateKey,ConversionException)

Populate this table from the content of a PointingTableIDL Corba structure.

Exceptions:
DuplicateKey Thrown if the method tries to add a row having a key that is already in the table.
ConversionException 

char* asdm::PointingTable::toFITS (  )  const throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

void asdm::PointingTable::fromFITS ( char *  fits  )  throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

string asdm::PointingTable::toVOTable (  )  const throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

void asdm::PointingTable::fromVOTable ( string  vo  )  throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

string asdm::PointingTable::toXML (  )  throw (ConversionException) [virtual]

Translate this table to an XML representation conform to the schema defined for Pointing (PointingTable.xsd).

Returns:
a string containing the XML representation.

Implements asdm::Representable.

void asdm::PointingTable::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 Pointing (PointingTable.xsd).

Exceptions:
ConversionException 

Implements asdm::Representable.

string asdm::PointingTable::toMIME (  ) 

Serialize this into a stream of bytes and encapsulates that stream into a MIME message.

Returns:
a string containing the MIME message.

void asdm::PointingTable::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.

Parameters:
mimeMsg the string containing the MIME message.
Exceptions:
ConversionException 

void asdm::PointingTable::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 "Pointing.bin" or an XML representation (fileAsBin==false) will be saved in a file "Pointing.xml". The file is always written in a directory whose name is passed as a parameter.

void asdm::PointingTable::setFromFile ( const string &  directory  ) 

Reads and parses a collection of files as those produced by the toFile method. This table is populated with the result of the parsing.

Parameters:
directory The name of the directory containing the files.
Exceptions:
ConversionException If any error occurs while reading the files in the directory or parsing them.


The documentation for this class was generated from the following file:
Generated on Thu Nov 29 16:46:50 2007 for ASDM C++ Implementation by  doxygen 1.5.1