ParseDef consumer assigning Node text and attribues values to variables.
More...
#include <zypp/parser/xml/ParseDefConsume.h>
ParseDef consumer assigning Node text and attribues values to variables.
This can be used with all types supported by Assigner. Basically all types constructible from char*, or where a specialisation exists (e.g. numeric and bool).
You may also set a void( const Node & ) notification callback which is invoked after the node was processed.
- Note
- Use and see xml::parseDefAssign convenience constructor.
( "attr", data.attr ) )
Define a xml node structure to parse.
parse_def_assign::Builder parseDefAssign()
Definition at line 213 of file ParseDefConsume.h.
◆ add() [1/2]
| void zypp::xml::parse_def_assign::Consumer::add |
( |
const AssignerRef & | assigner_r | ) |
|
|
inline |
◆ add() [2/2]
| void zypp::xml::parse_def_assign::Consumer::add |
( |
const std::string & | attr_r, |
|
|
const AssignerRef & | assigner_r ) |
|
inline |
◆ prenotify()
| void zypp::xml::parse_def_assign::Consumer::prenotify |
( |
function< void(const Node &)> | pre_r | ) |
|
|
inline |
◆ postnotify()
| void zypp::xml::parse_def_assign::Consumer::postnotify |
( |
function< void(const Node &)> | post_r | ) |
|
|
inline |
◆ start()
| void zypp::xml::parse_def_assign::Consumer::start |
( |
const xml::Node & | node_r | ) |
|
|
inlineoverridevirtual |
◆ text()
| void zypp::xml::parse_def_assign::Consumer::text |
( |
const xml::Node & | node_r | ) |
|
|
inlineoverridevirtual |
◆ done()
| void zypp::xml::parse_def_assign::Consumer::done |
( |
const xml::Node & | node_r | ) |
|
|
inlineoverridevirtual |
◆ assign()
| void zypp::xml::parse_def_assign::Consumer::assign |
( |
const std::vector< AssignerRef > & | vec_r, |
|
|
const char * | value_r ) |
|
inlineprivate |
◆ _attr
| std::unordered_map<std::string, std::vector<AssignerRef> > zypp::xml::parse_def_assign::Consumer::_attr |
|
private |
◆ _text
| std::vector<AssignerRef> zypp::xml::parse_def_assign::Consumer::_text |
|
private |
◆ _pre
| function<void ( const Node & )> zypp::xml::parse_def_assign::Consumer::_pre |
|
private |
◆ _post
| function<void ( const Node & )> zypp::xml::parse_def_assign::Consumer::_post |
|
private |
The documentation for this struct was generated from the following file: