ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkXMLFile.h>
'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 131 of file itkXMLFile.h.
Public Types | |
typedef XMLWriterBase | Self |
Public Types inherited from itk::LightProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | 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 () | |
Public Member Functions inherited from itk::LightProcessObject | |
virtual void | AbortGenerateDataOff () |
virtual void | AbortGenerateDataOn () |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const bool & | GetAbortGenerateData () const |
virtual const char * | GetNameOfClass () const |
virtual void | SetAbortGenerateData (bool _arg) |
virtual void | UpdateOutputData () |
void | UpdateProgress (float amount) |
virtual void | SetProgress (float _arg) |
virtual const float & | GetProgress () 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 |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) override |
virtual void | UnRegister () const noexceptoverride |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () 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 |
Protected Attributes | |
std::string | m_Filename |
T * | m_InputObject |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
Private Member Functions | |
void | operator= (const Self &) |
XMLWriterBase (const Self &) | |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::LightProcessObject | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions inherited from itk::LightProcessObject | |
virtual void | GenerateData () |
LightProcessObject () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const override |
~LightProcessObject () | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (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 () |
typedef XMLWriterBase itk::XMLWriterBase< T >::Self |
Definition at line 134 of file itkXMLFile.h.
|
inline |
Constructor Sets object pointer to zero.
Definition at line 139 of file itkXMLFile.h.
|
private |
|
pure virtual |
Return non-zero if the filename given is writeable.
Implemented in itk::PolygonGroupSpatialObjectXMLFileWriter.
|
virtual |
Get the filename to write
|
private |
|
virtual |
Set the filename to write
|
inline |
Give a pointer to the object to be written out to an XML file.
Definition at line 154 of file itkXMLFile.h.
|
inline |
Write character data inside a tag.
Definition at line 172 of file itkXMLFile.h.
|
inline |
Write character data inside a tag.
Definition at line 190 of file itkXMLFile.h.
|
inline |
Write an end element tag
Definition at line 166 of file itkXMLFile.h.
|
inline |
Write an end element tag
Definition at line 184 of file itkXMLFile.h.
|
pure virtual |
Write the XML file, based on the Input Object
Implemented in itk::PolygonGroupSpatialObjectXMLFileWriter.
|
inline |
Write out a start element tag
Definition at line 160 of file itkXMLFile.h.
|
inline |
Write a start element tag
Definition at line 178 of file itkXMLFile.h.
|
protected |
Definition at line 197 of file itkXMLFile.h.
|
protected |
Definition at line 196 of file itkXMLFile.h.
Referenced by itk::XMLWriterBase< PGroupSpatialObjectType >::SetObject(), and itk::XMLWriterBase< PGroupSpatialObjectType >::XMLWriterBase().