19 #ifndef __itkDOMNode_h
20 #define __itkDOMNode_h
92 itkSetMacro( Name, std::string& );
93 itkGetConstReferenceMacro( Name, std::string );
97 itkSetMacro( ID, std::string& );
98 itkGetConstReferenceMacro( ID, std::string );
102 virtual std::string
GetAttribute(
const std::string& key )
const;
105 virtual bool HasAttribute(
const std::string& key )
const;
108 virtual void SetAttribute(
const std::string& key,
const std::string& value );
204 virtual const DOMNode*
Find(
const std::string& path )
const;
208 virtual std::string
GetPath()
const;
263 #endif // __itkDOMNode_h
virtual DOMNode * GetSibling(OffsetType i)
std::map< AttributeKeyType, AttributeValueType > AttributesContainer
ChildrenContainer m_Children
virtual bool ShareRoot(const DOMNode *node) const
virtual void RemoveAttribute(const std::string &key)
SmartPointer< const Self > ConstPointer
virtual std::string GetPath() const
virtual void GetChildren(const std::string &tag, ChildrenListType &output)
Light weight base class for most itk classes.
virtual void RemoveChild(IdentifierType i=0)
OrderedAttributesContainer m_OrderedAttributes
Class to represent a special DOM node that holds a text string.
virtual DOMNode * GetRoot()
virtual DOMNode * Find(const std::string &path)
virtual void RemoveAllChildren()
virtual void RemoveAllAttributesAndChildren()
Class to represent a node in a Document Object Model (DOM) tree structure.
std::vector< const DOMNode * > ConstChildrenListType
virtual void GetAllAttributes(AttributesListType &output, bool keepOriginalOrder=true) const
virtual DOMTextNode * GetTextChild(IdentifierType i=0)
virtual DOMNode * GetChildByID(const std::string &value)
std::string AttributeValueType
std::list< AttributeItemType * > OrderedAttributesContainer
std::pair< const AttributeKeyType, AttributeValueType > AttributeItemType
std::vector< DOMNode * > ChildrenListType
virtual void SetChild(DOMNode *node, IdentifierType i=0)
virtual DOMNode * GetChild(IdentifierType i=0)
virtual void AddChildAtEnd(DOMNode *node)
void operator=(const Self &)
virtual bool HasAttribute(const std::string &key) const
virtual void GetAllChildren(ChildrenListType &output)
std::vector< Pointer > ChildrenContainer
SmartPointer< Self > Pointer
virtual void AddTextChildAtEnd(const std::string &text)
virtual SizeType GetNumberOfChildren() const
virtual void SetParent(DOMNode *node)
virtual void AddChild(DOMNode *node, IdentifierType i=0)
virtual void RemoveAllAttributes()
virtual void AddTextChild(const std::string &text, IdentifierType i=0)
virtual void AddChildAtBegin(DOMNode *node)
std::list< AttributeItemType > AttributesListType
Base class for most ITK classes.
std::string AttributeKeyType
virtual void AddTextChildAtBegin(const std::string &text)
virtual void SetAttribute(const std::string &key, const std::string &value)
AttributesContainer m_Attributes
virtual std::string GetAttribute(const std::string &key) const
virtual void SetTextChild(const std::string &text, IdentifierType i=0)