The XMLParser
Class Reference
Declaration
Included Headers
Base class
class | XMLLocator |
Public Member Typedefs Index
using | Transcode = bool(std::string &, const char *) |
Public Constructors Index
XMLParser (const XMLHandlers &handlers) | |
XMLParser (const XMLParser &)=delete | |
XMLParser (XMLParser &&)=delete | |
Public Destructor Index
~XMLParser () override | |
Public Operators Index
XMLParser & | operator= (const XMLParser &)=delete |
XMLParser & | operator= (XMLParser &&)=delete |
Public Member Functions Index
void | parse (const char *fileName, const char *inputString, bool debugEnabled, std::function< void()> debugStart, std::function< void()> debugEnd, std::function< Transcode > transcoder=[](std::string &s, const char *){ return true;}) |
Private Member Functions Index
int | lineNr () const override |
std::string | fileName () const override |
Private Member Attributes Index
std::unique_ptr< Private > | p |
Description
Very basic SAX style parser to parse XML documents.
Definition at line 70 of file xml.h.
Public Constructors
XMLParser()
|
Creates an instance of the parser object. Different instances can run on different threads without interference.
- Parameters
-
handlers The event handlers passed by the client.
Declaration at line 78 of file xml.h, definition at line 436 of file xml.l.
Reference p.
Referenced by operator=, operator=, XMLParser and XMLParser.
XMLParser()
| delete |
XMLParser()
Public Operators
operator=()
| delete |
operator=()
Public Member Functions
parse()
|
Parses a file gives the contents of the file as a string.
- Parameters
-
fileName the name of the file, used for error reporting.
inputString the contents of the file as a zero terminated UTF-8 string.
debugEnabled indicates if debugging via -d lex is enabled or not.
debugStart hook that is to be called before starting with parsing
debugEnd hook that is to be called after finishing with parsing
transcoder hook that is to be called when transcoding text to UTF-8
Declaration at line 96 of file xml.h, definition at line 447 of file xml.l.
References fileName, msg, p and reportError.
Referenced by LayoutDocManager::init, LayoutDocManager::parse and parseTagFile.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.