Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::XMLReaderBase Class Reference

#include <itkXMLFile.h>

Inheritance diagram for itk::XMLReaderBase:

Inheritance graph
[legend]
Collaboration diagram for itk::XMLReaderBase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void SetFilename (const char *_arg)
virtual const char * GetFilename () const
virtual int CanReadFile (const char *name)=0
virtual void GenerateOutputInformation ()
virtual void StartElement (const char *name, const char **atts)=0
virtual void EndElement (const char *name)=0
virtual void CharacterDataHandler (const char *inData, int inLength)=0

Protected Member Functions

void parse (void)

Protected Attributes

std::string m_Filename

Detailed Description

XMLReaderBase encapsulates the expat library (Insight/Utilities/expat and defines the methods needed in a derived class to receive the contents of an XML file in a structured manner. It's 'impure virtual' in that some functions that are generic to opening and parsing a file are implemented here.

Definition at line 33 of file itkXMLFile.h.


Member Function Documentation

virtual int itk::XMLReaderBase::CanReadFile const char *  name  )  [pure virtual]
 

determine whether a file can be opened and read

Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.

virtual void itk::XMLReaderBase::CharacterDataHandler const char *  inData,
int  inLength
[pure virtual]
 

Callback function -- called from XML parser with the character data for an XML element

Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.

virtual void itk::XMLReaderBase::EndElement const char *  name  )  [pure virtual]
 

Callback function -- called from XML parser when ending tag encountered

Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.

virtual void itk::XMLReaderBase::GenerateOutputInformation  )  [virtual]
 

do the actual parsing of the input file

virtual const char* itk::XMLReaderBase::GetFilename  )  const [virtual]
 

Get the filename to write

void itk::XMLReaderBase::parse void   )  [protected]
 

Instantiates and invokes the XML parser for the file named by m_Filename. The parser will throw an exception in the case of XML syntax errors, missing filenames, unreadable input file, etc.

virtual void itk::XMLReaderBase::SetFilename const char *  _arg  )  [virtual]
 

Set the filename to write

virtual void itk::XMLReaderBase::StartElement const char *  name,
const char **  atts
[pure virtual]
 

Callback function -- called from XML parser with start-of-element information.

Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.


Member Data Documentation

std::string itk::XMLReaderBase::m_Filename [protected]
 

Definition at line 70 of file itkXMLFile.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:45:38 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000