|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef XMLCOREPARSER_EXPATCOREPARSER_H
6 #define XMLCOREPARSER_EXPATCOREPARSER_H
21 static std::unique_ptr<CoreParser::DOMNode>
parse (
const std::string&
file_name);
29 void do_start (
const char*
el,
const char** attr);
37 const XML_Char* context,
40 static void start (
void* ,
const char*
el,
const char** attr);
41 static void end (
void* ,
const char*
el);
42 static void char_data (
void* ,
const XML_Char*
s,
int len);
44 static void comment (
void* ,
const XML_Char*
s);
46 const XML_Char* context,
50 static void entity (
void* userData,
51 const XML_Char* entityName,
52 int is_parameter_entity,
53 const XML_Char*
value,
57 const XML_Char* publicId,
66 std::unique_ptr<CoreParser::DOMNode>
m_top;
71 typedef std::lock_guard<std::mutex>
lock_t;
static int external_entity(XML_Parser parser, const XML_Char *context, const XML_Char *, const XML_Char *systemId, const XML_Char *)
static const std::string & find_external_entity(const std::string &name)
void do_end(const char *el)
int do_external_entity(XML_Parser parser, const XML_Char *context, const XML_Char *systemId)
static const std::string & find_text_entity(const std::string &name)
std::lock_guard< std::mutex > lock_t
static void entity(void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *)
std::map< std::string, std::string > ExternalEntityMap
void do_char_data(const XML_Char *s, int len)
static void end(void *, const char *el)
ExpatCoreParser(const std::string &prefix)
static void register_text_entity(const std::string &name, const std::string &text)
void do_comment(const XML_Char *s)
CoreParser::DOMNode * m_last
void do_default_handler(const XML_Char *s, int len)
int generic_parse(XML_Parser p, const std::string &file_name)
std::unique_ptr< CoreParser::DOMNode > get_document()
static void start(void *, const char *el, const char **attr)
static ExternalEntityMap s_text_entities ATLAS_THREAD_SAFE
static void char_data(void *, const XML_Char *s, int len)
static ExternalEntityMap s_entities ATLAS_THREAD_SAFE
static void default_handler(void *, const XML_Char *s, int len)
void do_start(const char *el, const char **attr)
static std::unique_ptr< CoreParser::DOMNode > parse(const std::string &file_name)
int generic_text_parse(XML_Parser p, const std::string &text)
static std::mutex s_mutex
static void comment(void *, const XML_Char *s)
static void register_external_entity(const std::string &name, const std::string &file_name)
Define macros for attributes used to control the static checker.
std::unique_ptr< CoreParser::DOMNode > m_top