asdm::CalCurveTable Class Reference

#include <CalCurveTable.h>

Inherits asdm::Representable.

List of all members.


Detailed Description

The CalCurveTable class is an Alma table.

Generated from model's revision "1.41", branch "HEAD"

Attributes of CalCurve
Name Type Comment

Key

calDataId Tag  

calReductionId Tag  

Value
(Mandarory)

numAntenna int  

numBaseline int  

numAPC int  

numReceptor int  

numPoly int  

antennaNames vector<string > numAntenna

refAntennaName string  

receiverBand ReceiverBand  

atmPhaseCorrections vector<AtmPhaseCorrection > numAPC

polarizationTypes vector<PolarizationType > numReceptor

startValidTime ArrayTime  

endValidTime ArrayTime  

frequencyRange vector<Frequency > 2

typeCurve CalCurveType  

timeOrigin ArrayTime  

curve vector<vector<vector<vector<float > > > > numAntenna, numAPC, numReceptor, numPoly

rms vector<vector<vector<float > > > numBaseline, numAPC, numReceptor


Public Member Functions

ASDMgetContainer () const
unsigned int size ()
string getName () const
Entity getEntity () const
void setEntity (Entity e)
CalCurveRownewRow ()
CalCurveRownewRowEmpty ()
CalCurveRownewRow (Tag calDataId, Tag calReductionId, int numAntenna, int numBaseline, int numAPC, int numReceptor, int numPoly, vector< string > antennaNames, string refAntennaName, ReceiverBand receiverBand, vector< AtmPhaseCorrection > atmPhaseCorrections, vector< PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector< Frequency > frequencyRange, CalCurveType typeCurve, ArrayTime timeOrigin, vector< vector< vector< vector< float > > > > curve, vector< vector< vector< float > > > rms)
CalCurveRownewRowFull (Tag calDataId, Tag calReductionId, int numAntenna, int numBaseline, int numAPC, int numReceptor, int numPoly, vector< string > antennaNames, string refAntennaName, ReceiverBand receiverBand, vector< AtmPhaseCorrection > atmPhaseCorrections, vector< PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector< Frequency > frequencyRange, CalCurveType typeCurve, ArrayTime timeOrigin, vector< vector< vector< vector< float > > > > curve, vector< vector< vector< float > > > rms)
CalCurveRownewRow (CalCurveRow *row)
CalCurveRownewRowCopy (CalCurveRow *row)
CalCurveRowadd (CalCurveRow *x)
vector< CalCurveRow * > get ()
CalCurveRowCalCurveTable::getRowByKey (Tag calDataId, Tag calReductionId)
CalCurveRowlookup (Tag calDataId, Tag calReductionId, int numAntenna, int numBaseline, int numAPC, int numReceptor, int numPoly, vector< string > antennaNames, string refAntennaName, ReceiverBand receiverBand, vector< AtmPhaseCorrection > atmPhaseCorrections, vector< PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector< Frequency > frequencyRange, CalCurveType typeCurve, ArrayTime timeOrigin, vector< vector< vector< vector< float > > > > curve, vector< vector< vector< float > > > rms)
CalCurveTableIDL * toIDL ()
void fromIDL (CalCurveTableIDL 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::CalCurveTable::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::CalCurveTable::getContainer (  )  const

Return the container to which this table belongs.

Returns:
the ASDM containing this table.

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

Return the number of rows in the table.

Returns:
the number of rows in an unsigned int.

Implements asdm::Representable.

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

Return the name of this table.

Returns:
the name of this table in a string.

Implements asdm::Representable.

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

Return this table's Entity.

Implements asdm::Representable.

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

Set this table's Entity.

Parameters:
e An entity.

Implements asdm::Representable.

CalCurveRow* asdm::CalCurveTable::newRow (  ) 

Create a new row with default values.

Returns:
a pointer on a CalCurveRow

CalCurveRow* asdm::CalCurveTable::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.

CalCurveRow* asdm::CalCurveTable::newRow ( Tag  calDataId,
Tag  calReductionId,
int  numAntenna,
int  numBaseline,
int  numAPC,
int  numReceptor,
int  numPoly,
vector< string >  antennaNames,
string  refAntennaName,
ReceiverBand  receiverBand,
vector< AtmPhaseCorrection >  atmPhaseCorrections,
vector< PolarizationType >  polarizationTypes,
ArrayTime  startValidTime,
ArrayTime  endValidTime,
vector< Frequency frequencyRange,
CalCurveType  typeCurve,
ArrayTime  timeOrigin,
vector< vector< vector< vector< float > > > >  curve,
vector< vector< vector< float > > >  rms 
)

Create a new row initialized to the specified values.

Returns:
a pointer on the created and initialized row.
Parameters:
calDataId. 
calReductionId. 
numAntenna. 
numBaseline. 
numAPC. 
numReceptor. 
numPoly. 
antennaNames. 
refAntennaName. 
receiverBand. 
atmPhaseCorrections. 
polarizationTypes. 
startValidTime. 
endValidTime. 
frequencyRange. 
typeCurve. 
timeOrigin. 
curve. 
rms. 

CalCurveRow* asdm::CalCurveTable::newRowFull ( Tag  calDataId,
Tag  calReductionId,
int  numAntenna,
int  numBaseline,
int  numAPC,
int  numReceptor,
int  numPoly,
vector< string >  antennaNames,
string  refAntennaName,
ReceiverBand  receiverBand,
vector< AtmPhaseCorrection >  atmPhaseCorrections,
vector< PolarizationType >  polarizationTypes,
ArrayTime  startValidTime,
ArrayTime  endValidTime,
vector< Frequency frequencyRange,
CalCurveType  typeCurve,
ArrayTime  timeOrigin,
vector< vector< vector< vector< float > > > >  curve,
vector< vector< vector< float > > >  rms 
)

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.

CalCurveRow* asdm::CalCurveTable::newRow ( CalCurveRow row  ) 

Create a new row using a copy constructor mechanism.

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

Parameters:
row the row which is to be copied.

CalCurveRow* asdm::CalCurveTable::newRowCopy ( CalCurveRow 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.

CalCurveRow* asdm::CalCurveTable::add ( CalCurveRow x  ) 

Add a row.

Parameters:
x a pointer to the CalCurveRow to be added.
Returns:
a pointer to a CalCurveRow. If the table contains a CalCurveRow whose attributes (key and mandatory values) are equal to x ones then returns a pointer on that CalCurveRow, otherwise returns x.
Exceptions:
DuplicateKey { thrown when the table contains a CalCurveRow with a key equal to the x one but having and a value section different from x one }

vector<CalCurveRow *> asdm::CalCurveTable::get (  ) 

Get all rows.

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

CalCurveRow* asdm::CalCurveTable::CalCurveTable::getRowByKey ( Tag  calDataId,
Tag  calReductionId 
)

Returns a CalCurveRow* 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:
calDataId. 
calReductionId. 

CalCurveRow* asdm::CalCurveTable::lookup ( Tag  calDataId,
Tag  calReductionId,
int  numAntenna,
int  numBaseline,
int  numAPC,
int  numReceptor,
int  numPoly,
vector< string >  antennaNames,
string  refAntennaName,
ReceiverBand  receiverBand,
vector< AtmPhaseCorrection >  atmPhaseCorrections,
vector< PolarizationType >  polarizationTypes,
ArrayTime  startValidTime,
ArrayTime  endValidTime,
vector< Frequency frequencyRange,
CalCurveType  typeCurve,
ArrayTime  timeOrigin,
vector< vector< vector< vector< float > > > >  curve,
vector< vector< vector< float > > >  rms 
)

Look up the table for a row whose all attributes are equal to the corresponding parameters of the method.

Returns:
a pointer on this row if any, null otherwise.
Parameters:
calDataId. 
calReductionId. 
numAntenna. 
numBaseline. 
numAPC. 
numReceptor. 
numPoly. 
antennaNames. 
refAntennaName. 
receiverBand. 
atmPhaseCorrections. 
polarizationTypes. 
startValidTime. 
endValidTime. 
frequencyRange. 
typeCurve. 
timeOrigin. 
curve. 
rms. 

CalCurveTableIDL* asdm::CalCurveTable::toIDL (  ) 

Convert this table into a CalCurveTableIDL CORBA structure.

Returns:
a pointer to a CalCurveTableIDL

void asdm::CalCurveTable::fromIDL ( CalCurveTableIDL  x  )  throw (DuplicateKey,ConversionException)

Populate this table from the content of a CalCurveTableIDL 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::CalCurveTable::toFITS (  )  const throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

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

To be implemented

Implements asdm::Representable.

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

To be implemented

Implements asdm::Representable.

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

To be implemented

Implements asdm::Representable.

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

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

Returns:
a string containing the XML representation.

Implements asdm::Representable.

void asdm::CalCurveTable::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 CalCurve (CalCurveTable.xsd).

Implements asdm::Representable.

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

Parameters:
directory The name of directory where the file containing the table's representation will be saved.

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

Reads and parses a file containing a representation of a CalCurveTable 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 file te be read and parsed.
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:48 2007 for ASDM C++ Implementation by  doxygen 1.5.1