casa
5.7.0-16
|
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... | |
StationTable & | getTable () 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< Length > | getPosition () 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 | |
StationTable & | table |
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< Length > | position |
===> 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 > |
The StationRow class is a row of a StationTable.
Generated from model's revision "-1", branch ""
Definition at line 106 of file StationRow.h.
|
virtual |
friend class asdm::TableStreamReader<StationTable, StationRow>;
|
private |
Create a StationRow.
This constructor is private because only the table can create rows. All rows know the table to which they belong.
table | The table to which this row belongs. |
|
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.
table | The table to which this row belongs. |
row | The row which is to be copied. |
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.
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.
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.
x | a pointer on the StationRow whose required attributes of the value part will be compared with those of this. |
std::string asdm::StationRow::getName | ( | ) | const |
===> Attribute name
Get name.
std::vector<Length > asdm::StationRow::getPosition | ( | ) | const |
===> Attribute position
Get position.
StationTable& asdm::StationRow::getTable | ( | ) | const |
Return the table to which this row belongs.
ArrayTime asdm::StationRow::getTime | ( | ) | const |
Get time, which is optional.
IllegalAccessException | If time does not exist. |
StationTypeMod::StationType asdm::StationRow::getType | ( | ) | const |
===> Attribute type
Get type.
bool asdm::StationRow::isAdded | ( | ) | const |
Has this row been added to its table ?
|
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.
|
private |
|
private |
|
private |
|
private |
void asdm::StationRow::setFromIDL | ( | asdmIDL::StationRowIDL | x | ) |
Fill the values of this row from the IDL struct StationRowIDL.
x | The IDL struct containing the values used to fill this row. |
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.
rowDoc | the XML string being used to set the values of this row. |
ConversionException |
void asdm::StationRow::setName | ( | std::string | name | ) |
Set name with the specified std::string.
name | The 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 >.
position | The std::vector<Length > value to which position is to be set. |
|
private |
Set stationId with the specified Tag value.
stationId | The Tag value to which stationId is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::StationRow::setTime | ( | ArrayTime | time | ) |
void asdm::StationRow::setType | ( | StationTypeMod::StationType | type | ) |
Set type with the specified StationTypeMod::StationType.
type | The StationTypeMod::StationType value to which type is to be set. |
|
private |
|
private |
|
private |
|
private |
|
private |
Serialize this into a stream of bytes written to an EndianOSStream.
eoss | the EndianOSStream to be written to |
asdmIDL::StationRowIDL* asdm::StationRow::toIDL | ( | ) | const |
Return this row in the form of an IDL struct.
void asdm::StationRow::toIDL | ( | asdmIDL::StationRowIDL & | x | ) | const |
Define the content of a StationRowIDL struct from the values found in this row.
x | a reference to the StationRowIDL struct to be set. |
std::string asdm::StationRow::toXML | ( | ) | const |
Return this row in the form of an XML string.
|
private |
|
private |
|
friend |
Definition at line 108 of file StationRow.h.
|
friend |
Definition at line 107 of file StationRow.h.
Intrinsic Table asdm::StationRow::Attributes |
Definition at line 131 of file StationRow.h.
|
private |
Definition at line 533 of file StationRow.h.
|
private |
Definition at line 546 of file StationRow.h.
|
private |
Whether this row has been added to the table or not.
Definition at line 412 of file StationRow.h.
|
private |
===> Attribute name
Definition at line 479 of file StationRow.h.
|
private |
===> Attribute position
Definition at line 490 of file StationRow.h.
|
private |
The table to which this row belongs.
Definition at line 408 of file StationRow.h.
|
private |
Definition at line 514 of file StationRow.h.
|
private |
===> Attribute time, which is optional
Definition at line 511 of file StationRow.h.
|
private |
===> Attribute type
Definition at line 501 of file StationRow.h.