34 #ifndef ScaleRow_CLASS
35 #define ScaleRow_CLASS
139 Tag getScaleId()
const;
328 asdmIDL::ScaleRowIDL *
toIDL()
const;
337 void toIDL(asdmIDL::ScaleRowIDL& x)
const;
353 std::string
toXML()
const;
392 void fromText(
const std::string& attributeName,
const std::string& t);
void weightTypeFromBin(EndianIStream &eis)
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
bool equalByRequiredValue(ScaleRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void(ScaleRow::* ScaleAttributeFromBin)(EndianIStream &eis)
ScaleTable & table
The table to which this row belongs.
void timeScaleFromBin(EndianIStream &eis)
WeightTypeMod::WeightType weightType
===> Attribute weightType
DataScaleMod::DataScale crossDataScale
===> Attribute crossDataScale
virtual ~ScaleRow()
friend class asdm::TableStreamReader<ScaleTable, ScaleRow>;
asdmIDL::ScaleRowIDL * toIDL() const
Return this row in the form of an IDL struct.
std::string toXML() const
Return this row in the form of an XML string.
void timeScaleFromText(const std::string &s)
ScaleTable & getTable() const
Return the table to which this row belongs.
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, ScaleAttributeFromBin > fromBinMethods
The ScaleTable class is an Alma table.
The ScaleRow class is a row of a ScaleTable.
DataScaleMod::DataScale getCrossDataScale() const
===> Attribute crossDataScale
void(ScaleRow::* ScaleAttributeFromText)(const std::string &s)
*text deserialization material std::map< std::string, ScaleAttributeFromText > fromTextMethods
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 correspon...
void autoDataScaleFromText(const std::string &s)
void autoDataScaleFromBin(EndianIStream &eis)
void setFromIDL(asdmIDL::ScaleRowIDL x)
Fill the values of this row from the IDL struct ScaleRowIDL.
void setTimeScale(TimeScaleMod::TimeScale timeScale)
Set timeScale with the specified TimeScaleMod::TimeScale.
void crossDataScaleFromBin(EndianIStream &eis)
bool isAdded() const
Has this row been added to its table ?
void setCrossDataScale(DataScaleMod::DataScale crossDataScale)
Set crossDataScale with the specified DataScaleMod::DataScale.
void weightTypeFromText(const std::string &s)
TimeScaleMod::TimeScale timeScale
===> Attribute timeScale
void crossDataScaleFromText(const std::string &s)
void setScaleId(Tag scaleId)
Set scaleId with the specified Tag value.
void setAutoDataScale(DataScaleMod::DataScale autoDataScale)
Set autoDataScale with the specified DataScaleMod::DataScale.
void scaleIdFromText(const std::string &s)
DataScaleMod::DataScale getAutoDataScale() const
===> Attribute autoDataScale
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
WeightTypeMod::WeightType getWeightType() const
===> Attribute weightType
bool compareRequiredValue(TimeScaleMod::TimeScale timeScale, DataScaleMod::DataScale crossDataScale, DataScaleMod::DataScale autoDataScale, WeightTypeMod::WeightType weightType)
Compare each mandatory value (i.e.
bool hasBeenAdded
Whether this row has been added to the table or not.
ScaleRow(ScaleTable &table)
Create a ScaleRow.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
TimeScaleMod::TimeScale getTimeScale() const
===> Attribute timeScale
void setWeightType(WeightTypeMod::WeightType weightType)
Set weightType with the specified WeightTypeMod::WeightType.
void scaleIdFromBin(EndianIStream &eis)
DataScaleMod::DataScale autoDataScale
===> Attribute autoDataScale