Doxygen
|
#include <libxml/xml.h>
Classes | |
struct | Private |
Public Types | |
using | Transcode = bool(std::string &,const char *) |
Public Member Functions | |
XMLParser (const XMLHandlers &handlers) | |
~XMLParser () override | |
XMLParser (const XMLParser &)=delete | |
XMLParser & | operator= (const XMLParser &)=delete |
XMLParser (XMLParser &&)=delete | |
XMLParser & | operator= (XMLParser &&)=delete |
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;}) |
Public Member Functions inherited from XMLLocator | |
XMLLocator ()=default | |
XMLLocator (const XMLLocator &)=delete | |
XMLLocator & | operator= (const XMLLocator &)=delete |
XMLLocator (XMLLocator &&)=delete | |
XMLLocator & | operator= (XMLLocator &&)=delete |
virtual | ~XMLLocator ()=default |
Private Member Functions | |
int | lineNr () const override |
std::string | fileName () const override |
Private Attributes | |
std::unique_ptr< Private > | p |
using XMLParser::Transcode = bool(std::string &,const char *) |
XMLParser::XMLParser | ( | const XMLHandlers & | handlers | ) |
Creates an instance of the parser object. Different instances can run on different threads without interference.
handlers | The event handlers passed by the client. |
Definition at line 436 of file xml.l.
References p.
Referenced by operator=(), operator=(), XMLParser(), and XMLParser().
|
override |
|
delete |
References XMLParser().
|
delete |
References XMLParser().
|
overrideprivatevirtual |
|
overrideprivatevirtual |
References XMLParser().
References XMLParser().
void XMLParser::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; } ) |
Parses a file gives the contents of the file as a string.
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 |
Definition at line 447 of file xml.l.
References fileName(), msg(), p, and reportError().
Referenced by LayoutDocManager::init(), LayoutDocManager::parse(), and parseTagFile().
|
private |
Definition at line 109 of file xml.h.
Referenced by fileName(), lineNr(), parse(), XMLParser(), and ~XMLParser().