casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
asdm::PolarizationRow Class Reference

The PolarizationRow class is a row of a PolarizationTable. More...

#include <PolarizationRow.h>

List of all members.

Public Member Functions

virtual ~PolarizationRow ()
 friend class asdm::TableStreamReader<PolarizationTable, PolarizationRow>;
PolarizationTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table ?
int getNumCorr () const
 ===> Attribute numCorr
void setNumCorr (int numCorr)
 Set numCorr with the specified int.
vector
< StokesParameterMod::StokesParameter > 
getCorrType () const
 ===> Attribute corrType
void setCorrType (vector< StokesParameterMod::StokesParameter > corrType)
 Set corrType with the specified vector<StokesParameterMod::StokesParameter >.
vector< vector
< PolarizationTypeMod::PolarizationType > > 
getCorrProduct () const
 ===> Attribute corrProduct
void setCorrProduct (vector< vector< PolarizationTypeMod::PolarizationType > > corrProduct)
 Set corrProduct with the specified vector<vector<PolarizationTypeMod::PolarizationType > >.
Extrinsic Table Attributes
Links *bool 
compareNoAutoInc (int numCorr, vector< StokesParameterMod::StokesParameter > corrType, vector< vector< PolarizationTypeMod::PolarizationType > > corrProduct)
 Compare each mandatory attribute except the autoincrementable one of this PolarizationRow with the corresponding parameters and return true if there is a match and false otherwise.
bool compareRequiredValue (int numCorr, vector< StokesParameterMod::StokesParameter > corrType, vector< vector< PolarizationTypeMod::PolarizationType > > corrProduct)
 Compare each mandatory value (i.e.
bool equalByRequiredValue (PolarizationRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::PolarizationRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void toIDL (asdmIDL::PolarizationRowIDL &x) const
 Define the content of a PolarizationRowIDL struct from the values found in this row.
void setFromIDL (asdmIDL::PolarizationRowIDL x)
 Fill the values of this row from the IDL struct PolarizationRowIDL.
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.
virtual ~PolarizationRow ()
 friend class asdm::TableStreamReader<PolarizationTable, PolarizationRow>;
PolarizationTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table ?
int getNumCorr () const
 ===> Attribute numCorr
void setNumCorr (int numCorr)
 Set numCorr with the specified int.
vector
< StokesParameterMod::StokesParameter > 
getCorrType () const
 ===> Attribute corrType
void setCorrType (vector< StokesParameterMod::StokesParameter > corrType)
 Set corrType with the specified vector<StokesParameterMod::StokesParameter >.
vector< vector
< PolarizationTypeMod::PolarizationType > > 
getCorrProduct () const
 ===> Attribute corrProduct
void setCorrProduct (vector< vector< PolarizationTypeMod::PolarizationType > > corrProduct)
 Set corrProduct with the specified vector<vector<PolarizationTypeMod::PolarizationType > >.
Extrinsic Table Attributes
Links *bool 
compareNoAutoInc (int numCorr, vector< StokesParameterMod::StokesParameter > corrType, vector< vector< PolarizationTypeMod::PolarizationType > > corrProduct)
 Compare each mandatory attribute except the autoincrementable one of this PolarizationRow with the corresponding parameters and return true if there is a match and false otherwise.
bool compareRequiredValue (int numCorr, vector< StokesParameterMod::StokesParameter > corrType, vector< vector< PolarizationTypeMod::PolarizationType > > corrProduct)
 Compare each mandatory value (i.e.
bool equalByRequiredValue (PolarizationRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::PolarizationRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void setFromIDL (asdmIDL::PolarizationRowIDL x)
 Fill the values of this row from the IDL struct PolarizationRowIDL.
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

Private Member Functions

void isAdded (bool added)
 This method is used by the Table class when this row is added to the table.
 PolarizationRow (PolarizationTable &table)
 Create a PolarizationRow.
 PolarizationRow (PolarizationTable &table, PolarizationRow &row)
 Create a PolarizationRow using a copy constructor mechanism.
void setPolarizationId (Tag polarizationId)
 Set polarizationId with the specified Tag value.
void polarizationIdFromBin (EndianIStream &eis)
void numCorrFromBin (EndianIStream &eis)
void corrTypeFromBin (EndianIStream &eis)
void corrProductFromBin (EndianIStream &eis)
void polarizationIdFromText (const string &s)
void numCorrFromText (const string &s)
void corrTypeFromText (const string &s)
void corrProductFromText (const string &s)
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream.
void isAdded (bool added)
 This method is used by the Table class when this row is added to the table.
 PolarizationRow (PolarizationTable &table)
 Create a PolarizationRow.
 PolarizationRow (PolarizationTable &table, PolarizationRow &row)
 Create a PolarizationRow using a copy constructor mechanism.
void setPolarizationId (Tag polarizationId)
 Set polarizationId with the specified Tag value.
void polarizationIdFromBin (EndianIStream &eis)
void numCorrFromBin (EndianIStream &eis)
void corrTypeFromBin (EndianIStream &eis)
void corrProductFromBin (EndianIStream &eis)
void polarizationIdFromText (const string &s)
void numCorrFromText (const string &s)
void corrTypeFromText (const string &s)
void corrProductFromText (const string &s)
void fromText (const std::string &attributeName, const std::string &t)
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream.

Private Attributes

PolarizationTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
int numCorr
 ===> Attribute numCorr
vector
< StokesParameterMod::StokesParameter > 
corrType
 ===> Attribute corrType
vector< vector
< PolarizationTypeMod::PolarizationType > > 
corrProduct
 ===> Attribute corrProduct
Extrinsic Table Attributes
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
PolarizationAttributeFromBin
fromBinMethods
*text deserialization material
std::map< std::string,
PolarizationAttributeFromText
fromTextMethods

Friends

class asdm::PolarizationTable
class asdm::RowTransformer< PolarizationRow >

Detailed Description

The PolarizationRow class is a row of a PolarizationTable.

Generated from model's revision "1.64", branch "HEAD"

Generated from model's revision "1.61", branch "HEAD"

Definition at line 98 of file PolarizationRow.h.


Constructor & Destructor Documentation

friend class asdm::TableStreamReader<PolarizationTable, PolarizationRow>;

Create a PolarizationRow.

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.

Create a PolarizationRow using a copy constructor mechanism.

Given a PolarizationRow row and a PolarizationTable table, the method creates a new PolarizationRow 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.

friend class asdm::TableStreamReader<PolarizationTable, PolarizationRow>;

Create a PolarizationRow.

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.

Create a PolarizationRow using a copy constructor mechanism.

Given a PolarizationRow row and a PolarizationTable table, the method creates a new PolarizationRow 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

Extrinsic Table Attributes Links* bool asdm::PolarizationRow::compareNoAutoInc ( int  numCorr,
vector< StokesParameterMod::StokesParameter >  corrType,
vector< vector< PolarizationTypeMod::PolarizationType > >  corrProduct 
)

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

Parameters:
numCorr
corrType
corrProduct
Extrinsic Table Attributes Links* bool asdm::PolarizationRow::compareNoAutoInc ( int  numCorr,
vector< StokesParameterMod::StokesParameter >  corrType,
vector< vector< PolarizationTypeMod::PolarizationType > >  corrProduct 
)

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

Parameters:
numCorr
corrType
corrProduct
bool asdm::PolarizationRow::compareRequiredValue ( int  numCorr,
vector< StokesParameterMod::StokesParameter >  corrType,
vector< vector< PolarizationTypeMod::PolarizationType > >  corrProduct 
)

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:
numCorr
corrType
corrProduct
bool asdm::PolarizationRow::compareRequiredValue ( int  numCorr,
vector< StokesParameterMod::StokesParameter >  corrType,
vector< vector< PolarizationTypeMod::PolarizationType > >  corrProduct 
)

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:
numCorr
corrType
corrProduct
void asdm::PolarizationRow::corrProductFromText ( const string &  s) [private]
void asdm::PolarizationRow::corrProductFromText ( const string &  s) [private]
void asdm::PolarizationRow::corrTypeFromText ( const string &  s) [private]
void asdm::PolarizationRow::corrTypeFromText ( const string &  s) [private]

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 PolarizationRow whose required attributes of the value part will be compared with those of this.
Returns:
a boolean.

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 PolarizationRow whose required attributes of the value part will be compared with those of this.
Returns:
a boolean.
void asdm::PolarizationRow::fromText ( const std::string &  attributeName,
const std::string &  t 
) [private]
vector<vector<PolarizationTypeMod::PolarizationType > > asdm::PolarizationRow::getCorrProduct ( ) const

===> Attribute corrProduct

         

Get corrProduct.

Returns:
corrProduct as vector<vector<PolarizationTypeMod::PolarizationType > >
vector<vector<PolarizationTypeMod::PolarizationType > > asdm::PolarizationRow::getCorrProduct ( ) const

===> Attribute corrProduct

         

Get corrProduct.

Returns:
corrProduct as vector<vector<PolarizationTypeMod::PolarizationType > >
vector<StokesParameterMod::StokesParameter > asdm::PolarizationRow::getCorrType ( ) const

===> Attribute corrType

         

Get corrType.

Returns:
corrType as vector<StokesParameterMod::StokesParameter >
vector<StokesParameterMod::StokesParameter > asdm::PolarizationRow::getCorrType ( ) const

===> Attribute corrType

         

Get corrType.

Returns:
corrType as vector<StokesParameterMod::StokesParameter >

===> Attribute numCorr

         

Get numCorr.

Returns:
numCorr as int

===> Attribute numCorr

         

Get numCorr.

Returns:
numCorr as int

Return the table to which this row belongs.

Return the table to which this row belongs.

Has this row been added to its table ?

Returns:
true if and only if it has been added.

Has this row been added to its table ?

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

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

void asdm::PolarizationRow::isAdded ( bool  added) [private]

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

void asdm::PolarizationRow::numCorrFromText ( const string &  s) [private]
void asdm::PolarizationRow::numCorrFromText ( const string &  s) [private]
void asdm::PolarizationRow::polarizationIdFromText ( const string &  s) [private]
void asdm::PolarizationRow::polarizationIdFromText ( const string &  s) [private]
void asdm::PolarizationRow::setCorrProduct ( vector< vector< PolarizationTypeMod::PolarizationType > >  corrProduct)

Set corrProduct with the specified vector<vector<PolarizationTypeMod::PolarizationType > >.

Parameters:
corrProductThe vector<vector<PolarizationTypeMod::PolarizationType > > value to which corrProduct is to be set.
void asdm::PolarizationRow::setCorrProduct ( vector< vector< PolarizationTypeMod::PolarizationType > >  corrProduct)

Set corrProduct with the specified vector<vector<PolarizationTypeMod::PolarizationType > >.

Parameters:
corrProductThe vector<vector<PolarizationTypeMod::PolarizationType > > value to which corrProduct is to be set.
void asdm::PolarizationRow::setCorrType ( vector< StokesParameterMod::StokesParameter >  corrType)

Set corrType with the specified vector<StokesParameterMod::StokesParameter >.

Parameters:
corrTypeThe vector<StokesParameterMod::StokesParameter > value to which corrType is to be set.
void asdm::PolarizationRow::setCorrType ( vector< StokesParameterMod::StokesParameter >  corrType)

Set corrType with the specified vector<StokesParameterMod::StokesParameter >.

Parameters:
corrTypeThe vector<StokesParameterMod::StokesParameter > value to which corrType is to be set.
void asdm::PolarizationRow::setFromIDL ( asdmIDL::PolarizationRowIDL  x)

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

Parameters:
xThe IDL struct containing the values used to fill this row.
Exceptions:
ConversionException
void asdm::PolarizationRow::setFromIDL ( asdmIDL::PolarizationRowIDL  x)

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

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

Set numCorr with the specified int.

Parameters:
numCorrThe int value to which numCorr is to be set.
void asdm::PolarizationRow::setNumCorr ( int  numCorr)

Set numCorr with the specified int.

Parameters:
numCorrThe int value to which numCorr is to be set.
void asdm::PolarizationRow::setPolarizationId ( Tag  polarizationId) [private]

Set polarizationId with the specified Tag value.

Parameters:
polarizationIdThe Tag value to which polarizationId is to be set.
Exceptions:
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::PolarizationRow::setPolarizationId ( Tag  polarizationId) [private]

Set polarizationId with the specified Tag value.

Parameters:
polarizationIdThe Tag value to which polarizationId is to be set.
Exceptions:
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::PolarizationRow::toBin ( EndianOSStream eoss) [private]

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

Parameters:
eossthe EndianOSStream to be written to
void asdm::PolarizationRow::toBin ( EndianOSStream eoss) [private]

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

Parameters:
eossthe EndianOSStream to be written to
asdmIDL::PolarizationRowIDL* asdm::PolarizationRow::toIDL ( ) const

Return this row in the form of an IDL struct.

Returns:
The values of this row as a PolarizationRowIDL struct.
asdmIDL::PolarizationRowIDL* asdm::PolarizationRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

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

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

Return this row in the form of an XML string.

Returns:
The values of this row as an XML string.
std::string asdm::PolarizationRow::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

Definition at line 99 of file PolarizationRow.h.

friend class asdm::RowTransformer< PolarizationRow > [friend]

Definition at line 100 of file PolarizationRow.h.


Member Data Documentation

Definition at line 123 of file PolarizationRow.h.

vector< vector< PolarizationTypeMod::PolarizationType > > asdm::PolarizationRow::corrProduct [private]

===> Attribute corrProduct

         

Definition at line 451 of file PolarizationRow.h.

vector< StokesParameterMod::StokesParameter > asdm::PolarizationRow::corrType [private]

===> Attribute corrType

         

Definition at line 440 of file PolarizationRow.h.

Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, PolarizationAttributeFromBin > asdm::PolarizationRow::fromBinMethods [private]

Definition at line 470 of file PolarizationRow.h.

*text deserialization material std::map< std::string, PolarizationAttributeFromText > asdm::PolarizationRow::fromTextMethods [private]

Definition at line 482 of file PolarizationRow.h.

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

Definition at line 362 of file PolarizationRow.h.

===> Attribute numCorr

         

Definition at line 429 of file PolarizationRow.h.

The table to which this row belongs.

Definition at line 358 of file PolarizationRow.h.


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