Template Struct xml¶
Defined in File parser.h
Struct Documentation¶
-
template<typename
ContextT>
structudho::view::parsing::xml¶ Public Types
-
typedef boost::function<bool(pugi::xml_node, pugi::xml_node, const context_type&)>
tag_directive¶
-
typedef boost::function<bool(pugi::xml_node, pugi::xml_node, pugi::xml_attribute, const context_type&)>
attr_directive¶
-
typedef std::map<std::string, tag_directive>
tag_directive_map¶
-
typedef std::map<std::string, attr_directive>
attr_directive_map¶
Public Functions
-
xml(const context_type &ctx)¶
-
void
open(const std::string &contents)¶
-
void
clear()¶
-
void
parse(pugi::xml_node node, pugi::xml_node target)¶
-
void
step_in(pugi::xml_node node, pugi::xml_node target)¶
-
void
travarse(pugi::xml_node node, pugi::xml_node target)¶
-
void
parse()¶
-
std::string
output()¶
-
template<typename
DirectiveT>
xml &add_directive_tag(DirectiveT directive)¶
-
template<typename
DirectiveT>
xml &add_directive_attr(DirectiveT directive)¶
Public Members
-
const context_type &
_ctx¶
-
pugi::xml_document
_source¶
-
pugi::xml_document
_transformed¶
-
tag_directive_map
_directives_tag¶
-
attr_directive_map
_directives_attr¶
-
typedef boost::function<bool(pugi::xml_node, pugi::xml_node, const context_type&)>