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

The DataDescriptionRow class is a row of a DataDescriptionTable. More...

#include <DataDescriptionRow.h>

List of all members.

Public Member Functions

virtual ~DataDescriptionRow ()
 friend class asdm::TableStreamReader<DataDescriptionTable, DataDescriptionRow>;
DataDescriptionTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table ?
void setPolOrHoloId (Tag polOrHoloId)
 Set polOrHoloId with the specified Tag.
Tag getSpectralWindowId () const
 ===> Attribute spectralWindowId
void setSpectralWindowId (Tag spectralWindowId)
 Set spectralWindowId with the specified Tag.
Links *PolarizationRowgetPolarizationUsingPolOrHoloId ()
 Returns pointer to the row in the Polarization table having Polarization.polarizationId == polOrHoloId.
HolographyRowgetHolographyUsingPolOrHoloId ()
 Returns pointer to the row in the Holograpy table having Holography.holographyId == polOrHoloId.
SpectralWindowRowgetSpectralWindowUsingSpectralWindowId ()
 spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
bool compareNoAutoInc (Tag polOrHoloId, Tag spectralWindowId)
 Compare each mandatory attribute except the autoincrementable one of this DataDescriptionRow with the corresponding parameters and return true if there is a match and false otherwise.
bool compareRequiredValue (Tag polOrHoloId, Tag spectralWindowId)
 Compare each mandatory value (i.e.
bool equalByRequiredValue (DataDescriptionRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::DataDescriptionRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void toIDL (asdmIDL::DataDescriptionRowIDL &x) const
 Define the content of a DataDescriptionRowIDL struct from the values found in this row.
void setFromIDL (asdmIDL::DataDescriptionRowIDL x)
 Fill the values of this row from the IDL struct DataDescriptionRowIDL.
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 ~DataDescriptionRow ()
DataDescriptionTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table?
DataDescriptionRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void setFromIDL (DataDescriptionRowIDL x) throw (ConversionException)
 Fill the values of this row from the IDL struct DataDescriptionRowIDL.
string toXML () const
 Return this row in the form of an XML string.
void setFromXML (string rowDoc) throw (ConversionException)
 Fill the values of this row from an XML string that was produced by the toXML() method.
void setPolOrHoloId (Tag polOrHoloId)
 Set polOrHoloId with the specified Tag.
Tag getSpectralWindowId () const
 ===> Attribute spectralWindowId
void setSpectralWindowId (Tag spectralWindowId)
 Set spectralWindowId with the specified Tag.
void dataDescriptionIdFromBin (EndianIStream &eis)
void polOrHoloIdFromBin (EndianIStream &eis)
void spectralWindowIdFromBin (EndianIStream &eis)
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream.
PolarizationRowgetPolarizationUsingPolOrHoloId ()
 Returns pointer to the row in the Polarization table having Polarization.polarizationId == polOrHoloId.
HolographyRowgetHolographyUsingPolOrHoloId ()
 Returns pointer to the row in the Holograpy table having Holography.holographyId == polOrHoloId.
SpectralWindowRowgetSpectralWindowUsingSpectralWindowId ()
 Returns a pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId.
bool compareNoAutoInc (Tag polOrHoloId, Tag spectralWindowId)
 Compare each mandatory attribute except the autoincrementable one of this DataDescriptionRow with the corresponding parameters and return true if there is a match and false otherwise.
bool compareRequiredValue (Tag polOrHoloId, Tag spectralWindowId)
bool equalByRequiredValue (DataDescriptionRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.

Static Public Member Functions

static DataDescriptionRowfromBin (EndianIStream &eis, DataDescriptionTable &table, const std::vector< std::string > &attributesSeq)
 Deserialize a stream of bytes read from an EndianIStream to build a PointingRow.

Public Attributes

Intrinsic Table Attributes
Extrinsic Table Attributes
Links binary deserialization
material std::map< std::string,
DataDescriptionAttributeFromBin
fromBinMethods

Private Member Functions

void isAdded (bool added)
 This method is used by the Table class when this row is added to the table.
 DataDescriptionRow (DataDescriptionTable &table)
 Create a DataDescriptionRow.
 DataDescriptionRow (DataDescriptionTable &table, DataDescriptionRow &row)
 Create a DataDescriptionRow using a copy constructor mechanism.
void setDataDescriptionId (Tag dataDescriptionId)
 Set dataDescriptionId with the specified Tag value.
void dataDescriptionIdFromBin (EndianIStream &eis)
void polOrHoloIdFromBin (EndianIStream &eis)
void spectralWindowIdFromBin (EndianIStream &eis)
void dataDescriptionIdFromText (const string &s)
void polOrHoloIdFromText (const string &s)
void spectralWindowIdFromText (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.
 DataDescriptionRow (DataDescriptionTable &table)
 Create a DataDescriptionRow.
 DataDescriptionRow (DataDescriptionTable &table, DataDescriptionRow &row)
 Create a DataDescriptionRow using a copy constructor mechanism.
void setDataDescriptionId (Tag dataDescriptionId) throw (IllegalAccessException)
 Set dataDescriptionId with the specified Tag value.

Private Attributes

DataDescriptionTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
Tag spectralWindowId
 ===> Attribute spectralWindowId
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
DataDescriptionAttributeFromBin
fromBinMethods
*text deserialization material
std::map< std::string,
DataDescriptionAttributeFromText
fromTextMethods

Friends

class asdm::DataDescriptionTable
class asdm::RowTransformer< DataDescriptionRow >

Detailed Description

The DataDescriptionRow class is a row of a DataDescriptionTable.

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

Definition at line 97 of file DataDescriptionRow.h.


Constructor & Destructor Documentation

friend class asdm::TableStreamReader<DataDescriptionTable, DataDescriptionRow>;

Create a DataDescriptionRow.

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 DataDescriptionRow using a copy constructor mechanism.

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

Create a DataDescriptionRow.

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 DataDescriptionRow using a copy constructor mechanism.

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

bool asdm::DataDescriptionRow::compareNoAutoInc ( Tag  polOrHoloId,
Tag  spectralWindowId 
)

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

Parameters:
polOrHoloId
spectralWindowId
bool asdm::DataDescriptionRow::compareNoAutoInc ( Tag  polOrHoloId,
Tag  spectralWindowId 
)

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

bool asdm::DataDescriptionRow::compareRequiredValue ( Tag  polOrHoloId,
Tag  spectralWindowId 
)

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:
polOrHoloId
spectralWindowId
bool asdm::DataDescriptionRow::compareRequiredValue ( Tag  polOrHoloId,
Tag  spectralWindowId 
)
void asdm::DataDescriptionRow::dataDescriptionIdFromText ( 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 DataDescriptionRow 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 DataDescriptionRow whose required attributes of the value part will be compared with those of this.
Returns:
a boolean.
static DataDescriptionRow* asdm::DataDescriptionRow::fromBin ( EndianIStream eis,
DataDescriptionTable table,
const std::vector< std::string > &  attributesSeq 
) [static]

Deserialize a stream of bytes read from an EndianIStream to build a PointingRow.

Parameters:
eisthe EndianIStream to be read.
tablethe DataDescriptionTable to which the row built by deserialization will be parented.
attributesSeqa vector containing the names of the attributes . The elements order defines the order in which the attributes are written in the binary serialization.

Returns pointer to the row in the Holograpy table having Holography.holographyId == polOrHoloId.

Returns:
a HolographyRow* or 0 if polOrHoloId is an Polarization Tag.

Returns pointer to the row in the Holograpy table having Holography.holographyId == polOrHoloId.

Returns:
a HolographyRow* or 0 if polOrHoloId is an Polarization Tag.

Returns pointer to the row in the Polarization table having Polarization.polarizationId == polOrHoloId.

Returns:
a PolarizationRow* or 0 if polOrHoloId is an Holography Tag.

Returns pointer to the row in the Polarization table having Polarization.polarizationId == polOrHoloId.

Returns:
a PolarizationRow* or 0 if polOrHoloId is an Holography Tag.

===> Attribute spectralWindowId

         

Get spectralWindowId.

Returns:
spectralWindowId as Tag

===> Attribute spectralWindowId

         

Get spectralWindowId.

Returns:
spectralWindowId as Tag

spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId

Returns:
a SpectralWindowRow*

Returns a pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId.

Returns:
a SpectralWindowRow*

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::DataDescriptionRow::isAdded ( bool  added) [private]

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

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

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

void asdm::DataDescriptionRow::polOrHoloIdFromText ( const string &  s) [private]
void asdm::DataDescriptionRow::setDataDescriptionId ( Tag  dataDescriptionId) throw (IllegalAccessException) [private]

Set dataDescriptionId with the specified Tag value.

Parameters:
dataDescriptionIdThe Tag value to which dataDescriptionId is to be set.
Exceptions:
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::DataDescriptionRow::setDataDescriptionId ( Tag  dataDescriptionId) [private]

Set dataDescriptionId with the specified Tag value.

Parameters:
dataDescriptionIdThe Tag value to which dataDescriptionId is to be set.
Exceptions:
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::DataDescriptionRow::setFromIDL ( DataDescriptionRowIDL  x) throw (ConversionException)

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

Parameters:
xThe IDL struct containing the values used to fill this row.
void asdm::DataDescriptionRow::setFromIDL ( asdmIDL::DataDescriptionRowIDL  x)

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

Parameters:
xThe IDL struct containing the values used to fill this row.
Exceptions:
ConversionException

Fill the values of this row from an XML string that was produced by the toXML() method.

Parameters:
xThe XML string being used to set the values of this row.
void asdm::DataDescriptionRow::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

Set polOrHoloId with the specified Tag.

Parameters:
polOrHoloIdThe Tag value to which polOrHoloId is to be set.

Set polOrHoloId with the specified Tag.

Parameters:
polOrHoloIdThe Tag value to which polOrHoloId is to be set.

Set spectralWindowId with the specified Tag.

Parameters:
spectralWindowIdThe Tag value to which spectralWindowId is to be set.

Set spectralWindowId with the specified Tag.

Parameters:
spectralWindowIdThe Tag value to which spectralWindowId is to be set.
void asdm::DataDescriptionRow::spectralWindowIdFromText ( const string &  s) [private]

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

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

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

Parameters:
eossthe EndianOSStream to be written to
DataDescriptionRowIDL* asdm::DataDescriptionRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

Return this row in the form of an IDL struct.

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

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

Parameters:
xa reference to the DataDescriptionRowIDL struct to be set.

Return this row in the form of an XML string.

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

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

Definition at line 99 of file DataDescriptionRow.h.


Member Data Documentation

Definition at line 122 of file DataDescriptionRow.h.

Definition at line 146 of file DataDescriptionRow.h.

Links binary deserialization material std::map<std::string, DataDescriptionAttributeFromBin> asdm::DataDescriptionRow::fromBinMethods

Definition at line 245 of file DataDescriptionRow.h.

Links* binary deserialization material from an EndianIStream std::map<std::string, DataDescriptionAttributeFromBin> asdm::DataDescriptionRow::fromBinMethods [private]

Definition at line 464 of file DataDescriptionRow.h.

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

Definition at line 475 of file DataDescriptionRow.h.

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

Definition at line 353 of file DataDescriptionRow.h.

===> Attribute spectralWindowId

         

Definition at line 435 of file DataDescriptionRow.h.

The table to which this row belongs.

Definition at line 349 of file DataDescriptionRow.h.


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