#include <vtkExpatBase.h>
Inheritance diagram for vtkExpatBase:
vtkExpatBase
follows a simple pattern for converting the semi-OOP callback design of expat into a true class which allows you to override virtual methods to supply callbacks.
The User Data which expat maintains is simply a pointer to an instance of your object. Inline static functions are specified as the callbacks to expat. These static functions take the user data parameter returned from expat and cast it to a pointer to an expatpp object. Using that typed pointer they then call the appropriate virtual method.
If you have overriden a given virtual method then your version will be called, otherwise the (empty) method in the base class is called.
Mutated from Andy Dent's expatpp.
Definition at line 58 of file vtkExpatBase.h.
Parse position and error reporting (XML Implementation Interfaces) | |
These are the methods to call when the parse functions return XML_STATUS_ERROR (a parse error has occurred), although the position reporting functions are useful outside of errors.
The position reported is the byte position (in the original document or entity encoding) of the first of the sequence of characters that generated the current event (or the error that caused the parse functions to return
The position reporting functions are accurate only outside of the DTD. In other words, they usually return bogus information when called from within a DTD declaration handler. | |
XML_Error | GetParserErrorCode (void) |
If XML_Parse returned XML_STATUS_ERROR , then GetParserErrorCode returns what type of error has occurred. | |
int | GetCurrentLineNumber (void) |
Return the line number of the position. | |
int | GetCurrentColumnNumber (void) |
Return the offset, from the beginning of the current line, of the position. | |
long | GetCurrentByteIndex (void) |
Return the byte offset of the position. | |
int | GetCurrentByteCount (void) |
Return the number of bytes in the current event. | |
const char * | GetInputContext (int *aOffsetPtr, int *aSizePtr) |
Get the current parse poition in the input buffer. | |
const XML_LChar * | GetParserErrorString (XML_Error aCode) |
Return a string describing the error corresponding to code. | |
Public Member Functions | |
vtkTypeRevisionMacro (vtkExpatBase, vtkExtensionsObject) | |
void | PrintSelf (ostream &, vtkIndent) |
int | Parse (void) |
Initiate the parsing process. | |
int | GetInputStringLength (void) const |
Get the length of the string to parse. | |
void | SetStream (istream *) |
Set/Get the file stream to read from, overriding any URI, if specified. | |
istream * | GetStream (void) const |
Set/Get the file stream to read from, overriding any URI, if specified. | |
void | SetFileName (const char *name) |
Set/Get the name of the file to read. | |
const char * | GetFileName (void) const |
Set/Get the name of the file to read. | |
virtual int | CanReadFile (const char *name) |
Test whether the file with the given name can be read by this reader. | |
int | CanReadFile (void) |
Test whether the file with the given name can be read by this reader. | |
void | SetInputString (const char *) |
Set/Get a string to parse. | |
const char * | GetInputString (void) const |
Set/Get a string to parse. | |
Expat Wrapping Virtual Methods | |
| |
virtual void | ElementDecl (const XML_Char *name, XML_Content *model) |
Handler for element declarations in a DTD . | |
virtual void | AttlistDecl (const XML_Char *elname, const XML_Char *attname, const XML_Char *attType, const XML_Char *defaultValue, int isRequired) |
Handler for ATTLIST declarations in the DTD . | |
virtual void | XmlDecl (const XML_Char *version, const XML_Char *encoding, int standalone) |
Handles XML decls and text decls discovered in external entities. | |
virtual void | EntityDecl (const XML_Char *entityName, int isParameterEntity, const XML_Char *value, int valueLength, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) |
Handler that will be called for all entity declarations. | |
virtual void | StartElement (const XML_Char *name, const XML_Char **attrs) |
Handler for start (and empty) tags. | |
virtual void | EndElement (const XML_Char *name) |
Handler for end (and empty) tags. | |
virtual void | CharacterData (const XML_Char *data, int len) |
Text handler. | |
virtual void | ProcessingInstruction (const XML_Char *target, const XML_Char *data) |
Handler for processing instructions. | |
virtual void | Comment (const XML_Char *data) |
Handler for comments. | |
virtual void | StartCdataSection (void) |
Handler that gets called at the beginning of a CDATA section. | |
virtual void | EndCdataSection (void) |
Handler that gets called at the end of a CDATA section. | |
virtual void | Default (const XML_Char *data, int len) |
Handles any characters in the document not otherwise handled. | |
virtual void | StartDoctypeDecl (const XML_Char *doctypeName, const XML_Char *systemId, const XML_Char *publicId, int hasInternalSubset) |
Handler called at start of a DOCTYPE declaration, before any external or internal subset is parsed. | |
virtual void | EndDoctypeDecl (void) |
Handler called at the end of a DOCTYPE declaration, after parsing any external subset. | |
void | UnparsedEntityDecl (const XML_Char *aEntityName, const XML_Char *aBase, const XML_Char *aSystemId, const XML_Char *aPublicId, const XML_Char *aNotationName) |
Handler that receives declarations of unparsed entities. | |
virtual void | NotationDecl (const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) |
Handler that receives notation declarations. | |
virtual void | StartNamespaceDecl (const XML_Char *prefix, const XML_Char *uri) |
Handler to be called when a namespace is declared. | |
virtual void | EndNamespaceDecl (const XML_Char *prefix) |
Handler to be called when leaving the scope of a namespace declaration. | |
virtual int | NotStandalone (void) |
Handler that is called if the document is not "standalone". | |
virtual int | ExternalEntityRef (const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) |
This is called for a reference to an external parsed general entity. | |
virtual void | SkippedEntity (const XML_Char *entityName, int isParameterEntity) |
Skipped entity handler. | |
virtual int | UnknownEncoding (const XML_Char *vtkNotUsed(name), XML_Encoding *vtkNotUsed(info)) |
Set a handler to deal with encodings other than the built in set. | |
Static Public Member Functions | |
void | PrintExpatFeatures (ostream &, vtkIndent) |
Check the features compiled into the parser. | |
XML User Interfaces | |
const XML_LChar * | GetExpatVersion (void) |
Return a string containing the version number of this expat. | |
XML_Expat_Version | GetExpatVersionInfo (void) |
Return an XML_Expat_Version structure containing numeric version number information for this version of expat. | |
const XML_Feature * | GetExpatFeatureList (void) |
Returns a list of "feature" records, providing details on how Expat was configured at compile time. | |
Static Callback Methods | |
void | ElementDeclCb (void *userData, const XML_Char *name, XML_Content *model) |
void | AttlistDeclCb (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *attType, const XML_Char *defaultValue, int isRequired) |
void | XmlDeclCb (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) |
void | EntityDeclCb (void *userData, const XML_Char *entityName, int isParameterEntity, const XML_Char *value, int valueLength, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) |
void | StartElementCb (void *userData, const XML_Char *name, const XML_Char **attrs) |
void | EndElementCb (void *userData, const XML_Char *name) |
void | CharacterDataCb (void *userData, const XML_Char *data, int len) |
void | ProcessingInstructionCb (void *userData, const XML_Char *target, const XML_Char *data) |
void | CommentCb (void *userData, const XML_Char *data) |
void | StartCdataSectionCb (void *userData) |
void | EndCdataSectionCb (void *userData) |
void | DefaultCb (void *userData, const XML_Char *data, int len) |
void | StartDoctypeDeclCb (void *userData, const XML_Char *doctypeName, const XML_Char *aSysid, const XML_Char *aPubid, int hasInternalSubset) |
void | EndDoctypeDeclCb (void *userData) |
void | UnparsedEntityDeclCb (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) |
void | NotationDeclCb (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) |
void | StartNamespaceDeclCb (void *userData, const XML_Char *prefix, const XML_Char *uri) |
void | EndNamespaceDeclCb (void *userData, const XML_Char *prefix) |
int | NotStandaloneCb (void *userData) |
int | ExternalEntityRefCb (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) |
void | SkippedEntityCb (void *userData, const XML_Char *entityName, int isParameterEntity) |
int | UnknownEncodingCb (void *encodingHandlerData, const XML_Char *name, XML_Encoding *info) |
Protected Member Functions | |
virtual void | CheckFinalStatus (XML_Status) |
Override so subclass can react to an error causing exit from parse. | |
operator XML_Parser () const | |
Implicit conversion from type vtkExpatBase to type XML_Parser . | |
Parser Creation (XML Implementation Interfaces) | |
XML_Parser | ExternalEntityParserCreate (const XML_Char *aContext, const XML_Char *aEncoding) |
Creates an XML_Parser object that can parse an external general entity. | |
Parsing Methods (XML Implementation Interfaces) | |
XML_Status | XML_Parse (const char *aBuf, int aLen, int aIsFinal) |
Parses some input. | |
Miscellaneous Methods (XML Implementation Interfaces) | |
void | GrabInternalParser (void) |
Set this object as the value passed as user data to callbacks. | |
XML_Status | SetBase (const XML_Char *aBase) |
Set the base to be used for resolving relative URIs in system identifiers in declarations. | |
const XML_Char * | GetBase (void) |
Return the base for resolving relative URIs. | |
int | GetSpecifiedAttributeCount (void) |
Returns actual number of attribute/value pairs in the start-tag. | |
int | GetIdAttributeIndex (void) |
Returns index of ID attribute passed in last call to XML_StartElementHandler. | |
XML_Status | SetEncoding (const XML_Char *aEncoding) |
This is equivalent to supplying an encoding argument to XML_ParserCreate. | |
int | SetParamEntityParsing (XML_ParamEntityParsing a) |
Controls parsing of parameter entities (including external DTD subset). | |
XML_Error | UseForeignDTD (XML_Bool aToggle) |
If XML_TRUE is passed to this function, then the parser will assume that there is an external subset, even if none is specified in the document. | |
void | SetReturnNSTriplet (int aToggle) |
Return name as a triplet in a single string separated by the separator character. | |
void | DefaultCurrent (void) |
This can be called within a handler for a start element, end element, processing instruction or character data. | |
void | FreeContentModel (XML_Content *aModel) |
Frees the content model passed to the element declaration handler. | |
Customizable Behaviour Methods (overrides MUST call parent) | |
virtual void | ReleaseParser (void) |
Provide single point that will call ::XML_ParserFree . | |
virtual void | ResetParser (void) |
Reset the parser and its event handlers, preparing for reuse. | |
virtual void | SetupHandlers (void) |
Set the handlers used by expat callbacks. | |
Internal Handler Setter Convenience Methods | |
void | SetElementDeclHandler (XML_ElementDeclHandler a=ElementDeclCb) |
void | SetAttlistDeclHandler (XML_AttlistDeclHandler a=AttlistDeclCb) |
void | SetXmlDeclHandler (XML_XmlDeclHandler a=XmlDeclCb) |
void | SetEntityDeclHandler (XML_EntityDeclHandler a=EntityDeclCb) |
void | SetElementHandler (XML_StartElementHandler a1=StartElementCb, XML_EndElementHandler a2=EndElementCb) |
void | SetStartElementHandler (XML_StartElementHandler a=StartElementCb) |
void | SetEndElementHandler (XML_EndElementHandler a=EndElementCb) |
void | SetCharacterDataHandler (XML_CharacterDataHandler a=CharacterDataCb) |
void | SetProcessingInstructionHandler (XML_ProcessingInstructionHandler a=ProcessingInstructionCb) |
void | SetCommentHandler (XML_CommentHandler a=CommentCb) |
void | SetCdataSectionHandler (XML_StartCdataSectionHandler a1=StartCdataSectionCb, XML_EndCdataSectionHandler a2=EndCdataSectionCb) |
void | SetStartCdataSectionHandler (XML_StartCdataSectionHandler a=StartCdataSectionCb) |
void | SetEndCdataSectionHandler (XML_EndCdataSectionHandler a=EndCdataSectionCb) |
void | SetDefaultHandler (XML_DefaultHandler a=DefaultCb) |
void | SetDefaultHandlerExpand (XML_DefaultHandler a=DefaultCb) |
void | SetDoctypeDeclHandler (XML_StartDoctypeDeclHandler a1=StartDoctypeDeclCb, XML_EndDoctypeDeclHandler a2=EndDoctypeDeclCb) |
void | SetStartDoctypeDeclHandler (XML_StartDoctypeDeclHandler a=StartDoctypeDeclCb) |
void | SetEndDoctypeDeclHandler (XML_EndDoctypeDeclHandler a=EndDoctypeDeclCb) |
void | SetUnparsedEntityDeclHandler (XML_UnparsedEntityDeclHandler a=UnparsedEntityDeclCb) |
void | SetNotationDeclHandler (XML_NotationDeclHandler a=NotationDeclCb) |
void | SetNamespaceDeclHandler (XML_StartNamespaceDeclHandler a1=StartNamespaceDeclCb, XML_EndNamespaceDeclHandler a2=EndNamespaceDeclCb) |
void | SetStartNamespaceDeclHandler (XML_StartNamespaceDeclHandler a=StartNamespaceDeclCb) |
void | SetEndNamespaceDeclHandler (XML_EndNamespaceDeclHandler a=EndNamespaceDeclCb) |
void | SetNotStandaloneHandler (XML_NotStandaloneHandler a=NotStandaloneCb) |
void | SetExternalEntityRefHandler (XML_ExternalEntityRefHandler a=ExternalEntityRefCb) |
void | SetExternalEntityRefHandlerArg (void *a) |
void | SetExternalEntityRefHandlerArg (void) |
void | SetSkippedEntityHandler (XML_SkippedEntityHandler a=SkippedEntityCb) |
void | SetUnknownEncodingHandler (XML_UnknownEncodingHandler a=UnknownEncodingCb) |
Creation and Destruction | |
vtkExpatBase (int createParser=VTK_TRUE) | |
Constructor; creates a parser by default. | |
virtual | ~vtkExpatBase () |
Destructor; disposes of parser and internal data. | |
Internal Execution Helper Methods | |
virtual int | InputInitialize (void) |
Subclass-specific initialization (i.e. | |
virtual void | InputFinalize (void) |
Subclass-specific termination (i.e. | |
virtual int | ParseXML (void) |
Read the input stream parsing as we go. | |
virtual int | ParsingComplete (void) |
Check to see whether parsing is complete. | |
virtual int | ReadData (void) |
Subclass-specific initialization (i.e. | |
Static Protected Member Functions | |
Static Utility Methods | |
int | GetAttributeVector (const XML_Char *const &target, const XML_Char **const &attrs, unsigned int const &len, int *&data) |
Get an attribute value converted to an int type vector. | |
int | GetAttributeVector (const XML_Char *const &target, const XML_Char **const &attrs, unsigned int const &len, float *&data) |
Get an attribute value converted to a float type vector. | |
int | GetAttributeVector (const XML_Char *const &target, const XML_Char **const &attrs, unsigned int const &len, double *&data) |
Get an attribute value converted to a double type vector. | |
int | GetAttributeVector (const XML_Char *const &target, const XML_Char **const &attrs, unsigned int const &len, unsigned int *&data) |
Get an attribute value converted to a unsigned int type vector. | |
int | GetAttributeValue (const XML_Char *const &target, const XML_Char **const &attrs, const XML_Char *&result) |
Get an attribute value. | |
int | GetAttributeValue (const XML_Char *const &target, const XML_Char **const &attrs, const char *&result) |
Get an attribute value converted to a char type string. | |
int | GetAttributeValue (const XML_Char *const &target, const XML_Char **const &attrs, int &result) |
Get an attribute value converted to an int type value. | |
int | GetAttributeValue (const XML_Char *const &target, const XML_Char **const &attrs, float &result) |
Get an attribute value converted to a float type value. | |
int | GetAttributeValue (const XML_Char *const &target, const XML_Char **const &attrs, double &result) |
Get an attribute value converted to a double type value. | |
int | GetAttributeValue (const XML_Char *const &target, const XML_Char **const &attrs, unsigned int &result) |
Get an attribute value converted to an unsigned int type value. | |
int | GetAttributeValue (const XML_Char *const &target, const XML_Char **const &attrs, bool &result) |
Get an attribute value converted to a boolean type value. | |
int | EmptyCharacterData (const XML_Char *data, int len) |
Utility often used in overridden CharacterData() to check for data. | |
int | SkipWhiteSpace (const char *data) |
Skip to first non-whitespace character. | |
int | SkipWhiteSpace (const XML_Char *data) |
Skip to first non-whitespace character. | |
Protected Attributes | |
XML_Parser | Parser |
The parser instance wrapped by this object. | |
void * | EncodingData |
Untyped pointer needed by the UnknownEncoding handler. | |
int | NeverParsed |
true if the Parser instance has not parsed any data. |
|
Constructor; creates a parser by default. Subclasses my allow nesting in which case a pointer to the parent's parser may be passed rather than instantiating a new parser.
|
|
Destructor; disposes of parser and internal data.
|
|
Handler for
This handler is called for each attribute. So a single
Definition at line 185 of file vtkExpatBase.h. |
|
Definition at line 1547 of file vtkExpatBase.h. References AttlistDeclCb(). Referenced by AttlistDeclCb(). |
|
Test whether the file with the given name can be read by this reader.
|
|
Test whether the file with the given name can be read by this reader.
|
|
Text handler. The string your handler receives is NOT zero terminated. You have to use the length argument to deal with the end of the string. A single block of contiguous text free of markup may still result in a sequence of calls to this handler. In other words, if you're searching for a pattern in the text, it may be split across calls to this handler. Reimplemented in vtkPaletteColorBaseParser. Definition at line 259 of file vtkExpatBase.h. |
|
Definition at line 1416 of file vtkExpatBase.h. References CharacterDataCb(). Referenced by CharacterDataCb(). |
|
Override so subclass can react to an error causing exit from parse. rather than leave it for application code to check status. Useful point to insert logging to silently grab failed parses Definition at line 874 of file vtkExpatBase.h. |
|
Handler for comments. The data is all text inside the comment delimiters. Definition at line 274 of file vtkExpatBase.h. |
|
Definition at line 1433 of file vtkExpatBase.h. References CommentCb(). Referenced by CommentCb(). |
|
Handles any characters in the document not otherwise handled. This includes both characters that are part of markup which is of a kind that is not reported (comments, markup declarations), or characters that are part of a construct which could be reported but for which no handler has been supplied. The characters are passed exactly as they were in the XML document except that they will be encoded in UTF-16. Line boundaries are not normalized. Note that a byte order mark character is not passed to the default handler. There are no guarantees about how characters are divided between calls to the default handler: for example, a comment might be split between multiple calls. Definition at line 297 of file vtkExpatBase.h. |
|
Definition at line 1470 of file vtkExpatBase.h. References DefaultCb(). Referenced by DefaultCb(). |
|
This can be called within a handler for a start element, end element, processing instruction or character data. It causes the corresponding markup to be passed to the default handler. Definition at line 761 of file vtkExpatBase.h. |
|
Handler for element declarations in a
The handler gets called with the name of the element in the declaration and a pointer to a structure that contains the element model. It is the application's responsibility to free this data structure.
The
For type
Types Definition at line 164 of file vtkExpatBase.h. |
|
Definition at line 1539 of file vtkExpatBase.h. References ElementDeclCb(). Referenced by ElementDeclCb(). |
|
Utility often used in overridden
|
|
Handler that gets called at the end of a
Definition at line 282 of file vtkExpatBase.h. |
|
Definition at line 1446 of file vtkExpatBase.h. References EndCdataSectionCb(). Referenced by EndCdataSectionCb(). |
|
Handler called at the end of a
Reimplemented in vtkPaletteParser. Definition at line 315 of file vtkExpatBase.h. |
|
Definition at line 1533 of file vtkExpatBase.h. References EndDoctypeDeclCb(). Referenced by EndDoctypeDeclCb(). |
|
Handler for end (and empty) tags. As noted above, an empty tag generates a call to both start and end handlers. Reimplemented in vtkPaletteMaterialParser, and vtkPaletteParser. Definition at line 248 of file vtkExpatBase.h. Referenced by vtkNestingExpatBase::NestedEndElementCb(). |
|
Definition at line 1409 of file vtkExpatBase.h. References EndElementCb(). Referenced by EndElementCb(). |
|
Handler to be called when leaving the scope of a namespace declaration. This will be called, for each namespace declaration, after the handler for the end tag of the element in which the namespace was declared.
Definition at line 372 of file vtkExpatBase.h. |
|
Definition at line 1505 of file vtkExpatBase.h. References EndNamespaceDeclCb(). Referenced by EndNamespaceDeclCb(). |
|
Handler that will be called for all entity declarations.
The For internal entities
value will be non-NULL and systemId , publicId , and notationName will all be NULL . The value string is not NULL terminated; the length is provided in the valueLength parameter. Do not use valueLength to test for internal entities, since it is legal to have zero-length values. Instead check for whether or not value is NULL .
Definition at line 224 of file vtkExpatBase.h. |
|
Definition at line 1559 of file vtkExpatBase.h. References EntityDeclCb(). Referenced by EntityDeclCb(). |
|
Creates an
ExternalEntityRefHandler as long as the parser has not yet been freed. The new parser is completely independent and may safely be used in a separate thread. The handlers and user data are initialized from the parser held by this instance.
Definition at line 519 of file vtkExpatBase.h. |
|
This is called for a reference to an external parsed general entity.
The referenced entity is not automatically parsed. The application can parse it immediately or later using
Definition at line 420 of file vtkExpatBase.h. |
|
Definition at line 1452 of file vtkExpatBase.h. References ExternalEntityRefCb(). Referenced by ExternalEntityRefCb(). |
|
Frees the content model passed to the element declaration handler.
Definition at line 765 of file vtkExpatBase.h. |
|
Get an attribute value converted to a boolean type value.
|
|
Get an attribute value converted to an
|
|
Get an attribute value converted to a
|
|
Get an attribute value converted to a
|
|
Get an attribute value converted to an
|
|
Get an attribute value converted to a
|
|
Get an attribute value.
|
|
Get an attribute value converted to a
|
|
Get an attribute value converted to a
|
|
Get an attribute value converted to a
|
|
Get an attribute value converted to an
|
|
Return the base for resolving relative URIs.
Definition at line 647 of file vtkExpatBase.h. |
|
Return the number of bytes in the current event.
Definition at line 606 of file vtkExpatBase.h. |
|
Return the byte offset of the position.
This always corresponds to the values returned by Definition at line 596 of file vtkExpatBase.h. |
|
Return the offset, from the beginning of the current line, of the position.
Definition at line 588 of file vtkExpatBase.h. |
|
Return the line number of the position.
Definition at line 581 of file vtkExpatBase.h. |
|
Returns a list of "feature" records, providing details on how Expat was configured at compile time.
Most applications should not need to worry about this, but this information is otherwise not available from Expat. This function allows code that does need to check these features to do so at runtime.
Definition at line 837 of file vtkExpatBase.h. |
|
Return a string containing the version number of this expat.
Definition at line 776 of file vtkExpatBase.h. |
|
Return an XML_Expat_Version structure containing numeric version number information for this version of expat.
Definition at line 783 of file vtkExpatBase.h. |
|
Set/Get the name of the file to read.
|
|
Returns index of ID attribute passed in last call to XML_StartElementHandler.
Definition at line 671 of file vtkExpatBase.h. |
|
Get the current parse poition in the input buffer.
If
Definition at line 621 of file vtkExpatBase.h. |
|
Set/Get a string to parse.
|
|
Get the length of the string to parse.
|
|
If
Definition at line 566 of file vtkExpatBase.h. |
|
Return a string describing the error corresponding to code.
The code should be one of the enumerations that can be returned from Definition at line 574 of file vtkExpatBase.h. |
|
Returns actual number of attribute/value pairs in the start-tag.
Definition at line 658 of file vtkExpatBase.h. |
|
Set/Get the file stream to read from, overriding any URI, if specified.
|
|
Set this object as the value passed as user data to callbacks.
Definition at line 629 of file vtkExpatBase.h. Referenced by vtkNestingExpatBase::GrabInternalParserFromParent(), and vtkNestingExpatBase::ReturnToParent(). |
|
Subclass-specific termination (i.e. free memory and close the input). |
|
Subclass-specific initialization (i.e. stat and open the input stream). |
|
Handler that receives notation declarations.
The Definition at line 340 of file vtkExpatBase.h. |
|
Definition at line 1588 of file vtkExpatBase.h. References NotationDeclCb(). Referenced by NotationDeclCb(). |
|
Handler that is called if the document is not "standalone".
Called if the document has an external subset or a reference to a parameter entity, but does not have standalone="yes". If this handler returns Definition at line 385 of file vtkExpatBase.h. |
|
Definition at line 1599 of file vtkExpatBase.h. References NotStandaloneCb(). Referenced by NotStandaloneCb(). |
|
Implicit conversion from type
Definition at line 1345 of file vtkExpatBase.h. |
|
Initiate the parsing process.
|
|
Read the input stream parsing as we go. All of the registered callbacks are called (if the parser encounters its associated event) within. |
|
Check to see whether parsing is complete. Called before each block of input is read from the stream to check if parsing is complete. Can be replaced by subclasses to change the terminating condition for parsing. Parsing always stops when the end of file is reached in the stream. |
|
Check the features compiled into the parser.
|
|
Reimplemented from vtkExtensionsObject. Reimplemented in vtkNestingExpatBase, vtkPaletteColorBaseParser, and vtkPaletteElementParser. |
|
Handler for processing instructions. The target is the first word in the processing instruction. The data is the rest of the characters in it after skipping all whitespace after the initial word. Definition at line 267 of file vtkExpatBase.h. |
|
Definition at line 1424 of file vtkExpatBase.h. References ProcessingInstructionCb(). Referenced by ProcessingInstructionCb(). |
|
Subclass-specific initialization (i.e. stat and open the input stream). |
|
Provide single point that will call
Referenced by vtkNestingExpatBase::SetParent(). |
|
Reset the parser and its event handlers, preparing for reuse. This is particularly valuable when memory allocation overhead is disproportionatly high, such as when a large number of small documnents need to be parsed.
|
|
Definition at line 1189 of file vtkExpatBase.h. |
|
Set the base to be used for resolving relative URIs in system identifiers in declarations.
Resolving relative identifiers is left to the application: this value will be passed through as the base argument to the
Definition at line 643 of file vtkExpatBase.h. |
|
Definition at line 1227 of file vtkExpatBase.h. |
|
Definition at line 1214 of file vtkExpatBase.h. |
|
Definition at line 1223 of file vtkExpatBase.h. |
|
Definition at line 1244 of file vtkExpatBase.h. |
|
Definition at line 1248 of file vtkExpatBase.h. |
|
Definition at line 1252 of file vtkExpatBase.h. |
|
Definition at line 1185 of file vtkExpatBase.h. |
|
Definition at line 1201 of file vtkExpatBase.h. |
|
This is equivalent to supplying an encoding argument to XML_ParserCreate.
Definition at line 681 of file vtkExpatBase.h. |
|
Definition at line 1239 of file vtkExpatBase.h. |
|
Definition at line 1264 of file vtkExpatBase.h. |
|
Definition at line 1210 of file vtkExpatBase.h. |
|
Definition at line 1290 of file vtkExpatBase.h. |
|
Definition at line 1197 of file vtkExpatBase.h. |
|
Definition at line 1299 of file vtkExpatBase.h. |
|
Definition at line 1308 of file vtkExpatBase.h. |
|
Definition at line 1304 of file vtkExpatBase.h. |
|
Set/Get the name of the file to read.
|
|
Set/Get a string to parse.
|
|
Definition at line 1278 of file vtkExpatBase.h. |
|
Definition at line 1274 of file vtkExpatBase.h. |
|
Definition at line 1295 of file vtkExpatBase.h. |
|
Controls parsing of parameter entities (including external DTD subset).
If parsing of parameter entities is enabled, then references to external parameter entities (including the external DTD subset) will be passed to the handler set with
Unlike external general entities, external parameter entities can only be parsed synchronously. If the external parameter entity is to be parsed, it must be parsed during the call to the external entity ref handler: the complete sequence of
Definition at line 708 of file vtkExpatBase.h. |
|
Definition at line 1218 of file vtkExpatBase.h. |
|
Return name as a triplet in a single string separated by the separator character.
If
If
Definition at line 751 of file vtkExpatBase.h. |
|
Definition at line 1312 of file vtkExpatBase.h. |
|
Definition at line 1234 of file vtkExpatBase.h. |
|
Definition at line 1259 of file vtkExpatBase.h. |
|
Definition at line 1206 of file vtkExpatBase.h. |
|
Definition at line 1285 of file vtkExpatBase.h. |
|
Set/Get the file stream to read from, overriding any URI, if specified.
|
|
Definition at line 1316 of file vtkExpatBase.h. |
|
Definition at line 1269 of file vtkExpatBase.h. |
|
Set the handlers used by expat callbacks.
Reimplemented in vtkNestingExpatBase, vtkPaletteColorBaseParser, and vtkPaletteElementParser. |
|
Definition at line 1193 of file vtkExpatBase.h. |
|
Skipped entity handler. This is called in two situations:
isParameterEntity argument will be non-zero for a parameter entity and zero for a general entity.
Definition at line 447 of file vtkExpatBase.h. |
|
Definition at line 1478 of file vtkExpatBase.h. References SkippedEntityCb(). Referenced by SkippedEntityCb(). |
|
Skip to first non-whitespace character.
|
|
Skip to first non-whitespace character.
|
|
Handler that gets called at the beginning of a
Definition at line 278 of file vtkExpatBase.h. |
|
Definition at line 1440 of file vtkExpatBase.h. References StartCdataSectionCb(). Referenced by StartCdataSectionCb(). |
|
Handler called at start of a
Both Reimplemented in vtkPaletteParser. Definition at line 306 of file vtkExpatBase.h. |
|
Definition at line 1522 of file vtkExpatBase.h. References StartDoctypeDeclCb(). Referenced by StartDoctypeDeclCb(). |
|
Handler for start (and empty) tags. Attributes are passed to the start handler as a pointer to a vector of char pointers. Each attribute seen in a start (or empty) tag occupies 2 consecutive places in this vector: the attribute name followed by the attribute value. These pairs are terminated by a null pointer. Names and values are 0 terminated. Reimplemented in vtkPaletteMaterialParser, and vtkPaletteParser. Definition at line 241 of file vtkExpatBase.h. Referenced by vtkNestingExpatBase::NestedStartElementCb(). |
|
Definition at line 1401 of file vtkExpatBase.h. References StartElementCb(). Referenced by StartElementCb(). |
|
Handler to be called when a namespace is declared. Namespace declarations occur inside start tags. But the namespace declaration start handler is called before the start tag handler for each namespace declared in that start tag.
Definition at line 357 of file vtkExpatBase.h. |
|
Definition at line 1496 of file vtkExpatBase.h. References StartNamespaceDeclCb(). Referenced by StartNamespaceDeclCb(). |
|
Set a handler to deal with encodings other than the built in set. If the handler knows how to deal with an encoding with the given name, it should fill in the info data structure and return 1. Otherwise it should return 0.
The map array contains information for every possible possible leading byte in a byte sequence. If the corresponding value is >= 0, then it's a single byte sequence and the byte encodes that Unicode value. If the value is -1, then that byte is invalid as the initial byte in a sequence. If the value is -n, where n is an integer > 1, then n is the number of bytes in the sequence and the actual conversion is accomplished by a call to the function pointed at by convert. This function may return -1 if the sequence itself is invalid. The convert pointer may be null if there are only single byte codes. The data parameter passed to the convert function is the data pointer from XML_Encoding. The string s is NOT null terminated and points at the sequence of bytes to be converted. The function pointed at by release is called by the parser when it is finished with the encoding. It may be null. Definition at line 481 of file vtkExpatBase.h. |
|
Definition at line 1487 of file vtkExpatBase.h. References UnknownEncodingCb(). Referenced by UnknownEncodingCb(). |
|
Handler that receives declarations of unparsed entities.
These are entity declarations that have a notation
Definition at line 328 of file vtkExpatBase.h. |
|
Definition at line 1576 of file vtkExpatBase.h. References UnparsedEntityDeclCb(). Referenced by UnparsedEntityDeclCb(). |
|
If
In such a case the parser will call the
Definition at line 732 of file vtkExpatBase.h. |
|
|
|
Parses some input.
Definition at line 533 of file vtkExpatBase.h. |
|
Handles XML decls and text decls discovered in external entities.
The way to distinguish is that the Definition at line 200 of file vtkExpatBase.h. |
|
Definition at line 1512 of file vtkExpatBase.h. References XmlDeclCb(). Referenced by XmlDeclCb(). |
|
Untyped pointer needed by the UnknownEncoding handler.
Definition at line 1351 of file vtkExpatBase.h. |
|
Definition at line 1354 of file vtkExpatBase.h. |
|
The parser instance wrapped by this object.
Definition at line 1348 of file vtkExpatBase.h. Referenced by vtkNestingExpatBase::GrabInternalParserFromParent(). |