Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions | Protected Member Functions
itk::PSMDOMNode Class Reference

Class to represent a node in the PSM Document Object Model (DOM) tree structure. More...

#include <itkPSMDOMNode.h>

+ Inheritance diagram for itk::PSMDOMNode:
+ Collaboration diagram for itk::PSMDOMNode:

Public Types

typedef PSMDOMNode Self
 
typedef DOMNode Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::ChildrenListType ChildrenListType
 
typedef Superclass::ConstChildrenListType ConstChildrenListType
 
typedef Superclass::AttributeKeyType AttributeKeyType
 
typedef Superclass::AttributeValueType AttributeValueType
 
typedef Superclass::AttributeItemType AttributeItemType
 
typedef Superclass::AttributesListType AttributesListType
 
typedef Superclass::SizeType SizeType
 
typedef Superclass::IdentifierType IdentifierType
 
typedef Superclass::OffsetType OffsetType
 

Public Member Functions

 itkNewMacro (Self)
 
 itkTypeMacro (PSMDOMNode, DOMNode)
 
const std::vector< std::string > & GetText () const
 
std::vector< std::string > & GetText ()
 
void AddText (const std::string &s)
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const
 

Detailed Description

Class to represent a node in the PSM Document Object Model (DOM) tree structure.

This class extends the itkDOMNode class to include storage of text strings at each node. This allows parsing documents that have text between the opening and closing xml tags. This is useful for specifying lists of file names or other parameters with a tag, e.g. <inputfiles>, <outputfiles>, etc.

Definition at line 46 of file itkPSMDOMNode.h.

Member Typedef Documentation

typedef Superclass::AttributeKeyType itk::PSMDOMNode::AttributeKeyType

An attribute is a pair of <key,value>, both key and value are strings.

Definition at line 66 of file itkPSMDOMNode.h.

typedef Superclass::AttributesListType itk::PSMDOMNode::AttributesListType

Container to return the attributes of a DOM node.

Definition at line 72 of file itkPSMDOMNode.h.

typedef Superclass::ChildrenListType itk::PSMDOMNode::ChildrenListType

Container to return all or a subset of the children of a DOM node.

Definition at line 62 of file itkPSMDOMNode.h.

Standard class typedefs.

Definition at line 50 of file itkPSMDOMNode.h.

Member Function Documentation

void itk::PSMDOMNode::AddText ( const std::string &  s)
inline

Add a string to the TextVector.

Definition at line 89 of file itkPSMDOMNode.h.

90  {
91  m_TextVector.push_back(s);
92  }
const std::vector<std::string>& itk::PSMDOMNode::GetText ( ) const
inline

Get the vector of text lines for this element (node)

Definition at line 79 of file itkPSMDOMNode.h.

80  {
81  return m_TextVector;
82  }
itk::PSMDOMNode::itkNewMacro ( Self  )

Method for creation through the object factory.

itk::PSMDOMNode::itkTypeMacro ( PSMDOMNode  ,
DOMNode   
)

Run-time type information (and related methods).


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