casa
5.7.0-16
|
The ScaleRow class is a row of a ScaleTable. More...
#include <ScaleRow.h>
Public Member Functions | |
virtual | ~ScaleRow () |
friend class asdm::TableStreamReader<ScaleTable, ScaleRow>; More... | |
ScaleTable & | getTable () const |
Return the table to which this row belongs. More... | |
bool | isAdded () const |
Has this row been added to its table ? More... | |
TimeScaleMod::TimeScale | getTimeScale () const |
===> Attribute timeScale More... | |
void | setTimeScale (TimeScaleMod::TimeScale timeScale) |
Set timeScale with the specified TimeScaleMod::TimeScale. More... | |
DataScaleMod::DataScale | getCrossDataScale () const |
===> Attribute crossDataScale More... | |
void | setCrossDataScale (DataScaleMod::DataScale crossDataScale) |
Set crossDataScale with the specified DataScaleMod::DataScale. More... | |
DataScaleMod::DataScale | getAutoDataScale () const |
===> Attribute autoDataScale More... | |
void | setAutoDataScale (DataScaleMod::DataScale autoDataScale) |
Set autoDataScale with the specified DataScaleMod::DataScale. More... | |
WeightTypeMod::WeightType | getWeightType () const |
===> Attribute weightType More... | |
void | setWeightType (WeightTypeMod::WeightType weightType) |
Set weightType with the specified WeightTypeMod::WeightType. More... | |
Extrinsic Table Attributes Links *bool | compareNoAutoInc (TimeScaleMod::TimeScale timeScale, DataScaleMod::DataScale crossDataScale, DataScaleMod::DataScale autoDataScale, WeightTypeMod::WeightType weightType) |
Compare each mandatory attribute except the autoincrementable one of this ScaleRow with the corresponding parameters and return true if there is a match and false otherwise. More... | |
bool | compareRequiredValue (TimeScaleMod::TimeScale timeScale, DataScaleMod::DataScale crossDataScale, DataScaleMod::DataScale autoDataScale, WeightTypeMod::WeightType weightType) |
Compare each mandatory value (i.e. More... | |
bool | equalByRequiredValue (ScaleRow *x) |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More... | |
asdmIDL::ScaleRowIDL * | toIDL () const |
Return this row in the form of an IDL struct. More... | |
void | toIDL (asdmIDL::ScaleRowIDL &x) const |
Define the content of a ScaleRowIDL struct from the values found in this row. More... | |
void | setFromIDL (asdmIDL::ScaleRowIDL x) |
Fill the values of this row from the IDL struct ScaleRowIDL. 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... | |
ScaleRow (ScaleTable &table) | |
Create a ScaleRow. More... | |
ScaleRow (ScaleTable &table, ScaleRow *row) | |
Create a ScaleRow using a copy constructor mechanism. More... | |
void | setScaleId (Tag scaleId) |
Set scaleId with the specified Tag value. More... | |
void | scaleIdFromBin (EndianIStream &eis) |
void | timeScaleFromBin (EndianIStream &eis) |
void | crossDataScaleFromBin (EndianIStream &eis) |
void | autoDataScaleFromBin (EndianIStream &eis) |
void | weightTypeFromBin (EndianIStream &eis) |
void | scaleIdFromText (const std::string &s) |
void | timeScaleFromText (const std::string &s) |
void | crossDataScaleFromText (const std::string &s) |
void | autoDataScaleFromText (const std::string &s) |
void | weightTypeFromText (const std::string &s) |
void | toBin (EndianOSStream &eoss) |
Serialize this into a stream of bytes written to an EndianOSStream. More... | |
Private Attributes | |
ScaleTable & | table |
The table to which this row belongs. More... | |
bool | hasBeenAdded |
Whether this row has been added to the table or not. More... | |
TimeScaleMod::TimeScale | timeScale |
===> Attribute timeScale More... | |
DataScaleMod::DataScale | crossDataScale |
===> Attribute crossDataScale More... | |
DataScaleMod::DataScale | autoDataScale |
===> Attribute autoDataScale More... | |
WeightTypeMod::WeightType | weightType |
===> Attribute weightType More... | |
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, ScaleAttributeFromBin > | fromBinMethods |
*text deserialization material std::map< std::string, ScaleAttributeFromText > | fromTextMethods |
Friends | |
class | asdm::ScaleTable |
class | asdm::RowTransformer< ScaleRow > |
The ScaleRow class is a row of a ScaleTable.
Generated from model's revision "-1", branch ""
Definition at line 104 of file ScaleRow.h.
|
virtual |
friend class asdm::TableStreamReader<ScaleTable, ScaleRow>;
|
private |
Create a ScaleRow.
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 ScaleRow using a copy constructor mechanism.
Given a ScaleRow row and a ScaleTable table, the method creates a new ScaleRow 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 |
Extrinsic Table Attributes Links* bool asdm::ScaleRow::compareNoAutoInc | ( | TimeScaleMod::TimeScale | timeScale, |
DataScaleMod::DataScale | crossDataScale, | ||
DataScaleMod::DataScale | autoDataScale, | ||
WeightTypeMod::WeightType | weightType | ||
) |
Compare each mandatory attribute except the autoincrementable one of this ScaleRow with the corresponding parameters and return true if there is a match and false otherwise.
timeScale | |
crossDataScale | |
autoDataScale | |
weightType |
bool asdm::ScaleRow::compareRequiredValue | ( | TimeScaleMod::TimeScale | timeScale, |
DataScaleMod::DataScale | crossDataScale, | ||
DataScaleMod::DataScale | autoDataScale, | ||
WeightTypeMod::WeightType | weightType | ||
) |
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.
timeScale | |
crossDataScale | |
autoDataScale | |
weightType |
|
private |
|
private |
bool asdm::ScaleRow::equalByRequiredValue | ( | ScaleRow * | 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 ScaleRow whose required attributes of the value part will be compared with those of this. |
DataScaleMod::DataScale asdm::ScaleRow::getAutoDataScale | ( | ) | const |
===> Attribute autoDataScale
Get autoDataScale.
DataScaleMod::DataScale asdm::ScaleRow::getCrossDataScale | ( | ) | const |
===> Attribute crossDataScale
Get crossDataScale.
ScaleTable& asdm::ScaleRow::getTable | ( | ) | const |
Return the table to which this row belongs.
TimeScaleMod::TimeScale asdm::ScaleRow::getTimeScale | ( | ) | const |
===> Attribute timeScale
Get timeScale.
WeightTypeMod::WeightType asdm::ScaleRow::getWeightType | ( | ) | const |
===> Attribute weightType
Get weightType.
bool asdm::ScaleRow::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.
|
private |
|
private |
void asdm::ScaleRow::setAutoDataScale | ( | DataScaleMod::DataScale | autoDataScale | ) |
Set autoDataScale with the specified DataScaleMod::DataScale.
autoDataScale | The DataScaleMod::DataScale value to which autoDataScale is to be set. |
void asdm::ScaleRow::setCrossDataScale | ( | DataScaleMod::DataScale | crossDataScale | ) |
Set crossDataScale with the specified DataScaleMod::DataScale.
crossDataScale | The DataScaleMod::DataScale value to which crossDataScale is to be set. |
void asdm::ScaleRow::setFromIDL | ( | asdmIDL::ScaleRowIDL | x | ) |
Fill the values of this row from the IDL struct ScaleRowIDL.
x | The IDL struct containing the values used to fill this row. |
ConversionException |
void asdm::ScaleRow::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 |
|
private |
Set scaleId with the specified Tag value.
scaleId | The Tag value to which scaleId is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::ScaleRow::setTimeScale | ( | TimeScaleMod::TimeScale | timeScale | ) |
Set timeScale with the specified TimeScaleMod::TimeScale.
timeScale | The TimeScaleMod::TimeScale value to which timeScale is to be set. |
void asdm::ScaleRow::setWeightType | ( | WeightTypeMod::WeightType | weightType | ) |
Set weightType with the specified WeightTypeMod::WeightType.
weightType | The WeightTypeMod::WeightType value to which weightType is to be set. |
|
private |
|
private |
|
private |
Serialize this into a stream of bytes written to an EndianOSStream.
eoss | the EndianOSStream to be written to |
asdmIDL::ScaleRowIDL* asdm::ScaleRow::toIDL | ( | ) | const |
Return this row in the form of an IDL struct.
void asdm::ScaleRow::toIDL | ( | asdmIDL::ScaleRowIDL & | x | ) | const |
Define the content of a ScaleRowIDL struct from the values found in this row.
x | a reference to the ScaleRowIDL struct to be set. |
std::string asdm::ScaleRow::toXML | ( | ) | const |
Return this row in the form of an XML string.
|
private |
|
private |
|
friend |
Definition at line 106 of file ScaleRow.h.
|
friend |
Definition at line 105 of file ScaleRow.h.
Intrinsic Table asdm::ScaleRow::Attributes |
Definition at line 129 of file ScaleRow.h.
|
private |
===> Attribute autoDataScale
Definition at line 492 of file ScaleRow.h.
|
private |
===> Attribute crossDataScale
Definition at line 481 of file ScaleRow.h.
|
private |
Definition at line 522 of file ScaleRow.h.
|
private |
Definition at line 535 of file ScaleRow.h.
|
private |
Whether this row has been added to the table or not.
Definition at line 403 of file ScaleRow.h.
|
private |
The table to which this row belongs.
Definition at line 399 of file ScaleRow.h.
|
private |
===> Attribute timeScale
Definition at line 470 of file ScaleRow.h.
|
private |
===> Attribute weightType
Definition at line 503 of file ScaleRow.h.