|
These methods are declared static in the class header. This gives them C linkage which allows them to be used as callbacks by the SAX parser engine.
|
static void | dmrpp::DmrppParserSax2::dmr_start_document (void *parser) |
|
static void | dmrpp::DmrppParserSax2::dmr_end_document (void *parser) |
|
static void | dmrpp::DmrppParserSax2::dmr_start_element (void *parser, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes) |
|
static void | dmrpp::DmrppParserSax2::dmr_end_element (void *parser, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI) |
|
static void | dmrpp::DmrppParserSax2::dmr_get_characters (void *parser, const xmlChar *ch, int len) |
|
static void | dmrpp::DmrppParserSax2::dmr_ignoreable_whitespace (void *parser, const xmlChar *ch, int len) |
|
static void | dmrpp::DmrppParserSax2::dmr_get_cdata (void *parser, const xmlChar *value, int len) |
|
static xmlEntityPtr | dmrpp::DmrppParserSax2::dmr_get_entity (void *parser, const xmlChar *name) |
|
static void | dmrpp::DmrppParserSax2::dmr_fatal_error (void *parser, const char *msg,...) |
|
static void | dmrpp::DmrppParserSax2::dmr_error (void *parser, const char *msg,...) |
|
The strict mode of the parser is the default. In this mode any error will result in an exception and parsing will stop. When strict mode is set to false (forgiving mode?), some errors will be silently ignored. The list of allowed errors is: The Array named by a Map element is not required to be in the DMR. There are no other allowed errors at this time (4/13/16)
◆ clone()
void dmrpp::DmrppParserSax2::XMLAttribute::clone |
( |
const XMLAttribute & | src | ) |
|
|
inline |
◆ dmr_end_document()
void dmrpp::DmrppParserSax2::dmr_end_document |
( |
void * | p | ) |
|
|
static |
◆ dmr_end_element()
void dmrpp::DmrppParserSax2::dmr_end_element |
( |
void * | parser, |
|
|
const xmlChar * | localname, |
|
|
const xmlChar * | prefix, |
|
|
const xmlChar * | URI ) |
|
static |
◆ dmr_error()
void dmrpp::DmrppParserSax2::dmr_error |
( |
void * | parser, |
|
|
const char * | msg, |
|
|
| ... ) |
|
static |
◆ dmr_fatal_error()
void dmrpp::DmrppParserSax2::dmr_fatal_error |
( |
void * | p, |
|
|
const char * | msg, |
|
|
| ... ) |
|
static |
Process an XML fatal error. Note that SAX provides for warnings, errors and fatal errors. This code treats them all as fatal errors since there's typically no way to tell a user about the error since there's often no user interface for this software.
- Note
- This static function does not throw an exception or otherwise alter flow of control except for altering the parser state.
- Parameters
-
p | The SAX parser |
msg | A printf-style format string. |
Definition at line 1652 of file DmrppParserSax2.cc.
◆ dmr_get_cdata()
void dmrpp::DmrppParserSax2::dmr_get_cdata |
( |
void * | p, |
|
|
const xmlChar * | value, |
|
|
int | len ) |
|
static |
Get characters in a cdata block. DAP does not use CData, but XML in an OtherXML attribute (the value of that DAP attribute) might use it. This callback also allows CData when the parser is in the 'parser_unknown' state since some future DAP element might use it.
Definition at line 1614 of file DmrppParserSax2.cc.
◆ dmr_get_characters()
void dmrpp::DmrppParserSax2::dmr_get_characters |
( |
void * | p, |
|
|
const xmlChar * | ch, |
|
|
int | len ) |
|
static |
Process/accumulate character data. This may be called more than once for one logical clump of data. Only save character data when processing 'value' elements; throw away all other characters.
Definition at line 1569 of file DmrppParserSax2.cc.
◆ dmr_get_entity()
xmlEntityPtr dmrpp::DmrppParserSax2::dmr_get_entity |
( |
void * | parser, |
|
|
const xmlChar * | name ) |
|
static |
Handle the standard XML entities.
- Parameters
-
parser | The SAX parser |
name | The XML entity. |
Definition at line 1637 of file DmrppParserSax2.cc.
◆ dmr_ignoreable_whitespace()
void dmrpp::DmrppParserSax2::dmr_ignoreable_whitespace |
( |
void * | p, |
|
|
const xmlChar * | ch, |
|
|
int | len ) |
|
static |
Read whitespace that's not really important for content. This is used only for the OtherXML attribute type to preserve formating of the XML. Doing so makes the attribute value far easier to read.
Definition at line 1595 of file DmrppParserSax2.cc.
◆ dmr_start_document()
void dmrpp::DmrppParserSax2::dmr_start_document |
( |
void * | p | ) |
|
|
static |
Initialize the SAX parser state object. This object is passed to each callback as a void pointer. The initial state is parser_start.
- Parameters
-
Definition at line 811 of file DmrppParserSax2.cc.
◆ dmr_start_element()
void dmrpp::DmrppParserSax2::dmr_start_element |
( |
void * | parser, |
|
|
const xmlChar * | localname, |
|
|
const xmlChar * | prefix, |
|
|
const xmlChar * | URI, |
|
|
int | nb_namespaces, |
|
|
const xmlChar ** | namespaces, |
|
|
int | nb_attributes, |
|
|
int | nb_defaulted, |
|
|
const xmlChar ** | attributes ) |
|
static |
◆ get_strict()
bool dmrpp::DmrppParserSax2::get_strict |
( |
| ) |
const |
|
inline |
Get the setting of the 'strict' mode.
- Returns
- True or False.
Definition at line 303 of file DmrppParserSax2.h.
◆ operator=()
XMLAttribute & dmrpp::DmrppParserSax2::XMLAttribute::operator= |
( |
const XMLAttribute & | rhs | ) |
|
|
inline |
◆ set_strict()
void dmrpp::DmrppParserSax2::set_strict |
( |
bool | s | ) |
|
|
inline |
◆ XMLAttribute() [1/4]
dmrpp::DmrppParserSax2::XMLAttribute::XMLAttribute |
( |
| ) |
|
|
inline |
◆ XMLAttribute() [2/4]
dmrpp::DmrppParserSax2::XMLAttribute::XMLAttribute |
( |
const std::string & | p, |
|
|
const std::string & | ns, |
|
|
const std::string & | v ) |
|
inline |
◆ XMLAttribute() [3/4]
dmrpp::DmrppParserSax2::XMLAttribute::XMLAttribute |
( |
const XMLAttribute & | rhs | ) |
|
|
inline |
◆ XMLAttribute() [4/4]
dmrpp::DmrppParserSax2::XMLAttribute::XMLAttribute |
( |
const xmlChar ** | attributes | ) |
|
|
inline |
◆ nsURI
std::string dmrpp::DmrppParserSax2::XMLAttribute::nsURI |
◆ prefix
std::string dmrpp::DmrppParserSax2::XMLAttribute::prefix |
◆ value
std::string dmrpp::DmrppParserSax2::XMLAttribute::value |