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

The StationRow class is a row of a StationTable. More...

#include <StationRow.h>

Public Member Functions

virtual ~StationRow ()
 friend class asdm::TableStreamReader<StationTable, StationRow>; More...
 
StationTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? More...
 
std::string getName () const
 ===> Attribute name More...
 
void setName (std::string name)
 Set name with the specified std::string. More...
 
std::vector< LengthgetPosition () const
 ===> Attribute position More...
 
void setPosition (std::vector< Length > position)
 Set position with the specified std::vector<Length >. More...
 
StationTypeMod::StationType getType () const
 ===> Attribute type More...
 
void setType (StationTypeMod::StationType type)
 Set type with the specified StationTypeMod::StationType. More...
 
bool isTimeExists () const
 ===> Attribute time, which is optional More...
 
ArrayTime getTime () const
 Get time, which is optional. More...
 
void setTime (ArrayTime time)
 Set time with the specified ArrayTime. More...
 
void clearTime ()
 Mark time, which is an optional field, as non-existent. More...
 
Extrinsic Table Attributes
Links *bool 
compareNoAutoInc (std::string name, std::vector< Length > position, StationTypeMod::StationType type)
 Compare each mandatory attribute except the autoincrementable one of this StationRow with the corresponding parameters and return true if there is a match and false otherwise. More...
 
bool compareRequiredValue (std::string name, std::vector< Length > position, StationTypeMod::StationType type)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (StationRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::StationRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::StationRowIDL &x) const
 Define the content of a StationRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::StationRowIDL x)
 Fill the values of this row from the IDL struct StationRowIDL. 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
 

Private Member Functions

void isAdded (bool added)
 This method is used by the Table class when this row is added to the table. More...
 
 StationRow (StationTable &table)
 Create a StationRow. More...
 
 StationRow (StationTable &table, StationRow *row)
 Create a StationRow using a copy constructor mechanism. More...
 
void setStationId (Tag stationId)
 Set stationId with the specified Tag value. More...
 
void stationIdFromBin (EndianIStream &eis)
 
void nameFromBin (EndianIStream &eis)
 
void positionFromBin (EndianIStream &eis)
 
void typeFromBin (EndianIStream &eis)
 
void timeFromBin (EndianIStream &eis)
 
void stationIdFromText (const std::string &s)
 
void nameFromText (const std::string &s)
 
void positionFromText (const std::string &s)
 
void typeFromText (const std::string &s)
 
void timeFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

StationTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
std::string name
 ===> Attribute name More...
 
std::vector< Lengthposition
 ===> Attribute position More...
 
StationTypeMod::StationType type
 ===> Attribute type More...
 
bool timeExists
 ===> Attribute time, which is optional More...
 
ArrayTime time
 
Extrinsic Table Attributes
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
StationAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
StationAttributeFromText
fromTextMethods
 

Friends

class asdm::StationTable
 
class asdm::RowTransformer< StationRow >
 

Detailed Description

The StationRow class is a row of a StationTable.

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

Definition at line 106 of file StationRow.h.

Constructor & Destructor Documentation

virtual asdm::StationRow::~StationRow ( )
virtual

friend class asdm::TableStreamReader<StationTable, StationRow>;

asdm::StationRow::StationRow ( StationTable table)
private

Create a StationRow.

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::StationRow::StationRow ( StationTable table,
StationRow row 
)
private

Create a StationRow using a copy constructor mechanism.

Given a StationRow row and a StationTable table, the method creates a new StationRow 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::StationRow::clearTime ( )

Mark time, which is an optional field, as non-existent.

Extrinsic Table Attributes Links* bool asdm::StationRow::compareNoAutoInc ( std::string  name,
std::vector< Length position,
StationTypeMod::StationType  type 
)

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

Parameters
name
position
type
bool asdm::StationRow::compareRequiredValue ( std::string  name,
std::vector< Length position,
StationTypeMod::StationType  type 
)

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
name
position
type
bool asdm::StationRow::equalByRequiredValue ( StationRow 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 StationRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
std::string asdm::StationRow::getName ( ) const

===> Attribute name

Get name.

Returns
name as std::string
std::vector<Length > asdm::StationRow::getPosition ( ) const

===> Attribute position

Get position.

Returns
position as std::vector<Length >
StationTable& asdm::StationRow::getTable ( ) const

Return the table to which this row belongs.

ArrayTime asdm::StationRow::getTime ( ) const

Get time, which is optional.

Returns
time as ArrayTime
Exceptions
IllegalAccessExceptionIf time does not exist.
StationTypeMod::StationType asdm::StationRow::getType ( ) const

===> Attribute type

Get type.

Returns
type as StationTypeMod::StationType
bool asdm::StationRow::isAdded ( ) const

Has this row been added to its table ?

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

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

bool asdm::StationRow::isTimeExists ( ) const

===> Attribute time, which is optional

The attribute time is optional. Return true if this attribute exists.

Returns
true if and only if the time attribute exists.
void asdm::StationRow::nameFromBin ( EndianIStream eis)
private
void asdm::StationRow::nameFromText ( const std::string &  s)
private
void asdm::StationRow::positionFromBin ( EndianIStream eis)
private
void asdm::StationRow::positionFromText ( const std::string &  s)
private
void asdm::StationRow::setFromIDL ( asdmIDL::StationRowIDL  x)

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

Parameters
xThe IDL struct containing the values used to fill this row.
Exceptions
ConversionException
void asdm::StationRow::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::StationRow::setName ( std::string  name)

Set name with the specified std::string.

Parameters
nameThe std::string value to which name is to be set.
void asdm::StationRow::setPosition ( std::vector< Length position)

Set position with the specified std::vector<Length >.

Parameters
positionThe std::vector<Length > value to which position is to be set.
void asdm::StationRow::setStationId ( Tag  stationId)
private

Set stationId with the specified Tag value.

Parameters
stationIdThe Tag value to which stationId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::StationRow::setTime ( ArrayTime  time)

Set time with the specified ArrayTime.

Parameters
timeThe ArrayTime value to which time is to be set.
void asdm::StationRow::setType ( StationTypeMod::StationType  type)

Set type with the specified StationTypeMod::StationType.

Parameters
typeThe StationTypeMod::StationType value to which type is to be set.
void asdm::StationRow::stationIdFromBin ( EndianIStream eis)
private
void asdm::StationRow::stationIdFromText ( const std::string &  s)
private
void asdm::StationRow::timeFromBin ( EndianIStream eis)
private
void asdm::StationRow::timeFromText ( const std::string &  s)
private
void asdm::StationRow::toBin ( EndianOSStream eoss)
private

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

Parameters
eossthe EndianOSStream to be written to
asdmIDL::StationRowIDL* asdm::StationRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

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

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

Return this row in the form of an XML string.

Returns
The values of this row as an XML string.
void asdm::StationRow::typeFromBin ( EndianIStream eis)
private
void asdm::StationRow::typeFromText ( const std::string &  s)
private

Friends And Related Function Documentation

friend class asdm::RowTransformer< StationRow >
friend

Definition at line 108 of file StationRow.h.

friend class asdm::StationTable
friend

Definition at line 107 of file StationRow.h.

Member Data Documentation

Intrinsic Table asdm::StationRow::Attributes

Definition at line 131 of file StationRow.h.

Extrinsic Table Attributes Links* binary deserialization material from an EndianIStream std::map<std::string, StationAttributeFromBin> asdm::StationRow::fromBinMethods
private

Definition at line 533 of file StationRow.h.

* text deserialization material std::map<std::string, StationAttributeFromText> asdm::StationRow::fromTextMethods
private

Definition at line 546 of file StationRow.h.

bool asdm::StationRow::hasBeenAdded
private

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

Definition at line 412 of file StationRow.h.

std::string asdm::StationRow::name
private

===> Attribute name

Definition at line 479 of file StationRow.h.

std::vector<Length > asdm::StationRow::position
private

===> Attribute position

Definition at line 490 of file StationRow.h.

StationTable& asdm::StationRow::table
private

The table to which this row belongs.

Definition at line 408 of file StationRow.h.

ArrayTime asdm::StationRow::time
private

Definition at line 514 of file StationRow.h.

bool asdm::StationRow::timeExists
private

===> Attribute time, which is optional

Definition at line 511 of file StationRow.h.

StationTypeMod::StationType asdm::StationRow::type
private

===> Attribute type

Definition at line 501 of file StationRow.h.


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