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

The FocusModelRow class is a row of a FocusModelTable. More...

#include <FocusModelRow.h>

Public Member Functions

virtual ~FocusModelRow ()
 friend class asdm::TableStreamReader<FocusModelTable, FocusModelRow>; More...
 
FocusModelTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? 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...
 
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< std::string > getCoeffFormula () const
 ===> Attribute coeffFormula More...
 
void setCoeffFormula (std::vector< std::string > coeffFormula)
 Set coeffFormula 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...
 
std::string getAssocNature () const
 ===> Attribute assocNature More...
 
void setAssocNature (std::string assocNature)
 Set assocNature with the specified std::string. More...
 
void setAntennaId (Tag antennaId)
 Set antennaId with the specified Tag. More...
 
int getAssocFocusModelId () const
 ===> Attribute assocFocusModelId More...
 
void setAssocFocusModelId (int assocFocusModelId)
 Set assocFocusModelId with the specified int. More...
 
Links *AntennaRowgetAntennaUsingAntennaId ()
 antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId More...
 
std::vector< FocusModelRow * > getFocusModels ()
 ===> Slice link from a row of FocusModel table to a collection of row of FocusModel table. More...
 
bool compareNoAutoInc (Tag antennaId, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, int numCoeff, std::vector< std::string > coeffName, std::vector< std::string > coeffFormula, std::vector< float > coeffVal, std::string assocNature, int assocFocusModelId)
 Compare each mandatory attribute except the autoincrementable one of this FocusModelRow with the corresponding parameters and return true if there is a match and false otherwise. More...
 
bool compareRequiredValue (PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, int numCoeff, std::vector< std::string > coeffName, std::vector< std::string > coeffFormula, std::vector< float > coeffVal, std::string assocNature, int assocFocusModelId)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (FocusModelRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::FocusModelRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::FocusModelRowIDL &x) const
 Define the content of a FocusModelRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::FocusModelRowIDL x)
 Fill the values of this row from the IDL struct FocusModelRowIDL. 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
 

Private Member Functions

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

Private Attributes

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

Friends

class asdm::FocusModelTable
 
class asdm::RowTransformer< FocusModelRow >
 

Detailed Description

The FocusModelRow class is a row of a FocusModelTable.

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

Definition at line 112 of file FocusModelRow.h.

Constructor & Destructor Documentation

virtual asdm::FocusModelRow::~FocusModelRow ( )
virtual

friend class asdm::TableStreamReader<FocusModelTable, FocusModelRow>;

asdm::FocusModelRow::FocusModelRow ( FocusModelTable table)
private

Create a FocusModelRow.

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::FocusModelRow::FocusModelRow ( FocusModelTable table,
FocusModelRow row 
)
private

Create a FocusModelRow using a copy constructor mechanism.

Given a FocusModelRow row and a FocusModelTable table, the method creates a new FocusModelRow 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::FocusModelRow::antennaIdFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::antennaIdFromText ( const std::string &  s)
private
void asdm::FocusModelRow::assocFocusModelIdFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::assocFocusModelIdFromText ( const std::string &  s)
private
void asdm::FocusModelRow::assocNatureFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::assocNatureFromText ( const std::string &  s)
private
void asdm::FocusModelRow::coeffFormulaFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::coeffFormulaFromText ( const std::string &  s)
private
void asdm::FocusModelRow::coeffNameFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::coeffNameFromText ( const std::string &  s)
private
void asdm::FocusModelRow::coeffValFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::coeffValFromText ( const std::string &  s)
private
bool asdm::FocusModelRow::compareNoAutoInc ( Tag  antennaId,
PolarizationTypeMod::PolarizationType  polarizationType,
ReceiverBandMod::ReceiverBand  receiverBand,
int  numCoeff,
std::vector< std::string >  coeffName,
std::vector< std::string >  coeffFormula,
std::vector< float >  coeffVal,
std::string  assocNature,
int  assocFocusModelId 
)

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

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

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
polarizationType
receiverBand
numCoeff
coeffName
coeffFormula
coeffVal
assocNature
assocFocusModelId
bool asdm::FocusModelRow::equalByRequiredValue ( FocusModelRow 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 FocusModelRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
void asdm::FocusModelRow::focusModelIdFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::focusModelIdFromText ( const std::string &  s)
private
Links* AntennaRow* asdm::FocusModelRow::getAntennaUsingAntennaId ( )

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

Returns
a AntennaRow*
int asdm::FocusModelRow::getAssocFocusModelId ( ) const

===> Attribute assocFocusModelId

Get assocFocusModelId.

Returns
assocFocusModelId as int
std::string asdm::FocusModelRow::getAssocNature ( ) const

===> Attribute assocNature

Get assocNature.

Returns
assocNature as std::string
std::vector<std::string > asdm::FocusModelRow::getCoeffFormula ( ) const

===> Attribute coeffFormula

Get coeffFormula.

Returns
coeffFormula as std::vector<std::string >
std::vector<std::string > asdm::FocusModelRow::getCoeffName ( ) const

===> Attribute coeffName

Get coeffName.

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

===> Attribute coeffVal

Get coeffVal.

Returns
coeffVal as std::vector<float >
std::vector<FocusModelRow *> asdm::FocusModelRow::getFocusModels ( )

===> Slice link from a row of FocusModel table to a collection of row of FocusModel table.

Get the collection of row in the FocusModel table having focusModelId == this.focusModelId

Returns
a vector of FocusModelRow *
int asdm::FocusModelRow::getNumCoeff ( ) const

===> Attribute numCoeff

Get numCoeff.

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

===> Attribute polarizationType

Get polarizationType.

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

===> Attribute receiverBand

Get receiverBand.

Returns
receiverBand as ReceiverBandMod::ReceiverBand
FocusModelTable& asdm::FocusModelRow::getTable ( ) const

Return the table to which this row belongs.

bool asdm::FocusModelRow::isAdded ( ) const

Has this row been added to its table ?

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

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

void asdm::FocusModelRow::numCoeffFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::numCoeffFromText ( const std::string &  s)
private
void asdm::FocusModelRow::polarizationTypeFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::polarizationTypeFromText ( const std::string &  s)
private
void asdm::FocusModelRow::receiverBandFromBin ( EndianIStream eis)
private
void asdm::FocusModelRow::receiverBandFromText ( const std::string &  s)
private
void asdm::FocusModelRow::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::FocusModelRow::setAssocFocusModelId ( int  assocFocusModelId)

Set assocFocusModelId with the specified int.

Parameters
assocFocusModelIdThe int value to which assocFocusModelId is to be set.
void asdm::FocusModelRow::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::FocusModelRow::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::FocusModelRow::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::FocusModelRow::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::FocusModelRow::setFocusModelId ( int  focusModelId)
private

Set focusModelId with the specified int value.

Parameters
focusModelIdThe int value to which focusModelId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::FocusModelRow::setFromIDL ( asdmIDL::FocusModelRowIDL  x)

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

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

Set numCoeff with the specified int.

Parameters
numCoeffThe int value to which numCoeff is to be set.
void asdm::FocusModelRow::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::FocusModelRow::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::FocusModelRow::toBin ( EndianOSStream eoss)
private

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

Parameters
eossthe EndianOSStream to be written to
asdmIDL::FocusModelRowIDL* asdm::FocusModelRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

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

Parameters
xa reference to the FocusModelRowIDL struct to be set.
std::string asdm::FocusModelRow::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::FocusModelTable
friend

Definition at line 113 of file FocusModelRow.h.

friend class asdm::RowTransformer< FocusModelRow >
friend

Definition at line 114 of file FocusModelRow.h.

Member Data Documentation

int asdm::FocusModelRow::assocFocusModelId
private

===> Attribute assocFocusModelId

Definition at line 777 of file FocusModelRow.h.

std::string asdm::FocusModelRow::assocNature
private

===> Attribute assocNature

Definition at line 751 of file FocusModelRow.h.

Extrinsic Table asdm::FocusModelRow::Attributes

Definition at line 137 of file FocusModelRow.h.

Extrinsic Table asdm::FocusModelRow::Attributes

Definition at line 371 of file FocusModelRow.h.

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

===> Attribute coeffFormula

Definition at line 729 of file FocusModelRow.h.

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

===> Attribute coeffName

Definition at line 718 of file FocusModelRow.h.

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

===> Attribute coeffVal

Definition at line 740 of file FocusModelRow.h.

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

Definition at line 805 of file FocusModelRow.h.

* text deserialization material std::map<std::string, FocusModelAttributeFromText> asdm::FocusModelRow::fromTextMethods
private

Definition at line 823 of file FocusModelRow.h.

bool asdm::FocusModelRow::hasBeenAdded
private

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

Definition at line 618 of file FocusModelRow.h.

int asdm::FocusModelRow::numCoeff
private

===> Attribute numCoeff

Definition at line 707 of file FocusModelRow.h.

PolarizationTypeMod::PolarizationType asdm::FocusModelRow::polarizationType
private

===> Attribute polarizationType

Definition at line 685 of file FocusModelRow.h.

ReceiverBandMod::ReceiverBand asdm::FocusModelRow::receiverBand
private

===> Attribute receiverBand

Definition at line 696 of file FocusModelRow.h.

FocusModelTable& asdm::FocusModelRow::table
private

The table to which this row belongs.

Definition at line 614 of file FocusModelRow.h.


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