ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkXMLFile.h>
Public Types | |
typedef XMLWriterBase | Self |
Public Member Functions | |
virtual int | CanWriteFile (const char *name)=0 |
virtual const char * | GetFilename () const |
virtual void | SetFilename (const char *_arg) |
void | SetObject (T *toWrite) |
void | WriteCharacterData (const char *const data, std::ofstream &file) |
void | WriteCharacterData (std::string &data, std::ofstream &file) |
void | WriteEndElement (const char *const tag, std::ofstream &file) |
void | WriteEndElement (std::string &tag, std::ofstream &file) |
virtual int | WriteFile ()=0 |
void | WriteStartElement (const char *const tag, std::ofstream &file) |
void | WriteStartElement (std::string &tag, std::ofstream &file) |
XMLWriterBase () | |
Protected Attributes | |
std::string | m_Filename |
T * | m_InputObject |
Private Member Functions | |
void | operator= (const Self &) |
XMLWriterBase (const Self &) |
'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 126 of file itkXMLFile.h.
typedef XMLWriterBase itk::XMLWriterBase< T >::Self |
Standard class typedefs.
Reimplemented from itk::LightProcessObject.
Reimplemented in itk::PolygonGroupSpatialObjectXMLFileWriter.
Definition at line 129 of file itkXMLFile.h.
itk::XMLWriterBase< T >::XMLWriterBase | ( | ) | [inline] |
Constructor Sets object pointer to zero.
Definition at line 134 of file itkXMLFile.h.
itk::XMLWriterBase< T >::XMLWriterBase | ( | const Self & | ) | [private] |
virtual int itk::XMLWriterBase< T >::CanWriteFile | ( | const char * | name | ) | [pure virtual] |
Return non-zero if the filename given is writeable.
Implemented in itk::PolygonGroupSpatialObjectXMLFileWriter.
virtual const char* itk::XMLWriterBase< T >::GetFilename | ( | ) | const [virtual] |
Get the filename to write
void itk::XMLWriterBase< T >::operator= | ( | const Self & | ) | [private] |
This method causes the filter to generate its output.
Reimplemented from itk::LightProcessObject.
Reimplemented in itk::PolygonGroupSpatialObjectXMLFileWriter.
virtual void itk::XMLWriterBase< T >::SetFilename | ( | const char * | _arg | ) | [virtual] |
Set the filename to write
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 149 of file itkXMLFile.h.
void itk::XMLWriterBase< T >::WriteCharacterData | ( | const char *const | data, |
std::ofstream & | file | ||
) | [inline] |
Write character data inside a tag.
Definition at line 167 of file itkXMLFile.h.
void itk::XMLWriterBase< T >::WriteCharacterData | ( | std::string & | data, |
std::ofstream & | file | ||
) | [inline] |
Write character data inside a tag.
Definition at line 185 of file itkXMLFile.h.
void itk::XMLWriterBase< T >::WriteEndElement | ( | const char *const | tag, |
std::ofstream & | file | ||
) | [inline] |
Write an end element tag
Definition at line 161 of file itkXMLFile.h.
void itk::XMLWriterBase< T >::WriteEndElement | ( | std::string & | tag, |
std::ofstream & | file | ||
) | [inline] |
Write an end element tag
Definition at line 179 of file itkXMLFile.h.
virtual int itk::XMLWriterBase< T >::WriteFile | ( | ) | [pure virtual] |
Write the XML file, based on the Input Object
Implemented in itk::PolygonGroupSpatialObjectXMLFileWriter.
void itk::XMLWriterBase< T >::WriteStartElement | ( | const char *const | tag, |
std::ofstream & | file | ||
) | [inline] |
Write out a start element tag
Definition at line 155 of file itkXMLFile.h.
void itk::XMLWriterBase< T >::WriteStartElement | ( | std::string & | tag, |
std::ofstream & | file | ||
) | [inline] |
Write a start element tag
Definition at line 173 of file itkXMLFile.h.
std::string itk::XMLWriterBase< T >::m_Filename [protected] |
Definition at line 192 of file itkXMLFile.h.
T* itk::XMLWriterBase< T >::m_InputObject [protected] |
Definition at line 191 of file itkXMLFile.h.