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

The PointingModelRow class is a row of a PointingModelTable. More...

#include <PointingModelRow.h>

Public Member Functions

virtual ~PointingModelRow ()
 friend class asdm::TableStreamReader<PointingModelTable, PointingModelRow>; More...
 
PointingModelTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? More...
 
int getNumCoeff () const
 ===> Attribute numCoeff More...
 
void setNumCoeff (int numCoeff)
 Set numCoeff with the specified int. More...
 
std::vector< std::string > getCoeffName () const
 ===> Attribute coeffName More...
 
void setCoeffName (std::vector< std::string > coeffName)
 Set coeffName with the specified std::vector<std::string >. More...
 
std::vector< float > getCoeffVal () const
 ===> Attribute coeffVal More...
 
void setCoeffVal (std::vector< float > coeffVal)
 Set coeffVal with the specified std::vector<float >. More...
 
PolarizationTypeMod::PolarizationType getPolarizationType () const
 ===> Attribute polarizationType More...
 
void setPolarizationType (PolarizationTypeMod::PolarizationType polarizationType)
 Set polarizationType with the specified PolarizationTypeMod::PolarizationType. More...
 
ReceiverBandMod::ReceiverBand getReceiverBand () const
 ===> Attribute receiverBand More...
 
void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand)
 Set receiverBand with the specified ReceiverBandMod::ReceiverBand. More...
 
std::string getAssocNature () const
 ===> Attribute assocNature More...
 
void setAssocNature (std::string assocNature)
 Set assocNature with the specified std::string. More...
 
bool isCoeffFormulaExists () const
 ===> Attribute coeffFormula, which is optional More...
 
std::vector< std::string > getCoeffFormula () const
 Get coeffFormula, which is optional. More...
 
void setCoeffFormula (std::vector< std::string > coeffFormula)
 Set coeffFormula with the specified std::vector<std::string >. More...
 
void clearCoeffFormula ()
 Mark coeffFormula, which is an optional field, as non-existent. More...
 
void setAntennaId (Tag antennaId)
 Set antennaId with the specified Tag. More...
 
int getAssocPointingModelId () const
 ===> Attribute assocPointingModelId More...
 
void setAssocPointingModelId (int assocPointingModelId)
 Set assocPointingModelId with the specified int. More...
 
AntennaRowgetAntennaUsingAntennaId ()
 antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId More...
 
bool compareNoAutoInc (Tag antennaId, int numCoeff, std::vector< std::string > coeffName, std::vector< float > coeffVal, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, std::string assocNature, int assocPointingModelId)
 Compare each mandatory attribute except the autoincrementable one of this PointingModelRow with the corresponding parameters and return true if there is a match and false otherwise. More...
 
bool compareRequiredValue (int numCoeff, std::vector< std::string > coeffName, std::vector< float > coeffVal, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, std::string assocNature, int assocPointingModelId)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (PointingModelRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::PointingModelRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::PointingModelRowIDL &x) const
 Define the content of a PointingModelRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::PointingModelRowIDL x)
 Fill the values of this row from the IDL struct PointingModelRowIDL. 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
 
Extrinsic Table Attributes
 
 Links
 

Private Member Functions

void isAdded (bool added)
 This method is used by the Table class when this row is added to the table. More...
 
 PointingModelRow (PointingModelTable &table)
 Create a PointingModelRow. More...
 
 PointingModelRow (PointingModelTable &table, PointingModelRow *row)
 Create a PointingModelRow using a copy constructor mechanism. More...
 
void setPointingModelId (int pointingModelId)
 Set pointingModelId with the specified int value. More...
 
void antennaIdFromBin (EndianIStream &eis)
 
void pointingModelIdFromBin (EndianIStream &eis)
 
void numCoeffFromBin (EndianIStream &eis)
 
void coeffNameFromBin (EndianIStream &eis)
 
void coeffValFromBin (EndianIStream &eis)
 
void polarizationTypeFromBin (EndianIStream &eis)
 
void receiverBandFromBin (EndianIStream &eis)
 
void assocNatureFromBin (EndianIStream &eis)
 
void assocPointingModelIdFromBin (EndianIStream &eis)
 
void coeffFormulaFromBin (EndianIStream &eis)
 
void antennaIdFromText (const std::string &s)
 
void pointingModelIdFromText (const std::string &s)
 
void numCoeffFromText (const std::string &s)
 
void coeffNameFromText (const std::string &s)
 
void coeffValFromText (const std::string &s)
 
void polarizationTypeFromText (const std::string &s)
 
void receiverBandFromText (const std::string &s)
 
void assocNatureFromText (const std::string &s)
 
void assocPointingModelIdFromText (const std::string &s)
 
void coeffFormulaFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

PointingModelTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
int numCoeff
 ===> Attribute numCoeff More...
 
std::vector< std::string > coeffName
 ===> Attribute coeffName More...
 
std::vector< float > coeffVal
 ===> Attribute coeffVal More...
 
PolarizationTypeMod::PolarizationType polarizationType
 ===> Attribute polarizationType More...
 
ReceiverBandMod::ReceiverBand receiverBand
 ===> Attribute receiverBand More...
 
std::string assocNature
 ===> Attribute assocNature More...
 
bool coeffFormulaExists
 ===> Attribute coeffFormula, which is optional More...
 
std::vector< std::string > coeffFormula
 
int assocPointingModelId
 ===> Attribute assocPointingModelId More...
 
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
PointingModelAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
PointingModelAttributeFromText
fromTextMethods
 

Friends

class asdm::PointingModelTable
 
class asdm::RowTransformer< PointingModelRow >
 

Detailed Description

The PointingModelRow class is a row of a PointingModelTable.

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

Definition at line 112 of file PointingModelRow.h.

Constructor & Destructor Documentation

virtual asdm::PointingModelRow::~PointingModelRow ( )
virtual

friend class asdm::TableStreamReader<PointingModelTable, PointingModelRow>;

asdm::PointingModelRow::PointingModelRow ( PointingModelTable table)
private

Create a PointingModelRow.

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::PointingModelRow::PointingModelRow ( PointingModelTable table,
PointingModelRow row 
)
private

Create a PointingModelRow using a copy constructor mechanism.

Given a PointingModelRow row and a PointingModelTable table, the method creates a new PointingModelRow 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::PointingModelRow::antennaIdFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::antennaIdFromText ( const std::string &  s)
private
void asdm::PointingModelRow::assocNatureFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::assocNatureFromText ( const std::string &  s)
private
void asdm::PointingModelRow::assocPointingModelIdFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::assocPointingModelIdFromText ( const std::string &  s)
private
void asdm::PointingModelRow::clearCoeffFormula ( )

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

void asdm::PointingModelRow::coeffFormulaFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::coeffFormulaFromText ( const std::string &  s)
private
void asdm::PointingModelRow::coeffNameFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::coeffNameFromText ( const std::string &  s)
private
void asdm::PointingModelRow::coeffValFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::coeffValFromText ( const std::string &  s)
private
bool asdm::PointingModelRow::compareNoAutoInc ( Tag  antennaId,
int  numCoeff,
std::vector< std::string >  coeffName,
std::vector< float >  coeffVal,
PolarizationTypeMod::PolarizationType  polarizationType,
ReceiverBandMod::ReceiverBand  receiverBand,
std::string  assocNature,
int  assocPointingModelId 
)

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

Parameters
antennaId
numCoeff
coeffName
coeffVal
polarizationType
receiverBand
assocNature
assocPointingModelId
bool asdm::PointingModelRow::compareRequiredValue ( int  numCoeff,
std::vector< std::string >  coeffName,
std::vector< float >  coeffVal,
PolarizationTypeMod::PolarizationType  polarizationType,
ReceiverBandMod::ReceiverBand  receiverBand,
std::string  assocNature,
int  assocPointingModelId 
)

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
numCoeff
coeffName
coeffVal
polarizationType
receiverBand
assocNature
assocPointingModelId
bool asdm::PointingModelRow::equalByRequiredValue ( PointingModelRow 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 PointingModelRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
AntennaRow* asdm::PointingModelRow::getAntennaUsingAntennaId ( )

antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId

Returns
a AntennaRow*
std::string asdm::PointingModelRow::getAssocNature ( ) const

===> Attribute assocNature

Get assocNature.

Returns
assocNature as std::string
int asdm::PointingModelRow::getAssocPointingModelId ( ) const

===> Attribute assocPointingModelId

Get assocPointingModelId.

Returns
assocPointingModelId as int
std::vector<std::string > asdm::PointingModelRow::getCoeffFormula ( ) const

Get coeffFormula, which is optional.

Returns
coeffFormula as std::vector<std::string >
Exceptions
IllegalAccessExceptionIf coeffFormula does not exist.
std::vector<std::string > asdm::PointingModelRow::getCoeffName ( ) const

===> Attribute coeffName

Get coeffName.

Returns
coeffName as std::vector<std::string >
std::vector<float > asdm::PointingModelRow::getCoeffVal ( ) const

===> Attribute coeffVal

Get coeffVal.

Returns
coeffVal as std::vector<float >
int asdm::PointingModelRow::getNumCoeff ( ) const

===> Attribute numCoeff

Get numCoeff.

Returns
numCoeff as int
PolarizationTypeMod::PolarizationType asdm::PointingModelRow::getPolarizationType ( ) const

===> Attribute polarizationType

Get polarizationType.

Returns
polarizationType as PolarizationTypeMod::PolarizationType
ReceiverBandMod::ReceiverBand asdm::PointingModelRow::getReceiverBand ( ) const

===> Attribute receiverBand

Get receiverBand.

Returns
receiverBand as ReceiverBandMod::ReceiverBand
PointingModelTable& asdm::PointingModelRow::getTable ( ) const

Return the table to which this row belongs.

bool asdm::PointingModelRow::isAdded ( ) const

Has this row been added to its table ?

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

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

bool asdm::PointingModelRow::isCoeffFormulaExists ( ) const

===> Attribute coeffFormula, which is optional

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

Returns
true if and only if the coeffFormula attribute exists.
void asdm::PointingModelRow::numCoeffFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::numCoeffFromText ( const std::string &  s)
private
void asdm::PointingModelRow::pointingModelIdFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::pointingModelIdFromText ( const std::string &  s)
private
void asdm::PointingModelRow::polarizationTypeFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::polarizationTypeFromText ( const std::string &  s)
private
void asdm::PointingModelRow::receiverBandFromBin ( EndianIStream eis)
private
void asdm::PointingModelRow::receiverBandFromText ( const std::string &  s)
private
void asdm::PointingModelRow::setAntennaId ( Tag  antennaId)

Set antennaId with the specified Tag.

Parameters
antennaIdThe Tag value to which antennaId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::PointingModelRow::setAssocNature ( std::string  assocNature)

Set assocNature with the specified std::string.

Parameters
assocNatureThe std::string value to which assocNature is to be set.
void asdm::PointingModelRow::setAssocPointingModelId ( int  assocPointingModelId)

Set assocPointingModelId with the specified int.

Parameters
assocPointingModelIdThe int value to which assocPointingModelId is to be set.
void asdm::PointingModelRow::setCoeffFormula ( std::vector< std::string >  coeffFormula)

Set coeffFormula with the specified std::vector<std::string >.

Parameters
coeffFormulaThe std::vector<std::string > value to which coeffFormula is to be set.
void asdm::PointingModelRow::setCoeffName ( std::vector< std::string >  coeffName)

Set coeffName with the specified std::vector<std::string >.

Parameters
coeffNameThe std::vector<std::string > value to which coeffName is to be set.
void asdm::PointingModelRow::setCoeffVal ( std::vector< float >  coeffVal)

Set coeffVal with the specified std::vector<float >.

Parameters
coeffValThe std::vector<float > value to which coeffVal is to be set.
void asdm::PointingModelRow::setFromIDL ( asdmIDL::PointingModelRowIDL  x)

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

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

Set numCoeff with the specified int.

Parameters
numCoeffThe int value to which numCoeff is to be set.
void asdm::PointingModelRow::setPointingModelId ( int  pointingModelId)
private

Set pointingModelId with the specified int value.

Parameters
pointingModelIdThe int value to which pointingModelId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::PointingModelRow::setPolarizationType ( PolarizationTypeMod::PolarizationType  polarizationType)

Set polarizationType with the specified PolarizationTypeMod::PolarizationType.

Parameters
polarizationTypeThe PolarizationTypeMod::PolarizationType value to which polarizationType is to be set.
void asdm::PointingModelRow::setReceiverBand ( ReceiverBandMod::ReceiverBand  receiverBand)

Set receiverBand with the specified ReceiverBandMod::ReceiverBand.

Parameters
receiverBandThe ReceiverBandMod::ReceiverBand value to which receiverBand is to be set.
void asdm::PointingModelRow::toBin ( EndianOSStream eoss)
private

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

Parameters
eossthe EndianOSStream to be written to
asdmIDL::PointingModelRowIDL* asdm::PointingModelRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

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

Parameters
xa reference to the PointingModelRowIDL struct to be set.
std::string asdm::PointingModelRow::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::PointingModelTable
friend

Definition at line 113 of file PointingModelRow.h.

friend class asdm::RowTransformer< PointingModelRow >
friend

Definition at line 114 of file PointingModelRow.h.

Member Data Documentation

std::string asdm::PointingModelRow::assocNature
private

===> Attribute assocNature

Definition at line 747 of file PointingModelRow.h.

int asdm::PointingModelRow::assocPointingModelId
private

===> Attribute assocPointingModelId

Definition at line 786 of file PointingModelRow.h.

Extrinsic Table asdm::PointingModelRow::Attributes

Definition at line 137 of file PointingModelRow.h.

Extrinsic Table asdm::PointingModelRow::Attributes

Definition at line 382 of file PointingModelRow.h.

std::vector<std::string > asdm::PointingModelRow::coeffFormula
private

Definition at line 760 of file PointingModelRow.h.

bool asdm::PointingModelRow::coeffFormulaExists
private

===> Attribute coeffFormula, which is optional

Definition at line 757 of file PointingModelRow.h.

std::vector<std::string > asdm::PointingModelRow::coeffName
private

===> Attribute coeffName

Definition at line 703 of file PointingModelRow.h.

std::vector<float > asdm::PointingModelRow::coeffVal
private

===> Attribute coeffVal

Definition at line 714 of file PointingModelRow.h.

Links* binary deserialization material from an EndianIStream std::map<std::string, PointingModelAttributeFromBin> asdm::PointingModelRow::fromBinMethods
private

Definition at line 814 of file PointingModelRow.h.

* text deserialization material std::map<std::string, PointingModelAttributeFromText> asdm::PointingModelRow::fromTextMethods
private

Definition at line 832 of file PointingModelRow.h.

bool asdm::PointingModelRow::hasBeenAdded
private

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

Definition at line 625 of file PointingModelRow.h.

asdm::PointingModelRow::Links

Definition at line 451 of file PointingModelRow.h.

int asdm::PointingModelRow::numCoeff
private

===> Attribute numCoeff

Definition at line 692 of file PointingModelRow.h.

PolarizationTypeMod::PolarizationType asdm::PointingModelRow::polarizationType
private

===> Attribute polarizationType

Definition at line 725 of file PointingModelRow.h.

ReceiverBandMod::ReceiverBand asdm::PointingModelRow::receiverBand
private

===> Attribute receiverBand

Definition at line 736 of file PointingModelRow.h.

PointingModelTable& asdm::PointingModelRow::table
private

The table to which this row belongs.

Definition at line 621 of file PointingModelRow.h.


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