This class "has a" pointer to a held and wrapped Reader object, and operations on this object are passed to the held reader. The held reader is passed a Utf8CheckingInStreamBufWrapper, which holds and wraps a normal streambuf. The Utf8CheckingInStreamBufWrapper checks input for invalid UTF‐8, and if it detects any, makes the diagnosis of the problem available through the errorInfo accessor.
Synopsis
Declared in <balxml_utf8readerwrapper.h>
class Utf8ReaderWrapper
: public Reader
Base Classes
Name |
Description |
This abstract class defines an interface for fast, forward‐only access to XML data. An object belonging to a derived‐class implementation of this protocol is required to be re‐usable, such that a new XML document can be parsed using the same reader object by calling |
Type Aliases
Name |
Description |
Managed pointer to a |
|
Type for a user supplied functor that finds and opens an external resource for the specified |
Enums
Name |
Description |
Node types returned by |
Member Functions
Name |
Description |
|
Create a |
|
Close the held reader and destroy this object. |
|
Move to the next node in the data steam created by |
Return the allocator used by this object to allocate memory. |
|
|
Close the reader. Most, but not all state is reset. Specifically, the XML resource resolver and the prefix stack remain. The prefix stack shall be returned to the stack depth it had when |
|
Return the document encoding or NULL on error. The returned poiner is owned by this object and must not be modified or deallocated by the caller. The returned pointer becomes invalid when |
Print the information about the current node to the specified output |
|
|
Return a reference to the non‐modifiable error information for this reader. The returned value becomes invalid when |
|
Return the current column number within the input stream. The current column number is the number of characters since the last newline was read by the reader plus one, i.e., the first column of each line is column number one. Return 0 if not available. Note that a derived‐class implementation is not required to count columns and may just return 0. |
|
Return the current line number within the input stream. The current line is the last line for which the reader has not yet seen a newline. Lines are counted starting at one from the time a stream is provided to |
|
Return true if the current node is an element (i.e., node type is |
Return |
|
Return |
|
|
Return true if |
Return |
|
|
|
|
Return the base URI name of the current node if the current node has a base URI and NULL otherwise. The returned pointer is owned by this object and must not be modified or deallocated by the caller. The returned pointer becomes invalid upon the next |
|
Return the nesting depth of the current node in the XML document. The root node has depth 0. |
|
Return true if the current node has a value and false otherwise. |
|
Return the local name of the current node if the current node has a local name and NULL otherwise. The returned pointer is owned by this object and must not be modified or deallocated by the caller. The returned pointer becomes invalid upon the next |
|
Return the qualified name of the current node if the current node has a name and NULL otherwise. The returned pointer is owned by this object and must not be modified or deallocated by the caller. The returned pointer becomes invalid upon the next |
|
Return the namespace ID of the current node if the current node has a namespace id and a negative number otherwise. |
|
Return the namespace URI name of the current node if the current node has a namespace URI and NULL otherwise. The returned pointer is owned by this object and must not be modified or deallocated by the caller. The returned pointer becomes invalid upon the next |
|
Return the prefix name of the current node if the correct node has a prefix name and NULL otherwise. The returned pointer is owned by this object and must not be modified or deallocated by the caller. The returned pointer becomes invalid upon the next |
|
Return the node type of the current node if the reader |
|
Return the value of the current node if the current node has a value and NULL otherwise. The returned pointer is owned by this object and must not be modified or deallocated by the caller. The returned pointer becomes invalid upon the next |
|
Return the number of attributes for the current node if that node has attributes and 0 otherwise. |
|
|
|
Return the option flags. |
|
Return a pointer to the modifiable prefix stack that is used by this reader to manage namespace prefixes or 0 if namespace support is disabled. The behavior is undefined if the returned prefix stack is augmented in any way after calling |
|
Return the external XML resource resolver. |
|
Set the options of the held reader to the flags in the specified |
|
Set the prefix stack to the stack at the optionally specified |
|
Set the external XML resource resolver to the specified |
|
|
Static Member Functions
Name |
Description |
Return a string representation for the specified |
Created with MrDocs