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

itk::XMLWriterBase< T > Class Template Reference

#include <itkXMLFile.h>

Inheritance diagram for itk::XMLWriterBase< T >:

Inheritance graph
[legend]
Collaboration diagram for itk::XMLWriterBase< T >:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

void WriteCharacterData (std::string &data, std::ofstream &file)
T * m_InputObject
std::string m_Filename

Public Member Functions

 XMLWriterBase ()
virtual void SetFilename (const char *_arg)
virtual const char * GetFilename () const
virtual int CanWriteFile (const char *name)=0
void SetObject (T *toWrite)
virtual int WriteFile ()=0
void WriteStartElement (const char *const tag, std::ofstream &file)
void WriteEndElement (const char *const tag, std::ofstream &file)
void WriteCharacterData (const char *const data, std::ofstream &file)
void WriteStartElement (std::string &tag, std::ofstream &file)
void WriteEndElement (std::string &tag, std::ofstream &file)

Detailed Description

template<class T>
class itk::XMLWriterBase< T >

'Impure virtual' base class for XML File writing. Defines the interface for an XML file writer and provides a few utility functions for writing XML files. A derived class needs to implement writing the file completely by implementing WriteFile.

Definition at line 104 of file itkXMLFile.h.


Constructor & Destructor Documentation

template<class T>
itk::XMLWriterBase< T >::XMLWriterBase  )  [inline]
 

Constructor Sets object pointer to zero. Definition at line 110 of file itkXMLFile.h.


Member Function Documentation

template<class T>
virtual int itk::XMLWriterBase< T >::CanWriteFile const char *  name  )  [pure virtual]
 

Return non-zero if the filename given is writeable.

Implemented in itk::PolygonGroupSpatialObjectXMLFileWriter.

template<class T>
virtual const char* itk::XMLWriterBase< T >::GetFilename  )  const [virtual]
 

Get the filename to write

template<class T>
virtual void itk::XMLWriterBase< T >::SetFilename const char *  _arg  )  [virtual]
 

Set the filename to write

template<class T>
void itk::XMLWriterBase< T >::SetObject T *  toWrite  )  [inline]
 

Give a pointer to the object to be written out to an XML file. Definition at line 124 of file itkXMLFile.h.

template<class T>
void itk::XMLWriterBase< T >::WriteCharacterData std::string &  data,
std::ofstream &  file
[inline]
 

Write character data inside a tag. Definition at line 160 of file itkXMLFile.h.

template<class T>
void itk::XMLWriterBase< T >::WriteCharacterData const char *const  data,
std::ofstream &  file
[inline]
 

Write character data inside a tag. Definition at line 142 of file itkXMLFile.h.

template<class T>
void itk::XMLWriterBase< T >::WriteEndElement std::string &  tag,
std::ofstream &  file
[inline]
 

Write an end element tag Definition at line 154 of file itkXMLFile.h.

template<class T>
void itk::XMLWriterBase< T >::WriteEndElement const char *const  tag,
std::ofstream &  file
[inline]
 

Write an end element tag Definition at line 136 of file itkXMLFile.h.

template<class T>
virtual int itk::XMLWriterBase< T >::WriteFile  )  [pure virtual]
 

Write the XML file, based on the Input Object

Implemented in itk::PolygonGroupSpatialObjectXMLFileWriter.

template<class T>
void itk::XMLWriterBase< T >::WriteStartElement std::string &  tag,
std::ofstream &  file
[inline]
 

Write a start element tag Definition at line 148 of file itkXMLFile.h.

template<class T>
void itk::XMLWriterBase< T >::WriteStartElement const char *const  tag,
std::ofstream &  file
[inline]
 

Write out a start element tag Definition at line 130 of file itkXMLFile.h.


Member Data Documentation

template<class T>
std::string itk::XMLWriterBase< T >::m_Filename [protected]
 

Write character data inside a tag. Definition at line 166 of file itkXMLFile.h.

template<class T>
T* itk::XMLWriterBase< T >::m_InputObject [protected]
 

Write character data inside a tag. Definition at line 165 of file itkXMLFile.h.


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 03:15:18 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000