![]() |
ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkXMLFile.h>
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 34 of file itkXMLFile.h.
Public Types | |
typedef XMLReaderBase | Self |
![]() | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightProcessObject | Self |
typedef Object | Superclass |
![]() | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
![]() | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Public Member Functions | |
virtual int | CanReadFile (const char *name)=0 |
virtual void | CharacterDataHandler (const char *inData, int inLength)=0 |
virtual void | EndElement (const char *name)=0 |
virtual void | GenerateOutputInformation () |
virtual const char * | GetFilename () const |
virtual void | SetFilename (const char *_arg) |
virtual void | StartElement (const char *name, const char **atts)=0 |
![]() | |
virtual void | AbortGenerateDataOff () |
virtual void | AbortGenerateDataOn () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const bool & | GetAbortGenerateData () |
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 () |
![]() | |
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 (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) 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 |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
![]() | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
void | parse (void) |
void | PrintSelf (std::ostream &os, Indent indent) const |
XMLReaderBase () | |
virtual | ~XMLReaderBase () |
![]() | |
virtual void | GenerateData () |
LightProcessObject () | |
~LightProcessObject () | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
![]() | |
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 () |
Protected Attributes | |
std::string | m_Filename |
Private Member Functions | |
void | operator= (const Self &) |
XMLReaderBase (const Self &) | |
Additional Inherited Members | |
![]() | |
static Pointer | New () |
![]() | |
typedef int | InternalReferenceCountType |
Definition at line 37 of file itkXMLFile.h.
|
inlineprotected |
Definition at line 67 of file itkXMLFile.h.
|
inlineprotectedvirtual |
Definition at line 68 of file itkXMLFile.h.
|
private |
|
pure virtual |
determine whether a file can be opened and read
Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.
|
pure virtual |
Callback function – called from XML parser with the character data for an XML element
Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.
|
pure virtual |
Callback function – called from XML parser when ending tag encountered
Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.
|
virtual |
do the actual parsing of the input file
|
virtual |
Get the filename to write
|
private |
|
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.
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::LightProcessObject.
|
virtual |
Set the filename to write
|
pure virtual |
Callback function – called from XML parser with start-of-element information.
Implemented in itk::PolygonGroupSpatialObjectXMLFileReader.
|
protected |
Definition at line 77 of file itkXMLFile.h.