Class to represent a special DOM node that holds a text string.
A text node has no attributes and children. So a text node is always a leaf node, and the special attribute "id" cannot be used. In this implementation, a text node is internally represented using a special tag name of "!". This is not a problem as "!" is not a valid tag name in any XML file.
Definition at line 40 of file itkDOMTextNode.h.
|
const char * | GetNameOfClass () const override |
|
|
virtual void | SetText (const std::string &_arg) |
|
virtual const std::string & | GetText () const |
|
virtual void | AddChild (DOMNode *node, IdentifierType i=0) |
|
virtual void | AddChildAtBegin (DOMNode *node) |
|
virtual void | AddChildAtEnd (DOMNode *node) |
|
virtual void | AddTextChild (const std::string &text, IdentifierType i=0) |
|
virtual void | AddTextChildAtBegin (const std::string &text) |
|
virtual void | AddTextChildAtEnd (const std::string &text) |
|
virtual void | GetAllAttributes (AttributesListType &output, bool keepOriginalOrder=true) const |
|
virtual void | GetAllChildren (ChildrenListType &output) |
|
virtual void | GetAllChildren (ConstChildrenListType &output) const |
|
virtual std::string | GetAttribute (const std::string &key) const |
|
virtual void | GetChildren (const std::string &tag, ChildrenListType &output) |
|
virtual void | GetChildren (const std::string &tag, ConstChildrenListType &output) const |
|
const char * | GetNameOfClass () const override |
|
virtual SizeType | GetNumberOfChildren () const |
|
virtual std::string | GetPath () const |
|
virtual bool | HasAttribute (const std::string &key) const |
|
virtual void | RemoveAllAttributes () |
|
virtual void | RemoveAllAttributesAndChildren () |
|
virtual void | RemoveAllChildren () |
|
virtual void | RemoveAttribute (const std::string &key) |
|
virtual void | RemoveChild (IdentifierType i=0) |
|
virtual void | SetAttribute (const std::string &key, const std::string &value) |
|
virtual void | SetChild (DOMNode *node, IdentifierType i=0) |
|
virtual void | SetTextChild (const std::string &text, IdentifierType i=0) |
|
virtual bool | ShareRoot (const DOMNode *node) const |
|
virtual void | SetParent (DOMNode *node) |
|
DOMNode * | GetParent () |
|
const DOMNode * | GetParent () const |
|
virtual void | SetName (const std::string &_arg) |
|
virtual const std::string & | GetName () const |
|
virtual void | SetID (const std::string &_arg) |
|
virtual const std::string & | GetID () const |
|
virtual DOMNode * | GetChild (IdentifierType i=0) |
|
virtual const DOMNode * | GetChild (IdentifierType i=0) const |
|
virtual DOMNode * | GetChild (const std::string &tag, IdentifierType i=0) |
|
virtual const DOMNode * | GetChild (const std::string &tag, IdentifierType i=0) const |
|
virtual DOMNode * | GetChildByID (const std::string &value) |
|
virtual const DOMNode * | GetChildByID (const std::string &value) const |
|
virtual DOMNode * | GetSibling (OffsetType i) |
|
virtual const DOMNode * | GetSibling (OffsetType i) const |
|
virtual DOMNode * | GetRoot () |
|
virtual const DOMNode * | GetRoot () const |
|
virtual DOMNode * | Find (const std::string &path) |
|
virtual const DOMNode * | Find (const std::string &path) const |
|
virtual DOMTextNode * | GetTextChild (IdentifierType i=0) |
|
virtual const DOMTextNode * | GetTextChild (IdentifierType i=0) const |
|
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
|
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
|
LightObject::Pointer | CreateAnother () const override |
|
virtual void | DebugOff () const |
|
virtual void | DebugOn () const |
|
Command * | GetCommand (unsigned long tag) |
|
bool | GetDebug () const |
|
MetaDataDictionary & | GetMetaDataDictionary () |
|
const MetaDataDictionary & | GetMetaDataDictionary () const |
|
virtual ModifiedTimeType | GetMTime () const |
|
const char * | GetNameOfClass () const override |
|
virtual const TimeStamp & | GetTimeStamp () const |
|
bool | HasObserver (const EventObject &event) const |
|
void | InvokeEvent (const EventObject &) |
|
void | InvokeEvent (const EventObject &) const |
|
virtual void | Modified () const |
|
void | Register () const override |
|
void | RemoveAllObservers () |
|
void | RemoveObserver (unsigned long tag) const |
|
void | SetDebug (bool debugFlag) const |
|
void | SetReferenceCount (int) override |
|
void | UnRegister () const noexcept override |
|
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
|
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
|
virtual void | SetObjectName (std::string _arg) |
|
virtual const std::string & | GetObjectName () const |
|
Pointer | Clone () const |
|
virtual Pointer | CreateAnother () const |
|
virtual void | Delete () |
|
virtual const char * | GetNameOfClass () const |
|
virtual int | GetReferenceCount () const |
|
void | Print (std::ostream &os, Indent indent=0) const |
|
virtual void | Register () const |
|
virtual void | SetReferenceCount (int) |
|
virtual void | UnRegister () const noexcept |
|