The ObservationRow class is a row of a ObservationTable.
More...
#include <ObservationRow.h>
|
virtual | ~ObservationRow () |
| friend class asdm::TableStreamReader<ObservationTable, ObservationRow>; More...
|
|
ObservationTable & | getTable () const |
| Return the table to which this row belongs. More...
|
|
bool | isAdded () const |
| Has this row been added to its table ? More...
|
|
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. More...
|
|
asdmIDL::ObservationRowIDL * | toIDL () const |
| Return this row in the form of an IDL struct. More...
|
|
void | toIDL (asdmIDL::ObservationRowIDL &x) const |
| Define the content of a ObservationRowIDL struct from the values found in this row. More...
|
|
void | setFromIDL (asdmIDL::ObservationRowIDL x) |
| Fill the values of this row from the IDL struct ObservationRowIDL. 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...
|
|
The ObservationRow class is a row of a ObservationTable.
Generated from model's revision "-1", branch ""
Definition at line 88 of file ObservationRow.h.
virtual asdm::ObservationRow::~ObservationRow |
( |
| ) |
|
|
virtual |
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
-
table | The 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
-
table | The table to which this row belongs. |
row | The row which is to be copied. |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
- Parameters
-
x | a pointer on the ObservationRow whose required attributes of the value part will be compared with those of this. |
- Returns
- a boolean.
Return the table to which this row belongs.
bool asdm::ObservationRow::isAdded |
( |
| ) |
const |
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::observationIdFromBin |
( |
EndianIStream & |
eis | ) |
|
|
private |
void asdm::ObservationRow::observationIdFromText |
( |
const std::string & |
s | ) |
|
|
private |
void asdm::ObservationRow::setFromIDL |
( |
asdmIDL::ObservationRowIDL |
x | ) |
|
Fill the values of this row from the IDL struct ObservationRowIDL.
- Parameters
-
x | The IDL struct containing the values used to fill this row. |
- Exceptions
-
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
-
rowDoc | the XML string being used to set the values of this row. |
- Exceptions
-
void asdm::ObservationRow::setObservationId |
( |
Tag |
observationId | ) |
|
|
private |
Set observationId with the specified Tag value.
- Parameters
-
observationId | The Tag value to which observationId is to be set. |
- Exceptions
-
Serialize this into a stream of bytes written to an EndianOSStream.
- Parameters
-
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
-
x | a 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.
Intrinsic Table asdm::ObservationRow::Attributes |
bool asdm::ObservationRow::hasBeenAdded |
|
private |
Whether this row has been added to the table or not.
Definition at line 232 of file ObservationRow.h.
The documentation for this class was generated from the following file: