34 #ifndef StateRow_CLASS
35 #define StateRow_CLASS
135 Tag getStateId()
const;
365 asdmIDL::StateRowIDL *
toIDL()
const;
374 void toIDL(asdmIDL::StateRowIDL& x)
const;
390 std::string
toXML()
const;
430 void fromText(
const std::string& attributeName,
const std::string& t);
void stateIdFromText(const std::string &s)
void(StateRow::* StateAttributeFromText)(const std::string &s)
bool isAdded() const
Has this row been added to its table ?
bool onSky
===> Attribute onSky
void(StateRow::* StateAttributeFromBin)(EndianIStream &eis)
void sigFromBin(EndianIStream &eis)
void calDeviceNameFromText(const std::string &s)
bool getSig() const
===> Attribute sig
std::string toXML() const
Return this row in the form of an XML string.
void setWeight(float weight)
Set weight with the specified float.
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
asdmIDL::StateRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void weightFromText(const std::string &s)
bool weightExists
===> Attribute weight, which is optional
CalibrationDeviceMod::CalibrationDevice getCalDeviceName() const
===> Attribute calDeviceName
The StateRow class is a row of a StateTable.
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, StateAttributeFromBin > fromBinMethods
virtual ~StateRow()
friend class asdm::TableStreamReader<StateTable, StateRow>;
bool compareRequiredValue(CalibrationDeviceMod::CalibrationDevice calDeviceName, bool sig, bool ref, bool onSky)
Compare each mandatory value (i.e.
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 correspon...
void onSkyFromText(const std::string &s)
void setSig(bool sig)
Set sig with the specified bool.
bool sig
===> Attribute sig
void onSkyFromBin(EndianIStream &eis)
void setStateId(Tag stateId)
Set stateId with the specified Tag value.
The StateTable class is an Alma table.
void setOnSky(bool onSky)
Set onSky with the specified bool.
void setCalDeviceName(CalibrationDeviceMod::CalibrationDevice calDeviceName)
Set calDeviceName with the specified CalibrationDeviceMod::CalibrationDevice.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
bool getRef() const
===> Attribute ref
bool equalByRequiredValue(StateRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
float getWeight() const
Get weight, which is optional.
CalibrationDeviceMod::CalibrationDevice calDeviceName
===> Attribute calDeviceName
void setRef(bool ref)
Set ref with the specified bool.
void stateIdFromBin(EndianIStream &eis)
void sigFromText(const std::string &s)
bool getOnSky() const
===> Attribute onSky
bool isWeightExists() const
===> Attribute weight, which is optional
bool ref
===> Attribute ref
void refFromBin(EndianIStream &eis)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
StateTable & table
The table to which this row belongs.
void weightFromBin(EndianIStream &eis)
void calDeviceNameFromBin(EndianIStream &eis)
*text deserialization material std::map< std::string, StateAttributeFromText > fromTextMethods
void setFromIDL(asdmIDL::StateRowIDL x)
Fill the values of this row from the IDL struct StateRowIDL.
void clearWeight()
Mark weight, which is an optional field, as non-existent.
bool hasBeenAdded
Whether this row has been added to the table or not.
StateRow(StateTable &table)
Create a StateRow.
StateTable & getTable() const
Return the table to which this row belongs.
void refFromText(const std::string &s)