casa
5.7.0-16
|
The StateRow class is a row of a StateTable. More...
#include <StateRow.h>
Public Member Functions | |
virtual | ~StateRow () |
friend class asdm::TableStreamReader<StateTable, StateRow>; More... | |
StateTable & | getTable () const |
Return the table to which this row belongs. More... | |
bool | isAdded () const |
Has this row been added to its table ? More... | |
CalibrationDeviceMod::CalibrationDevice | getCalDeviceName () const |
===> Attribute calDeviceName More... | |
void | setCalDeviceName (CalibrationDeviceMod::CalibrationDevice calDeviceName) |
Set calDeviceName with the specified CalibrationDeviceMod::CalibrationDevice. More... | |
bool | getSig () const |
===> Attribute sig More... | |
void | setSig (bool sig) |
Set sig with the specified bool. More... | |
bool | getRef () const |
===> Attribute ref More... | |
void | setRef (bool ref) |
Set ref with the specified bool. More... | |
bool | getOnSky () const |
===> Attribute onSky More... | |
void | setOnSky (bool onSky) |
Set onSky with the specified bool. More... | |
bool | isWeightExists () const |
===> Attribute weight, which is optional More... | |
float | getWeight () const |
Get weight, which is optional. More... | |
void | setWeight (float weight) |
Set weight with the specified float. More... | |
void | clearWeight () |
Mark weight, which is an optional field, as non-existent. More... | |
Extrinsic Table Attributes Links *bool | compareNoAutoInc (CalibrationDeviceMod::CalibrationDevice calDeviceName, bool sig, bool ref, bool onSky) |
Compare each mandatory attribute except the autoincrementable one of this StateRow with the corresponding parameters and return true if there is a match and false otherwise. More... | |
bool | compareRequiredValue (CalibrationDeviceMod::CalibrationDevice calDeviceName, bool sig, bool ref, bool onSky) |
Compare each mandatory value (i.e. More... | |
bool | equalByRequiredValue (StateRow *x) |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More... | |
asdmIDL::StateRowIDL * | toIDL () const |
Return this row in the form of an IDL struct. More... | |
void | toIDL (asdmIDL::StateRowIDL &x) const |
Define the content of a StateRowIDL struct from the values found in this row. More... | |
void | setFromIDL (asdmIDL::StateRowIDL x) |
Fill the values of this row from the IDL struct StateRowIDL. 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... | |
StateRow (StateTable &table) | |
Create a StateRow. More... | |
StateRow (StateTable &table, StateRow *row) | |
Create a StateRow using a copy constructor mechanism. More... | |
void | setStateId (Tag stateId) |
Set stateId with the specified Tag value. More... | |
void | stateIdFromBin (EndianIStream &eis) |
void | calDeviceNameFromBin (EndianIStream &eis) |
void | sigFromBin (EndianIStream &eis) |
void | refFromBin (EndianIStream &eis) |
void | onSkyFromBin (EndianIStream &eis) |
void | weightFromBin (EndianIStream &eis) |
void | stateIdFromText (const std::string &s) |
void | calDeviceNameFromText (const std::string &s) |
void | sigFromText (const std::string &s) |
void | refFromText (const std::string &s) |
void | onSkyFromText (const std::string &s) |
void | weightFromText (const std::string &s) |
void | toBin (EndianOSStream &eoss) |
Serialize this into a stream of bytes written to an EndianOSStream. More... | |
Private Attributes | |
StateTable & | table |
The table to which this row belongs. More... | |
bool | hasBeenAdded |
Whether this row has been added to the table or not. More... | |
CalibrationDeviceMod::CalibrationDevice | calDeviceName |
===> Attribute calDeviceName More... | |
bool | sig |
===> Attribute sig More... | |
bool | ref |
===> Attribute ref More... | |
bool | onSky |
===> Attribute onSky More... | |
bool | weightExists |
===> Attribute weight, which is optional More... | |
float | weight |
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, StateAttributeFromBin > | fromBinMethods |
*text deserialization material std::map< std::string, StateAttributeFromText > | fromTextMethods |
Friends | |
class | asdm::StateTable |
class | asdm::RowTransformer< StateRow > |
The StateRow class is a row of a StateTable.
Generated from model's revision "-1", branch ""
Definition at line 100 of file StateRow.h.
|
virtual |
friend class asdm::TableStreamReader<StateTable, StateRow>;
|
private |
Create a StateRow.
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 StateRow using a copy constructor mechanism.
Given a StateRow row and a StateTable table, the method creates a new StateRow 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. |
|
private |
|
private |
void asdm::StateRow::clearWeight | ( | ) |
Mark weight, which is an optional field, as non-existent.
Extrinsic Table Attributes Links* bool asdm::StateRow::compareNoAutoInc | ( | CalibrationDeviceMod::CalibrationDevice | calDeviceName, |
bool | sig, | ||
bool | ref, | ||
bool | onSky | ||
) |
Compare each mandatory attribute except the autoincrementable one of this StateRow with the corresponding parameters and return true if there is a match and false otherwise.
calDeviceName | |
sig | |
ref | |
onSky |
bool asdm::StateRow::compareRequiredValue | ( | CalibrationDeviceMod::CalibrationDevice | calDeviceName, |
bool | sig, | ||
bool | ref, | ||
bool | onSky | ||
) |
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.
calDeviceName | |
sig | |
ref | |
onSky |
bool asdm::StateRow::equalByRequiredValue | ( | StateRow * | 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 StateRow whose required attributes of the value part will be compared with those of this. |
CalibrationDeviceMod::CalibrationDevice asdm::StateRow::getCalDeviceName | ( | ) | const |
===> Attribute calDeviceName
Get calDeviceName.
bool asdm::StateRow::getOnSky | ( | ) | const |
===> Attribute onSky
Get onSky.
bool asdm::StateRow::getRef | ( | ) | const |
===> Attribute ref
Get ref.
bool asdm::StateRow::getSig | ( | ) | const |
===> Attribute sig
Get sig.
StateTable& asdm::StateRow::getTable | ( | ) | const |
Return the table to which this row belongs.
float asdm::StateRow::getWeight | ( | ) | const |
Get weight, which is optional.
IllegalAccessException | If weight does not exist. |
bool asdm::StateRow::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::StateRow::isWeightExists | ( | ) | const |
===> Attribute weight, which is optional
The attribute weight is optional. Return true if this attribute exists.
|
private |
|
private |
|
private |
|
private |
void asdm::StateRow::setCalDeviceName | ( | CalibrationDeviceMod::CalibrationDevice | calDeviceName | ) |
Set calDeviceName with the specified CalibrationDeviceMod::CalibrationDevice.
calDeviceName | The CalibrationDeviceMod::CalibrationDevice value to which calDeviceName is to be set. |
void asdm::StateRow::setFromIDL | ( | asdmIDL::StateRowIDL | x | ) |
Fill the values of this row from the IDL struct StateRowIDL.
x | The IDL struct containing the values used to fill this row. |
ConversionException |
void asdm::StateRow::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::StateRow::setOnSky | ( | bool | onSky | ) |
Set onSky with the specified bool.
onSky | The bool value to which onSky is to be set. |
void asdm::StateRow::setRef | ( | bool | ref | ) |
Set ref with the specified bool.
ref | The bool value to which ref is to be set. |
void asdm::StateRow::setSig | ( | bool | sig | ) |
Set sig with the specified bool.
sig | The bool value to which sig is to be set. |
|
private |
Set stateId with the specified Tag value.
stateId | The Tag value to which stateId is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::StateRow::setWeight | ( | float | weight | ) |
Set weight with the specified float.
weight | The float value to which weight 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::StateRowIDL* asdm::StateRow::toIDL | ( | ) | const |
Return this row in the form of an IDL struct.
void asdm::StateRow::toIDL | ( | asdmIDL::StateRowIDL & | x | ) | const |
Define the content of a StateRowIDL struct from the values found in this row.
x | a reference to the StateRowIDL struct to be set. |
std::string asdm::StateRow::toXML | ( | ) | const |
Return this row in the form of an XML string.
|
private |
|
private |
|
friend |
Definition at line 102 of file StateRow.h.
|
friend |
Definition at line 101 of file StateRow.h.
Intrinsic Table asdm::StateRow::Attributes |
Definition at line 125 of file StateRow.h.
|
private |
===> Attribute calDeviceName
Definition at line 508 of file StateRow.h.
|
private |
Definition at line 573 of file StateRow.h.
|
private |
Definition at line 587 of file StateRow.h.
|
private |
Whether this row has been added to the table or not.
Definition at line 441 of file StateRow.h.
|
private |
===> Attribute onSky
Definition at line 541 of file StateRow.h.
|
private |
===> Attribute ref
Definition at line 530 of file StateRow.h.
|
private |
===> Attribute sig
Definition at line 519 of file StateRow.h.
|
private |
The table to which this row belongs.
Definition at line 437 of file StateRow.h.
|
private |
Definition at line 554 of file StateRow.h.
|
private |
===> Attribute weight, which is optional
Definition at line 551 of file StateRow.h.