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::SeeingRow Class Reference

The SeeingRow class is a row of a SeeingTable. More...

#include <SeeingRow.h>

Public Member Functions

virtual ~SeeingRow ()
 friend class asdm::TableStreamReader<SeeingTable, SeeingRow>; More...
 
SeeingTablegetTable () 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 getNumBaseLength () const
 ===> Attribute numBaseLength More...
 
void setNumBaseLength (int numBaseLength)
 Set numBaseLength with the specified int. More...
 
std::vector< LengthgetBaseLength () const
 ===> Attribute baseLength More...
 
void setBaseLength (std::vector< Length > baseLength)
 Set baseLength with the specified std::vector<Length >. More...
 
std::vector< AnglegetPhaseRms () const
 ===> Attribute phaseRms More...
 
void setPhaseRms (std::vector< Angle > phaseRms)
 Set phaseRms with the specified std::vector<Angle >. More...
 
float getSeeing () const
 ===> Attribute seeing More...
 
void setSeeing (float seeing)
 Set seeing with the specified float. More...
 
float getExponent () const
 ===> Attribute exponent More...
 
void setExponent (float exponent)
 Set exponent with the specified float. More...
 
Extrinsic Table Attributes
Links *bool 
compareNoAutoInc (ArrayTimeInterval timeInterval, int numBaseLength, std::vector< Length > baseLength, std::vector< Angle > phaseRms, float seeing, float exponent)
 Compare each mandatory attribute except the autoincrementable one of this SeeingRow with the corresponding parameters and return true if there is a match and false otherwise. More...
 
bool compareRequiredValue (int numBaseLength, std::vector< Length > baseLength, std::vector< Angle > phaseRms, float seeing, float exponent)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (SeeingRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::SeeingRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::SeeingRowIDL &x) const
 Define the content of a SeeingRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::SeeingRowIDL x)
 Fill the values of this row from the IDL struct SeeingRowIDL. 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...
 
 SeeingRow (SeeingTable &table)
 Create a SeeingRow. More...
 
 SeeingRow (SeeingTable &table, SeeingRow *row)
 Create a SeeingRow using a copy constructor mechanism. More...
 
void timeIntervalFromBin (EndianIStream &eis)
 
void numBaseLengthFromBin (EndianIStream &eis)
 
void baseLengthFromBin (EndianIStream &eis)
 
void phaseRmsFromBin (EndianIStream &eis)
 
void seeingFromBin (EndianIStream &eis)
 
void exponentFromBin (EndianIStream &eis)
 
void timeIntervalFromText (const std::string &s)
 
void numBaseLengthFromText (const std::string &s)
 
void baseLengthFromText (const std::string &s)
 
void phaseRmsFromText (const std::string &s)
 
void seeingFromText (const std::string &s)
 
void exponentFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

SeeingTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
int numBaseLength
 ===> Attribute numBaseLength More...
 
std::vector< LengthbaseLength
 ===> Attribute baseLength More...
 
std::vector< AnglephaseRms
 ===> Attribute phaseRms More...
 
float seeing
 ===> Attribute seeing More...
 
float exponent
 ===> Attribute exponent More...
 
Extrinsic Table Attributes
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
SeeingAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
SeeingAttributeFromText
fromTextMethods
 

Friends

class asdm::SeeingTable
 
class asdm::RowTransformer< SeeingRow >
 

Detailed Description

The SeeingRow class is a row of a SeeingTable.

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

Definition at line 106 of file SeeingRow.h.

Constructor & Destructor Documentation

virtual asdm::SeeingRow::~SeeingRow ( )
virtual

friend class asdm::TableStreamReader<SeeingTable, SeeingRow>;

asdm::SeeingRow::SeeingRow ( SeeingTable table)
private

Create a SeeingRow.

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::SeeingRow::SeeingRow ( SeeingTable table,
SeeingRow row 
)
private

Create a SeeingRow using a copy constructor mechanism.

Given a SeeingRow row and a SeeingTable table, the method creates a new SeeingRow 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::SeeingRow::baseLengthFromBin ( EndianIStream eis)
private
void asdm::SeeingRow::baseLengthFromText ( const std::string &  s)
private
Extrinsic Table Attributes Links* bool asdm::SeeingRow::compareNoAutoInc ( ArrayTimeInterval  timeInterval,
int  numBaseLength,
std::vector< Length baseLength,
std::vector< Angle phaseRms,
float  seeing,
float  exponent 
)

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

Parameters
timeInterval
numBaseLength
baseLength
phaseRms
seeing
exponent
bool asdm::SeeingRow::compareRequiredValue ( int  numBaseLength,
std::vector< Length baseLength,
std::vector< Angle phaseRms,
float  seeing,
float  exponent 
)

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
numBaseLength
baseLength
phaseRms
seeing
exponent
bool asdm::SeeingRow::equalByRequiredValue ( SeeingRow 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 SeeingRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
void asdm::SeeingRow::exponentFromBin ( EndianIStream eis)
private
void asdm::SeeingRow::exponentFromText ( const std::string &  s)
private
std::vector<Length > asdm::SeeingRow::getBaseLength ( ) const

===> Attribute baseLength

Get baseLength.

Returns
baseLength as std::vector<Length >
float asdm::SeeingRow::getExponent ( ) const

===> Attribute exponent

Get exponent.

Returns
exponent as float
int asdm::SeeingRow::getNumBaseLength ( ) const

===> Attribute numBaseLength

Get numBaseLength.

Returns
numBaseLength as int
std::vector<Angle > asdm::SeeingRow::getPhaseRms ( ) const

===> Attribute phaseRms

Get phaseRms.

Returns
phaseRms as std::vector<Angle >
float asdm::SeeingRow::getSeeing ( ) const

===> Attribute seeing

Get seeing.

Returns
seeing as float
SeeingTable& asdm::SeeingRow::getTable ( ) const

Return the table to which this row belongs.

bool asdm::SeeingRow::isAdded ( ) const

Has this row been added to its table ?

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

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

void asdm::SeeingRow::numBaseLengthFromBin ( EndianIStream eis)
private
void asdm::SeeingRow::numBaseLengthFromText ( const std::string &  s)
private
void asdm::SeeingRow::phaseRmsFromBin ( EndianIStream eis)
private
void asdm::SeeingRow::phaseRmsFromText ( const std::string &  s)
private
void asdm::SeeingRow::seeingFromBin ( EndianIStream eis)
private
void asdm::SeeingRow::seeingFromText ( const std::string &  s)
private
void asdm::SeeingRow::setBaseLength ( std::vector< Length baseLength)

Set baseLength with the specified std::vector<Length >.

Parameters
baseLengthThe std::vector<Length > value to which baseLength is to be set.
void asdm::SeeingRow::setExponent ( float  exponent)

Set exponent with the specified float.

Parameters
exponentThe float value to which exponent is to be set.
void asdm::SeeingRow::setFromIDL ( asdmIDL::SeeingRowIDL  x)

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

Parameters
xThe IDL struct containing the values used to fill this row.
Exceptions
ConversionException
void asdm::SeeingRow::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::SeeingRow::setNumBaseLength ( int  numBaseLength)

Set numBaseLength with the specified int.

Parameters
numBaseLengthThe int value to which numBaseLength is to be set.
void asdm::SeeingRow::setPhaseRms ( std::vector< Angle phaseRms)

Set phaseRms with the specified std::vector<Angle >.

Parameters
phaseRmsThe std::vector<Angle > value to which phaseRms is to be set.
void asdm::SeeingRow::setSeeing ( float  seeing)

Set seeing with the specified float.

Parameters
seeingThe float value to which seeing is to be set.
void asdm::SeeingRow::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::SeeingRow::timeIntervalFromBin ( EndianIStream eis)
private
void asdm::SeeingRow::timeIntervalFromText ( const std::string &  s)
private
void asdm::SeeingRow::toBin ( EndianOSStream eoss)
private

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

Parameters
eossthe EndianOSStream to be written to
asdmIDL::SeeingRowIDL* asdm::SeeingRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

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

Parameters
xa reference to the SeeingRowIDL struct to be set.
std::string asdm::SeeingRow::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::RowTransformer< SeeingRow >
friend

Definition at line 108 of file SeeingRow.h.

friend class asdm::SeeingTable
friend

Definition at line 107 of file SeeingRow.h.

Member Data Documentation

Intrinsic Table asdm::SeeingRow::Attributes

Definition at line 131 of file SeeingRow.h.

std::vector<Length > asdm::SeeingRow::baseLength
private

===> Attribute baseLength

Definition at line 520 of file SeeingRow.h.

float asdm::SeeingRow::exponent
private

===> Attribute exponent

Definition at line 553 of file SeeingRow.h.

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

Definition at line 572 of file SeeingRow.h.

* text deserialization material std::map<std::string, SeeingAttributeFromText> asdm::SeeingRow::fromTextMethods
private

Definition at line 586 of file SeeingRow.h.

bool asdm::SeeingRow::hasBeenAdded
private

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

Definition at line 454 of file SeeingRow.h.

int asdm::SeeingRow::numBaseLength
private

===> Attribute numBaseLength

Definition at line 509 of file SeeingRow.h.

std::vector<Angle > asdm::SeeingRow::phaseRms
private

===> Attribute phaseRms

Definition at line 531 of file SeeingRow.h.

float asdm::SeeingRow::seeing
private

===> Attribute seeing

Definition at line 542 of file SeeingRow.h.

SeeingTable& asdm::SeeingRow::table
private

The table to which this row belongs.

Definition at line 450 of file SeeingRow.h.


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