34#ifndef TTA_OBJECT_STATE_HH
35#define TTA_OBJECT_STATE_HH
120 std::ostream& output,
121 const std::string& identation =
"");
ChildTable children_
The child elements.
UIntWord UIntWordAttribute(const std::string &name) const
unsigned int unsignedIntValue() const
bool hasAttribute(const std::string &name) const
bool operator!=(const ObjectState &object)
std::string name_
Name of the element.
void setValue(UIntWord value)
Attribute * attribute(int index) const
ObjectState * childByName(const std::string &name) const
double doubleAttribute(const std::string &name) const
void setName(const std::string &name)
void setAttribute(const std::string &name, const std::string &value)
void setValue(const std::string &value)
int attributeCount() const
void removeChild(ObjectState *child)
int UIntWordValue() const
bool hasChild(const std::string &name) const
static void dumpObjectState(const ObjectState &state, std::ostream &output, const std::string &identation="")
void setValue(double value)
ObjectState * child(int index) const
void addChild(ObjectState *child)
std::string stringAttribute(const std::string &name) const
std::string value_
The value of a leaf element.
ObjectState * parent() const
AttributeTable attributes_
Contains all the attributes of the element.
void replaceChild(ObjectState *old, ObjectState *newChild)
bool boolAttribute(const std::string &name) const
std::vector< ObjectState * > ChildTable
Table of child ObjectState.
ObjectState & operator=(const ObjectState &old)
Assingment forbidden.
int intAttribute(const std::string &name) const
std::string stringValue() const
unsigned int unsignedIntAttribute(const std::string &name) const
void setValue(bool value)
ULongWord uLongAttribute(const std::string &name) const
std::string commonErrorMessage() const
double doubleValue() const
ObjectState * parent_
The parent element.
std::vector< Attribute > AttributeTable
Table of attributes.
Struct for describing an attribute of the XML element.
std::string value
Value of the attribute.
std::string name
Name of the attribute.