casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
asdm::EphemerisRow Class Reference

The EphemerisRow class is a row of a EphemerisTable. More...

#include <EphemerisRow.h>

Public Member Functions

virtual ~EphemerisRow ()
 friend class asdm::TableStreamReader<EphemerisTable, EphemerisRow>; More...
 
EphemerisTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? More...
 
void setTimeInterval (ArrayTimeInterval timeInterval)
 Set timeInterval with the specified ArrayTimeInterval. More...
 
int getEphemerisId () const
 ===> Attribute ephemerisId More...
 
void setEphemerisId (int ephemerisId)
 Set ephemerisId with the specified int. More...
 
std::vector< double > getObserverLocation () const
 ===> Attribute observerLocation More...
 
void setObserverLocation (std::vector< double > observerLocation)
 Set observerLocation with the specified std::vector<double >. More...
 
double getEquinoxEquator () const
 ===> Attribute equinoxEquator More...
 
void setEquinoxEquator (double equinoxEquator)
 Set equinoxEquator with the specified double. More...
 
int getNumPolyDir () const
 ===> Attribute numPolyDir More...
 
void setNumPolyDir (int numPolyDir)
 Set numPolyDir with the specified int. More...
 
std::vector< std::vector
< double > > 
getDir () const
 ===> Attribute dir More...
 
void setDir (std::vector< std::vector< double > > dir)
 Set dir with the specified std::vector<std::vector<double > >. More...
 
int getNumPolyDist () const
 ===> Attribute numPolyDist More...
 
void setNumPolyDist (int numPolyDist)
 Set numPolyDist with the specified int. More...
 
std::vector< double > getDistance () const
 ===> Attribute distance More...
 
void setDistance (std::vector< double > distance)
 Set distance with the specified std::vector<double >. More...
 
ArrayTime getTimeOrigin () const
 ===> Attribute timeOrigin More...
 
void setTimeOrigin (ArrayTime timeOrigin)
 Set timeOrigin with the specified ArrayTime. More...
 
std::string getOrigin () const
 ===> Attribute origin More...
 
void setOrigin (std::string origin)
 Set origin with the specified std::string. More...
 
bool isNumPolyRadVelExists () const
 ===> Attribute numPolyRadVel, which is optional More...
 
int getNumPolyRadVel () const
 Get numPolyRadVel, which is optional. More...
 
void setNumPolyRadVel (int numPolyRadVel)
 Set numPolyRadVel with the specified int. More...
 
void clearNumPolyRadVel ()
 Mark numPolyRadVel, which is an optional field, as non-existent. More...
 
bool isRadVelExists () const
 ===> Attribute radVel, which is optional More...
 
std::vector< double > getRadVel () const
 Get radVel, which is optional. More...
 
void setRadVel (std::vector< double > radVel)
 Set radVel with the specified std::vector<double >. More...
 
void clearRadVel ()
 Mark radVel, which is an optional field, as non-existent. More...
 
Extrinsic Table Attributes
Links *bool 
compareNoAutoInc (ArrayTimeInterval timeInterval, int ephemerisId, std::vector< double > observerLocation, double equinoxEquator, int numPolyDir, std::vector< std::vector< double > > dir, int numPolyDist, std::vector< double > distance, ArrayTime timeOrigin, std::string origin)
 Compare each mandatory attribute except the autoincrementable one of this EphemerisRow with the corresponding parameters and return true if there is a match and false otherwise. More...
 
bool compareRequiredValue (std::vector< double > observerLocation, double equinoxEquator, int numPolyDir, std::vector< std::vector< double > > dir, int numPolyDist, std::vector< double > distance, ArrayTime timeOrigin, std::string origin)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (EphemerisRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::EphemerisRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::EphemerisRowIDL &x) const
 Define the content of a EphemerisRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::EphemerisRowIDL x)
 Fill the values of this row from the IDL struct EphemerisRowIDL. More...
 
std::string toXML () const
 Return this row in the form of an XML string. More...
 
void setFromXML (std::string rowDoc)
 Fill the values of this row from an XML string that was produced by the toXML() method. More...
 

Public Attributes

Intrinsic Table Attributes
 

Private Member Functions

void isAdded (bool added)
 This method is used by the Table class when this row is added to the table. More...
 
 EphemerisRow (EphemerisTable &table)
 Create a EphemerisRow. More...
 
 EphemerisRow (EphemerisTable &table, EphemerisRow *row)
 Create a EphemerisRow using a copy constructor mechanism. More...
 
void timeIntervalFromBin (EndianIStream &eis)
 
void ephemerisIdFromBin (EndianIStream &eis)
 
void observerLocationFromBin (EndianIStream &eis)
 
void equinoxEquatorFromBin (EndianIStream &eis)
 
void numPolyDirFromBin (EndianIStream &eis)
 
void dirFromBin (EndianIStream &eis)
 
void numPolyDistFromBin (EndianIStream &eis)
 
void distanceFromBin (EndianIStream &eis)
 
void timeOriginFromBin (EndianIStream &eis)
 
void originFromBin (EndianIStream &eis)
 
void numPolyRadVelFromBin (EndianIStream &eis)
 
void radVelFromBin (EndianIStream &eis)
 
void timeIntervalFromText (const std::string &s)
 
void ephemerisIdFromText (const std::string &s)
 
void observerLocationFromText (const std::string &s)
 
void equinoxEquatorFromText (const std::string &s)
 
void numPolyDirFromText (const std::string &s)
 
void dirFromText (const std::string &s)
 
void numPolyDistFromText (const std::string &s)
 
void distanceFromText (const std::string &s)
 
void timeOriginFromText (const std::string &s)
 
void originFromText (const std::string &s)
 
void numPolyRadVelFromText (const std::string &s)
 
void radVelFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

EphemerisTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
int ephemerisId
 ===> Attribute ephemerisId More...
 
std::vector< double > observerLocation
 ===> Attribute observerLocation More...
 
double equinoxEquator
 ===> Attribute equinoxEquator More...
 
int numPolyDir
 ===> Attribute numPolyDir More...
 
std::vector< std::vector
< double > > 
dir
 ===> Attribute dir More...
 
int numPolyDist
 ===> Attribute numPolyDist More...
 
std::vector< double > distance
 ===> Attribute distance More...
 
ArrayTime timeOrigin
 ===> Attribute timeOrigin More...
 
std::string origin
 ===> Attribute origin More...
 
bool numPolyRadVelExists
 ===> Attribute numPolyRadVel, which is optional More...
 
int numPolyRadVel
 
bool radVelExists
 ===> Attribute radVel, which is optional More...
 
std::vector< double > radVel
 
Extrinsic Table Attributes
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
EphemerisAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
EphemerisAttributeFromText
fromTextMethods
 

Friends

class asdm::EphemerisTable
 
class asdm::RowTransformer< EphemerisRow >
 

Detailed Description

The EphemerisRow class is a row of a EphemerisTable.

Generated from model's revision "-1", branch ""

Definition at line 114 of file EphemerisRow.h.

Constructor & Destructor Documentation

virtual asdm::EphemerisRow::~EphemerisRow ( )
virtual

friend class asdm::TableStreamReader<EphemerisTable, EphemerisRow>;

asdm::EphemerisRow::EphemerisRow ( EphemerisTable table)
private

Create a EphemerisRow.

This constructor is private because only the table can create rows. All rows know the table to which they belong.

Parameters
tableThe table to which this row belongs.
asdm::EphemerisRow::EphemerisRow ( EphemerisTable table,
EphemerisRow row 
)
private

Create a EphemerisRow using a copy constructor mechanism.

Given a EphemerisRow row and a EphemerisTable table, the method creates a new EphemerisRow owned by table. Each attribute of the created row is a copy (deep) of the corresponding attribute of row. The method does not add the created row to its table, its simply parents it to table, 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 row with default values for its attributes.

This constructor is private because only the table can create rows. All rows know the table to which they belong.

Parameters
tableThe table to which this row belongs.
rowThe row which is to be copied.

Member Function Documentation

void asdm::EphemerisRow::clearNumPolyRadVel ( )

Mark numPolyRadVel, which is an optional field, as non-existent.

void asdm::EphemerisRow::clearRadVel ( )

Mark radVel, which is an optional field, as non-existent.

Extrinsic Table Attributes Links* bool asdm::EphemerisRow::compareNoAutoInc ( ArrayTimeInterval  timeInterval,
int  ephemerisId,
std::vector< double >  observerLocation,
double  equinoxEquator,
int  numPolyDir,
std::vector< std::vector< double > >  dir,
int  numPolyDist,
std::vector< double >  distance,
ArrayTime  timeOrigin,
std::string  origin 
)

Compare each mandatory attribute except the autoincrementable one of this EphemerisRow with the corresponding parameters and return true if there is a match and false otherwise.

Parameters
timeInterval
ephemerisId
observerLocation
equinoxEquator
numPolyDir
dir
numPolyDist
distance
timeOrigin
origin
bool asdm::EphemerisRow::compareRequiredValue ( std::vector< double >  observerLocation,
double  equinoxEquator,
int  numPolyDir,
std::vector< std::vector< double > >  dir,
int  numPolyDist,
std::vector< double >  distance,
ArrayTime  timeOrigin,
std::string  origin 
)

Compare each mandatory value (i.e.

not in the key) attribute with the corresponding parameters and return true if there is a match and false otherwise.

Parameters
observerLocation
equinoxEquator
numPolyDir
dir
numPolyDist
distance
timeOrigin
origin
void asdm::EphemerisRow::dirFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::dirFromText ( const std::string &  s)
private
void asdm::EphemerisRow::distanceFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::distanceFromText ( const std::string &  s)
private
void asdm::EphemerisRow::ephemerisIdFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::ephemerisIdFromText ( const std::string &  s)
private
bool asdm::EphemerisRow::equalByRequiredValue ( EphemerisRow x)

Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.

Parameters
xa pointer on the EphemerisRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
void asdm::EphemerisRow::equinoxEquatorFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::equinoxEquatorFromText ( const std::string &  s)
private
std::vector<std::vector<double > > asdm::EphemerisRow::getDir ( ) const

===> Attribute dir

Get dir.

Returns
dir as std::vector<std::vector<double > >
std::vector<double > asdm::EphemerisRow::getDistance ( ) const

===> Attribute distance

Get distance.

Returns
distance as std::vector<double >
int asdm::EphemerisRow::getEphemerisId ( ) const

===> Attribute ephemerisId

Get ephemerisId.

Returns
ephemerisId as int
double asdm::EphemerisRow::getEquinoxEquator ( ) const

===> Attribute equinoxEquator

Get equinoxEquator.

Returns
equinoxEquator as double
int asdm::EphemerisRow::getNumPolyDir ( ) const

===> Attribute numPolyDir

Get numPolyDir.

Returns
numPolyDir as int
int asdm::EphemerisRow::getNumPolyDist ( ) const

===> Attribute numPolyDist

Get numPolyDist.

Returns
numPolyDist as int
int asdm::EphemerisRow::getNumPolyRadVel ( ) const

Get numPolyRadVel, which is optional.

Returns
numPolyRadVel as int
Exceptions
IllegalAccessExceptionIf numPolyRadVel does not exist.
std::vector<double > asdm::EphemerisRow::getObserverLocation ( ) const

===> Attribute observerLocation

Get observerLocation.

Returns
observerLocation as std::vector<double >
std::string asdm::EphemerisRow::getOrigin ( ) const

===> Attribute origin

Get origin.

Returns
origin as std::string
std::vector<double > asdm::EphemerisRow::getRadVel ( ) const

Get radVel, which is optional.

Returns
radVel as std::vector<double >
Exceptions
IllegalAccessExceptionIf radVel does not exist.
EphemerisTable& asdm::EphemerisRow::getTable ( ) const

Return the table to which this row belongs.

ArrayTime asdm::EphemerisRow::getTimeOrigin ( ) const

===> Attribute timeOrigin

Get timeOrigin.

Returns
timeOrigin as ArrayTime
bool asdm::EphemerisRow::isAdded ( ) const

Has this row been added to its table ?

Returns
true if and only if it has been added.
void asdm::EphemerisRow::isAdded ( bool  added)
private

This method is used by the Table class when this row is added to the table.

bool asdm::EphemerisRow::isNumPolyRadVelExists ( ) const

===> Attribute numPolyRadVel, which is optional

The attribute numPolyRadVel is optional. Return true if this attribute exists.

Returns
true if and only if the numPolyRadVel attribute exists.
bool asdm::EphemerisRow::isRadVelExists ( ) const

===> Attribute radVel, which is optional

The attribute radVel is optional. Return true if this attribute exists.

Returns
true if and only if the radVel attribute exists.
void asdm::EphemerisRow::numPolyDirFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::numPolyDirFromText ( const std::string &  s)
private
void asdm::EphemerisRow::numPolyDistFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::numPolyDistFromText ( const std::string &  s)
private
void asdm::EphemerisRow::numPolyRadVelFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::numPolyRadVelFromText ( const std::string &  s)
private
void asdm::EphemerisRow::observerLocationFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::observerLocationFromText ( const std::string &  s)
private
void asdm::EphemerisRow::originFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::originFromText ( const std::string &  s)
private
void asdm::EphemerisRow::radVelFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::radVelFromText ( const std::string &  s)
private
void asdm::EphemerisRow::setDir ( std::vector< std::vector< double > >  dir)

Set dir with the specified std::vector<std::vector<double > >.

Parameters
dirThe std::vector<std::vector<double > > value to which dir is to be set.
void asdm::EphemerisRow::setDistance ( std::vector< double >  distance)

Set distance with the specified std::vector<double >.

Parameters
distanceThe std::vector<double > value to which distance is to be set.
void asdm::EphemerisRow::setEphemerisId ( int  ephemerisId)

Set ephemerisId with the specified int.

Parameters
ephemerisIdThe int value to which ephemerisId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::EphemerisRow::setEquinoxEquator ( double  equinoxEquator)

Set equinoxEquator with the specified double.

Parameters
equinoxEquatorThe double value to which equinoxEquator is to be set.
void asdm::EphemerisRow::setFromIDL ( asdmIDL::EphemerisRowIDL  x)

Fill the values of this row from the IDL struct EphemerisRowIDL.

Parameters
xThe IDL struct containing the values used to fill this row.
Exceptions
ConversionException
void asdm::EphemerisRow::setFromXML ( std::string  rowDoc)

Fill the values of this row from an XML string that was produced by the toXML() method.

Parameters
rowDocthe XML string being used to set the values of this row.
Exceptions
ConversionException
void asdm::EphemerisRow::setNumPolyDir ( int  numPolyDir)

Set numPolyDir with the specified int.

Parameters
numPolyDirThe int value to which numPolyDir is to be set.
void asdm::EphemerisRow::setNumPolyDist ( int  numPolyDist)

Set numPolyDist with the specified int.

Parameters
numPolyDistThe int value to which numPolyDist is to be set.
void asdm::EphemerisRow::setNumPolyRadVel ( int  numPolyRadVel)

Set numPolyRadVel with the specified int.

Parameters
numPolyRadVelThe int value to which numPolyRadVel is to be set.
void asdm::EphemerisRow::setObserverLocation ( std::vector< double >  observerLocation)

Set observerLocation with the specified std::vector<double >.

Parameters
observerLocationThe std::vector<double > value to which observerLocation is to be set.
void asdm::EphemerisRow::setOrigin ( std::string  origin)

Set origin with the specified std::string.

Parameters
originThe std::string value to which origin is to be set.
void asdm::EphemerisRow::setRadVel ( std::vector< double >  radVel)

Set radVel with the specified std::vector<double >.

Parameters
radVelThe std::vector<double > value to which radVel is to be set.
void asdm::EphemerisRow::setTimeInterval ( ArrayTimeInterval  timeInterval)

Set timeInterval with the specified ArrayTimeInterval.

Parameters
timeIntervalThe ArrayTimeInterval value to which timeInterval is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::EphemerisRow::setTimeOrigin ( ArrayTime  timeOrigin)

Set timeOrigin with the specified ArrayTime.

Parameters
timeOriginThe ArrayTime value to which timeOrigin is to be set.
void asdm::EphemerisRow::timeIntervalFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::timeIntervalFromText ( const std::string &  s)
private
void asdm::EphemerisRow::timeOriginFromBin ( EndianIStream eis)
private
void asdm::EphemerisRow::timeOriginFromText ( const std::string &  s)
private
void asdm::EphemerisRow::toBin ( EndianOSStream eoss)
private

Serialize this into a stream of bytes written to an EndianOSStream.

Parameters
eossthe EndianOSStream to be written to
asdmIDL::EphemerisRowIDL* asdm::EphemerisRow::toIDL ( ) const

Return this row in the form of an IDL struct.

Returns
The values of this row as a EphemerisRowIDL struct.
void asdm::EphemerisRow::toIDL ( asdmIDL::EphemerisRowIDL &  x) const

Define the content of a EphemerisRowIDL struct from the values found in this row.

Parameters
xa reference to the EphemerisRowIDL struct to be set.
std::string asdm::EphemerisRow::toXML ( ) const

Return this row in the form of an XML string.

Returns
The values of this row as an XML string.

Friends And Related Function Documentation

friend class asdm::EphemerisTable
friend

Definition at line 115 of file EphemerisRow.h.

friend class asdm::RowTransformer< EphemerisRow >
friend

Definition at line 116 of file EphemerisRow.h.

Member Data Documentation

Intrinsic Table asdm::EphemerisRow::Attributes

Definition at line 139 of file EphemerisRow.h.

std::vector<std::vector<double > > asdm::EphemerisRow::dir
private

===> Attribute dir

Definition at line 785 of file EphemerisRow.h.

std::vector<double > asdm::EphemerisRow::distance
private

===> Attribute distance

Definition at line 807 of file EphemerisRow.h.

int asdm::EphemerisRow::ephemerisId
private

===> Attribute ephemerisId

Definition at line 741 of file EphemerisRow.h.

double asdm::EphemerisRow::equinoxEquator
private

===> Attribute equinoxEquator

Definition at line 763 of file EphemerisRow.h.

Extrinsic Table Attributes Links* binary deserialization material from an EndianIStream std::map<std::string, EphemerisAttributeFromBin> asdm::EphemerisRow::fromBinMethods
private

Definition at line 874 of file EphemerisRow.h.

* text deserialization material std::map<std::string, EphemerisAttributeFromText> asdm::EphemerisRow::fromTextMethods
private

Definition at line 894 of file EphemerisRow.h.

bool asdm::EphemerisRow::hasBeenAdded
private

Whether this row has been added to the table or not.

Definition at line 686 of file EphemerisRow.h.

int asdm::EphemerisRow::numPolyDir
private

===> Attribute numPolyDir

Definition at line 774 of file EphemerisRow.h.

int asdm::EphemerisRow::numPolyDist
private

===> Attribute numPolyDist

Definition at line 796 of file EphemerisRow.h.

int asdm::EphemerisRow::numPolyRadVel
private

Definition at line 842 of file EphemerisRow.h.

bool asdm::EphemerisRow::numPolyRadVelExists
private

===> Attribute numPolyRadVel, which is optional

Definition at line 839 of file EphemerisRow.h.

std::vector<double > asdm::EphemerisRow::observerLocation
private

===> Attribute observerLocation

Definition at line 752 of file EphemerisRow.h.

std::string asdm::EphemerisRow::origin
private

===> Attribute origin

Definition at line 829 of file EphemerisRow.h.

std::vector<double > asdm::EphemerisRow::radVel
private

Definition at line 855 of file EphemerisRow.h.

bool asdm::EphemerisRow::radVelExists
private

===> Attribute radVel, which is optional

Definition at line 852 of file EphemerisRow.h.

EphemerisTable& asdm::EphemerisRow::table
private

The table to which this row belongs.

Definition at line 682 of file EphemerisRow.h.

ArrayTime asdm::EphemerisRow::timeOrigin
private

===> Attribute timeOrigin

Definition at line 818 of file EphemerisRow.h.


The documentation for this class was generated from the following file: