libzypp 17.31.23
|
ParseDef consumer assigning Node text and attribues values to variables. More...
#include <parser/xml/ParseDefConsume.h>
Public Member Functions | |
void | add (const AssignerRef &assigner_r) |
Extend Consumer. | |
void | add (const std::string &attr_r, const AssignerRef &assigner_r) |
Extend Consumer. | |
void | prenotify (function< void(const Node &)> pre_r) |
Set pre notification callback. | |
void | postnotify (function< void(const Node &)> post_r) |
Set post notification callback. | |
virtual void | start (const xml::Node &node_r) |
virtual void | text (const xml::Node &node_r) |
virtual void | done (const xml::Node &node_r) |
Public Member Functions inherited from zypp::xml::ParseDefConsume | |
virtual | ~ParseDefConsume () |
virtual void | start (const Node &_node) |
virtual void | text (const Node &_node) |
virtual void | cdata (const Node &_node) |
virtual void | done (const Node &_node) |
virtual void | startSubnode (const Node &_node) |
virtual void | doneSubnode (const Node &_node) |
Private Member Functions | |
void | assign (const std::vector< AssignerRef > &vec_r, const char *value_r) |
Private Attributes | |
std::unordered_map< std::string, std::vector< AssignerRef > > | _attr |
std::vector< AssignerRef > | _text |
function< void(const Node &)> | _pre |
function< void(const Node &)> | _post |
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.
Definition at line 212 of file ParseDefConsume.h.
|
inline |
Extend Consumer.
Definition at line 215 of file ParseDefConsume.h.
|
inline |
Extend Consumer.
Definition at line 219 of file ParseDefConsume.h.
|
inline |
Set pre notification callback.
Definition at line 223 of file ParseDefConsume.h.
|
inline |
Set post notification callback.
Definition at line 227 of file ParseDefConsume.h.
|
inlinevirtual |
Reimplemented from zypp::xml::ParseDefConsume.
Definition at line 230 of file ParseDefConsume.h.
|
inlinevirtual |
Reimplemented from zypp::xml::ParseDefConsume.
Definition at line 240 of file ParseDefConsume.h.
|
inlinevirtual |
Reimplemented from zypp::xml::ParseDefConsume.
Definition at line 246 of file ParseDefConsume.h.
|
inlineprivate |
Definition at line 253 of file ParseDefConsume.h.
|
private |
Definition at line 261 of file ParseDefConsume.h.
|
private |
Definition at line 262 of file ParseDefConsume.h.
|
private |
Definition at line 263 of file ParseDefConsume.h.
|
private |
Definition at line 264 of file ParseDefConsume.h.