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