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

The ObservationRow class is a row of a ObservationTable. More...

#include <ObservationRow.h>

List of all members.

Public Member Functions

virtual ~ObservationRow ()
 friend class asdm::TableStreamReader<ObservationTable, ObservationRow>;
ObservationTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table ?
Extrinsic Table Attributes
Links *bool 
equalByRequiredValue (ObservationRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::ObservationRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void toIDL (asdmIDL::ObservationRowIDL &x) const
 Define the content of a ObservationRowIDL struct from the values found in this row.
void setFromIDL (asdmIDL::ObservationRowIDL x)
 Fill the values of this row from the IDL struct ObservationRowIDL.
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 ~ObservationRow ()
 friend class asdm::TableStreamReader<ObservationTable, ObservationRow>;
ObservationTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table ?
Extrinsic Table Attributes
Links *bool 
equalByRequiredValue (ObservationRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::ObservationRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void setFromIDL (asdmIDL::ObservationRowIDL x)
 Fill the values of this row from the IDL struct ObservationRowIDL.
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.
 ObservationRow (ObservationTable &table)
 Create a ObservationRow.
 ObservationRow (ObservationTable &table, ObservationRow &row)
 Create a ObservationRow using a copy constructor mechanism.
void setObservationId (Tag observationId)
 Set observationId with the specified Tag value.
void observationIdFromBin (EndianIStream &eis)
void observationIdFromText (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.
 ObservationRow (ObservationTable &table)
 Create a ObservationRow.
 ObservationRow (ObservationTable &table, ObservationRow &row)
 Create a ObservationRow using a copy constructor mechanism.
void setObservationId (Tag observationId)
 Set observationId with the specified Tag value.
void observationIdFromBin (EndianIStream &eis)
void observationIdFromText (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

ObservationTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
Extrinsic Table Attributes
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
ObservationAttributeFromBin
fromBinMethods
*text deserialization material
std::map< std::string,
ObservationAttributeFromText
fromTextMethods

Friends

class asdm::ObservationTable
class asdm::RowTransformer< ObservationRow >

Detailed Description

The ObservationRow class is a row of a ObservationTable.

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

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

Definition at line 88 of file ObservationRow.h.


Constructor & Destructor Documentation

friend class asdm::TableStreamReader<ObservationTable, ObservationRow>;

Create a ObservationRow.

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

Given a ObservationRow row and a ObservationTable table, the method creates a new ObservationRow 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<ObservationTable, ObservationRow>;

Create a ObservationRow.

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

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

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

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

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

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

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

void asdm::ObservationRow::observationIdFromText ( const string &  s) [private]
void asdm::ObservationRow::observationIdFromText ( const string &  s) [private]
void asdm::ObservationRow::setFromIDL ( asdmIDL::ObservationRowIDL  x)

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

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

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

Parameters:
xThe IDL struct containing the values used to fill this row.
Exceptions:
ConversionException
void asdm::ObservationRow::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::ObservationRow::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::ObservationRow::setObservationId ( Tag  observationId) [private]

Set observationId with the specified Tag value.

Parameters:
observationIdThe Tag value to which observationId is to be set.
Exceptions:
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::ObservationRow::setObservationId ( Tag  observationId) [private]

Set observationId with the specified Tag value.

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

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

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

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

Parameters:
eossthe EndianOSStream to be written to
asdmIDL::ObservationRowIDL* asdm::ObservationRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

Return this row in the form of an IDL struct.

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

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

Parameters:
xa reference to the ObservationRowIDL struct to be set.
std::string asdm::ObservationRow::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::ObservationRow::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 89 of file ObservationRow.h.

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

Definition at line 90 of file ObservationRow.h.


Member Data Documentation

Definition at line 113 of file ObservationRow.h.

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

Definition at line 307 of file ObservationRow.h.

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

Definition at line 316 of file ObservationRow.h.

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

Definition at line 232 of file ObservationRow.h.

The table to which this row belongs.

Definition at line 228 of file ObservationRow.h.


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