asdm::PointingModelRow Class Reference

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

#include <PointingModelRow.h>

List of all members.

Public Member Functions

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

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.
 PointingModelRow (PointingModelTable &table)
 Create a PointingModelRow.
 PointingModelRow (PointingModelTable &table, PointingModelRow &row)
 Create a PointingModelRow using a copy constructor mechanism.
void setPointingModelId (int pointingModelId)
 Set pointingModelId with the specified int value.
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 string &s)
void pointingModelIdFromText (const string &s)
void numCoeffFromText (const string &s)
void coeffNameFromText (const string &s)
void coeffValFromText (const string &s)
void polarizationTypeFromText (const string &s)
void receiverBandFromText (const string &s)
void assocNatureFromText (const string &s)
void assocPointingModelIdFromText (const string &s)
void coeffFormulaFromText (const string &s)
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream.

Private Attributes

PointingModelTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
int numCoeff
 ===> Attribute numCoeff
vector< string > coeffName
 ===> Attribute coeffName
vector< float > coeffVal
 ===> Attribute coeffVal
PolarizationTypeMod::PolarizationType polarizationType
 ===> Attribute polarizationType
ReceiverBandMod::ReceiverBand receiverBand
 ===> Attribute receiverBand
string assocNature
 ===> Attribute assocNature
bool coeffFormulaExists
 ===> Attribute coeffFormula, which is optional
vector< string > coeffFormula
int assocPointingModelId
 ===> Attribute assocPointingModelId
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.64", branch "HEAD"

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:
table The 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:
table The table to which this row belongs.
row The row which is to be copied.

Member Function Documentation

void asdm::PointingModelRow::antennaIdFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::antennaIdFromText ( const string &  s  )  [private]
void asdm::PointingModelRow::assocNatureFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::assocNatureFromText ( const string &  s  )  [private]
void asdm::PointingModelRow::assocPointingModelIdFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::assocPointingModelIdFromText ( const 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 string &  s  )  [private]
void asdm::PointingModelRow::coeffNameFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::coeffNameFromText ( const string &  s  )  [private]
void asdm::PointingModelRow::coeffValFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::coeffValFromText ( const string &  s  )  [private]
bool asdm::PointingModelRow::compareNoAutoInc ( Tag  antennaId,
int  numCoeff,
vector< string >  coeffName,
vector< float >  coeffVal,
PolarizationTypeMod::PolarizationType  polarizationType,
ReceiverBandMod::ReceiverBand  receiverBand,
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,
vector< string >  coeffName,
vector< float >  coeffVal,
PolarizationTypeMod::PolarizationType  polarizationType,
ReceiverBandMod::ReceiverBand  receiverBand,
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:
x a 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*
string asdm::PointingModelRow::getAssocNature (  )  const

===> Attribute assocNature

Get assocNature.

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

===> Attribute assocPointingModelId

Get assocPointingModelId.

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

Get coeffFormula, which is optional.

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

===> Attribute coeffName

Get coeffName.

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

===> Attribute coeffVal

Get coeffVal.

Returns:
coeffVal as 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.

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::isAdded (  )  const

Has this row been added to its table ?

Returns:
true if and only if it has been added.
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 string &  s  )  [private]
void asdm::PointingModelRow::pointingModelIdFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::pointingModelIdFromText ( const string &  s  )  [private]
void asdm::PointingModelRow::polarizationTypeFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::polarizationTypeFromText ( const string &  s  )  [private]
void asdm::PointingModelRow::receiverBandFromBin ( EndianIStream eis  )  [private]
void asdm::PointingModelRow::receiverBandFromText ( const string &  s  )  [private]
void asdm::PointingModelRow::setAntennaId ( Tag  antennaId  ) 

Set antennaId with the specified Tag.

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

Set assocNature with the specified string.

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

Set assocPointingModelId with the specified int.

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

Set coeffFormula with the specified vector<string >.

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

Set coeffName with the specified vector<string >.

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

Set coeffVal with the specified vector<float >.

Parameters:
coeffVal The 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:
x The 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:
rowDoc the 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:
numCoeff The int value to which numCoeff is to be set.
void asdm::PointingModelRow::setPointingModelId ( int  pointingModelId  )  [private]

Set pointingModelId with the specified int value.

Parameters:
pointingModelId The int value to which pointingModelId is to be set.
Exceptions:
IllegalAccessException If 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:
polarizationType The 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:
receiverBand The 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:
eoss the EndianOSStream to be written to
void asdm::PointingModelRow::toIDL ( asdmIDL::PointingModelRowIDL &  x  )  const

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

Parameters:
x a reference to the PointingModelRowIDL struct to be set.
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.
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

===> Attribute assocNature

Definition at line 747 of file PointingModelRow.h.

===> Attribute assocPointingModelId

Definition at line 786 of file PointingModelRow.h.

Definition at line 382 of file PointingModelRow.h.

Definition at line 137 of file PointingModelRow.h.

vector<string > asdm::PointingModelRow::coeffFormula [private]

Definition at line 760 of file PointingModelRow.h.

===> Attribute coeffFormula, which is optional

Definition at line 757 of file PointingModelRow.h.

vector<string > asdm::PointingModelRow::coeffName [private]

===> Attribute coeffName

Definition at line 703 of file PointingModelRow.h.

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.

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

Definition at line 625 of file PointingModelRow.h.

Definition at line 451 of file PointingModelRow.h.

===> 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.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1