This is a subclass of vtkXMLParser that constructs a representation of parsed XML using vtkPVXMLElement. More...
#include <vtkPVXMLParser.h>
Public Types | |
typedef vtkXMLParser | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | PrintXML (ostream &os) |
Write the parsed XML into the output stream. More... | |
vtkPVXMLElement * | GetRootElement () |
Get the root element from the XML document. More... | |
virtual int | GetSuppressErrorMessages () |
If on, then the Parse method will NOT report an error using vtkErrorMacro. More... | |
virtual void | SetSuppressErrorMessages (int) |
If on, then the Parse method will NOT report an error using vtkErrorMacro. More... | |
virtual void | SuppressErrorMessagesOn () |
If on, then the Parse method will NOT report an error using vtkErrorMacro. More... | |
virtual void | SuppressErrorMessagesOff () |
If on, then the Parse method will NOT report an error using vtkErrorMacro. More... | |
![]() | |
vtkXMLParser * | NewInstance () const |
virtual int | Parse () |
virtual void | SetStream (istream *) |
virtual istream * | GetStream () |
vtkTypeInt64 | TellG () |
void | SeekG (vtkTypeInt64 position) |
virtual int | Parse (const char *inputString) |
virtual int | Parse (const char *inputString, unsigned int length) |
virtual int | InitializeParser () |
virtual int | ParseChunk (const char *inputString, unsigned int length) |
virtual int | CleanupParser () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetIgnoreCharacterData (int) |
virtual int | GetIgnoreCharacterData () |
virtual void | SetEncoding (const char *) |
virtual char * | GetEncoding () |
virtual void | SetStream (istream *) |
virtual istream * | GetStream () |
vtkTypeInt64 | TellG () |
void | SeekG (vtkTypeInt64 position) |
virtual int | Parse (const char *inputString) |
virtual int | Parse (const char *inputString, unsigned int length) |
virtual int | InitializeParser () |
virtual int | ParseChunk (const char *inputString, unsigned int length) |
virtual int | CleanupParser () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetIgnoreCharacterData (int) |
virtual int | GetIgnoreCharacterData () |
virtual void | SetEncoding (const char *) |
virtual char * | GetEncoding () |
![]() | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPVXMLParser * | SafeDownCast (vtkObject *o) |
static vtkPVXMLParser * | New () |
static vtkSmartPointer< vtkPVXMLElement > | ParseXML (const char *xmlcontents, bool suppress_errors=false) |
Convenience method to parse XML contents. More... | |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkXMLParser * | SafeDownCast (vtkObjectBase *o) |
static vtkXMLParser * | New () |
![]() | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkPVXMLParser () | |
~vtkPVXMLParser () override | |
void | StartElement (const char *name, const char **atts) override |
void | EndElement (const char *name) override |
void | CharacterDataHandler (const char *data, int length) override |
void | AddElement (vtkPVXMLElement *element) |
void | PushOpenElement (vtkPVXMLElement *element) |
vtkPVXMLElement * | PopOpenElement () |
int | ParseXML () override |
void | ReportXmlParseError () override |
![]() | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkXMLParser () | |
~vtkXMLParser () | |
virtual int | CreateParser () |
virtual int | ParsingComplete () |
virtual void | ReportStrayAttribute (const char *element, const char *attr, const char *value) |
virtual void | ReportMissingAttribute (const char *element, const char *attr) |
virtual void | ReportBadAttribute (const char *element, const char *attr, const char *value) |
virtual void | ReportUnknownElement (const char *element) |
vtkTypeInt64 | GetXMLByteIndex () |
virtual int | ParseBuffer (const char *buffer, unsigned int count) |
int | ParseBuffer (const char *buffer) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
int | SuppressErrorMessages |
vtkPVXMLElement * | RootElement |
vtkPVXMLElement ** | OpenElements |
unsigned int | NumberOfOpenElements |
unsigned int | OpenElementsSize |
unsigned int | ElementIdIndex |
![]() | |
istream * | Stream |
char * | FileName |
char * | Encoding |
int | ParseError |
const char * | InputString |
int | InputStringLength |
void * | Parser |
int | IgnoreCharacterData |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Additional Inherited Members | |
![]() | |
static int | IsSpace (char c) |
This is a subclass of vtkXMLParser that constructs a representation of parsed XML using vtkPVXMLElement.
Definition at line 19 of file vtkPVXMLParser.h.
Definition at line 22 of file vtkPVXMLParser.h.
|
protected |
|
overrideprotected |
|
virtual |
Reimplemented from vtkXMLParser.
|
static |
|
overridevirtual |
Reimplemented from vtkXMLParser.
|
static |
void vtkPVXMLParser::PrintXML | ( | ostream & | os | ) |
Write the parsed XML into the output stream.
vtkPVXMLElement* vtkPVXMLParser::GetRootElement | ( | ) |
Get the root element from the XML document.
|
virtual |
If on, then the Parse method will NOT report an error using vtkErrorMacro.
Rather, it will just return false. This feature is useful when simply checking to see if a file is a valid XML file or there is otherwise a way to recover from the failed parse. This flag is off by default.
|
virtual |
If on, then the Parse method will NOT report an error using vtkErrorMacro.
Rather, it will just return false. This feature is useful when simply checking to see if a file is a valid XML file or there is otherwise a way to recover from the failed parse. This flag is off by default.
|
virtual |
If on, then the Parse method will NOT report an error using vtkErrorMacro.
Rather, it will just return false. This feature is useful when simply checking to see if a file is a valid XML file or there is otherwise a way to recover from the failed parse. This flag is off by default.
|
virtual |
If on, then the Parse method will NOT report an error using vtkErrorMacro.
Rather, it will just return false. This feature is useful when simply checking to see if a file is a valid XML file or there is otherwise a way to recover from the failed parse. This flag is off by default.
|
static |
Convenience method to parse XML contents.
Will return nullptr is the xmlcontents cannot be parsed.
|
overrideprotectedvirtual |
Reimplemented from vtkXMLParser.
|
overrideprotectedvirtual |
Reimplemented from vtkXMLParser.
|
overrideprotectedvirtual |
Reimplemented from vtkXMLParser.
|
protected |
|
protected |
|
protected |
|
overrideprotectedvirtual |
Reimplemented from vtkXMLParser.
|
overrideprotectedvirtual |
Reimplemented from vtkXMLParser.
|
protected |
Definition at line 59 of file vtkPVXMLParser.h.
|
protected |
Definition at line 70 of file vtkPVXMLParser.h.
|
protected |
Definition at line 73 of file vtkPVXMLParser.h.
|
protected |
Definition at line 74 of file vtkPVXMLParser.h.
|
protected |
Definition at line 75 of file vtkPVXMLParser.h.
|
protected |
Definition at line 78 of file vtkPVXMLParser.h.