24#include "ITKIOXMLExport.h"
56 ITK_DISALLOW_COPY_AND_MOVE(
DOMNode);
97 itkSetMacro(Name,
const std::string &);
98 itkGetConstReferenceMacro(Name, std::string);
102 itkSetMacro(ID,
const std::string &);
103 itkGetConstReferenceMacro(ID, std::string);
239 Find(
const std::string & path);
241 Find(
const std::string & path)
const;
279 std::string m_Name{};
Class to represent a node in a Document Object Model (DOM) tree structure.
std::map< AttributeKeyType, AttributeValueType > AttributesContainer
std::vector< const DOMNode * > ConstChildrenListType
virtual void GetAllChildren(ConstChildrenListType &output) const
virtual std::string GetPath() const
virtual bool ShareRoot(const DOMNode *node) const
virtual void RemoveAllChildren()
virtual DOMNode * GetChild(const std::string &tag, IdentifierType i=0)
virtual void AddChild(DOMNode *node, IdentifierType i=0)
virtual const DOMNode * GetChild(const std::string &tag, IdentifierType i=0) const
virtual void SetAttribute(const std::string &key, const std::string &value)
virtual void RemoveAllAttributesAndChildren()
virtual void SetParent(DOMNode *node)
virtual bool HasAttribute(const std::string &key) const
virtual const DOMNode * GetChildByID(const std::string &value) const
virtual void SetChild(DOMNode *node, IdentifierType i=0)
virtual DOMTextNode * GetTextChild(IdentifierType i=0)
const DOMNode * GetParent() const
virtual void AddTextChild(const std::string &text, IdentifierType i=0)
virtual std::string GetAttribute(const std::string &key) const
virtual SizeType GetNumberOfChildren() const
std::vector< DOMNode * > ChildrenListType
virtual void GetAllAttributes(AttributesListType &output, bool keepOriginalOrder=true) const
virtual void GetAllChildren(ChildrenListType &output)
virtual DOMNode * GetChildByID(const std::string &value)
virtual void SetTextChild(const std::string &text, IdentifierType i=0)
virtual void GetChildren(const std::string &tag, ChildrenListType &output)
virtual const DOMTextNode * GetTextChild(IdentifierType i=0) const
virtual void AddChildAtBegin(DOMNode *node)
virtual void RemoveChild(IdentifierType i=0)
virtual const DOMNode * GetSibling(OffsetType i) const
virtual void AddTextChildAtBegin(const std::string &text)
virtual void GetChildren(const std::string &tag, ConstChildrenListType &output) const
std::pair< const AttributeKeyType, AttributeValueType > AttributeItemType
std::list< AttributeItemType > AttributesListType
virtual void RemoveAttribute(const std::string &key)
virtual DOMNode * GetChild(IdentifierType i=0)
std::list< AttributeItemType * > OrderedAttributesContainer
std::string AttributeKeyType
std::string AttributeValueType
virtual void AddTextChildAtEnd(const std::string &text)
virtual const DOMNode * GetRoot() const
std::vector< Pointer > ChildrenContainer
virtual DOMNode * GetSibling(OffsetType i)
virtual const DOMNode * Find(const std::string &path) const
virtual DOMNode * Find(const std::string &path)
virtual void AddChildAtEnd(DOMNode *node)
virtual void RemoveAllAttributes()
virtual DOMNode * GetRoot()
virtual const DOMNode * GetChild(IdentifierType i=0) const
Class to represent a special DOM node that holds a text string.
Light weight base class for most itk classes.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....