ITK  4.2.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::DOMTextNode Class Reference

#include <itkDOMTextNode.h>

+ Inheritance diagram for itk::DOMTextNode:
+ Collaboration diagram for itk::DOMTextNode:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef SmartPointer< SelfPointer
typedef DOMTextNode Self
typedef DOMNode Superclass
- Public Types inherited from itk::DOMNode
typedef std::pair< const
AttributeKeyType,
AttributeValueType
AttributeItemType
typedef std::string AttributeKeyType
typedef std::list
< AttributeItemType
AttributesListType
typedef std::string AttributeValueType
typedef std::vector< DOMNode * > ChildrenListType
typedef std::vector< const
DOMNode * > 
ConstChildrenListType
typedef int IdentifierType
typedef int OffsetType
typedef std::vcl_size_t SizeType
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual void SetText (std::string &_arg)
virtual const std::string & GetText ()
- Public Member Functions inherited from itk::DOMNode
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
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)
DOMNodeGetParent ()
const DOMNodeGetParent () const
virtual void SetName (std::string &_arg)
virtual const std::string & GetName ()
virtual void SetID (std::string &_arg)
virtual const std::string & GetID ()
virtual DOMNodeGetChild (IdentifierType i=0)
virtual const DOMNodeGetChild (IdentifierType i=0) const
virtual DOMNodeGetChild (const std::string &tag, IdentifierType i=0)
virtual const DOMNodeGetChild (const std::string &tag, IdentifierType i=0) const
virtual DOMNodeGetChildByID (const std::string &value)
virtual const DOMNodeGetChildByID (const std::string &value) const
virtual DOMNodeGetSibling (OffsetType i)
virtual const DOMNodeGetSibling (OffsetType i) const
virtual DOMNodeGetRoot ()
virtual const DOMNodeGetRoot () const
virtual DOMNodeFind (const std::string &path)
virtual const DOMNodeFind (const std::string &path) const
virtual DOMTextNodeGetTextChild (IdentifierType i=0)
virtual const DOMTextNodeGetTextChild (IdentifierType i=0) const
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
unsigned long AddObserver (const EventObject &event, Command *) const
virtual void DebugOff () const
virtual void DebugOn () const
CommandGetCommand (unsigned long tag)
bool GetDebug () const
MetaDataDictionaryGetMetaDataDictionary (void)
const MetaDataDictionaryGetMetaDataDictionary (void) const
virtual unsigned long GetMTime () const
virtual const TimeStampGetTimeStamp () const
bool HasObserver (const EventObject &event) const
void InvokeEvent (const EventObject &)
void InvokeEvent (const EventObject &) const
virtual void Modified () const
virtual void Register () const
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () const
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
virtual int GetReferenceCount () const
 itkCloneMacro (Self)
void Print (std::ostream &os, Indent indent=0) const

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 DOMTextNode ()
- Protected Member Functions inherited from itk::DOMNode
 DOMNode ()
- Protected Member Functions inherited from itk::Object
 Object ()
bool PrintObservers (std::ostream &os, Indent indent) const
virtual void PrintSelf (std::ostream &os, Indent indent) const
virtual void SetTimeStamp (const TimeStamp &time)
virtual ~Object ()
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 LightObject ()
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const
virtual ~LightObject ()

Private Member Functions

 DOMTextNode (const Self &)
void operator= (const Self &)

Private Attributes

std::string m_Text

Detailed Description

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.


Member Typedef Documentation

Reimplemented from itk::DOMNode.

Definition at line 48 of file itkDOMTextNode.h.

Reimplemented from itk::DOMNode.

Definition at line 47 of file itkDOMTextNode.h.

Standard class typedefs.

Reimplemented from itk::DOMNode.

Definition at line 45 of file itkDOMTextNode.h.

Reimplemented from itk::DOMNode.

Definition at line 46 of file itkDOMTextNode.h.


Constructor & Destructor Documentation

itk::DOMTextNode::DOMTextNode ( )
inlineprotected

Definition at line 62 of file itkDOMTextNode.h.

References itk::DOMNode::SetName().

itk::DOMTextNode::DOMTextNode ( const Self )
private

Member Function Documentation

virtual::itk::LightObject::Pointer itk::DOMTextNode::CreateAnother ( void  ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::DOMNode.

virtual const char* itk::DOMTextNode::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::DOMNode.

virtual const std::string& itk::DOMTextNode::GetText ( )
virtual

Functions to set/get the enclosed text of this node.

static Pointer itk::DOMTextNode::New ( )
static

Method for creation through the object factory.

Reimplemented from itk::DOMNode.

void itk::DOMTextNode::operator= ( const Self )
private

Mutex lock to protect modification to the reference count

Reimplemented from itk::DOMNode.

virtual void itk::DOMTextNode::SetText ( std::string &  _arg)
virtual

Functions to set/get the enclosed text of this node.


Member Data Documentation

std::string itk::DOMTextNode::m_Text
private

Variable to hold the text string of this node.

Definition at line 69 of file itkDOMTextNode.h.


The documentation for this class was generated from the following file: