|
libzypp 17.37.1
|
Helper class to build a Consumer. More...
#include <zypp/parser/xml/ParseDefConsume.h>
Public Member Functions | |
| Builder () | |
| Contruct Consumer. | |
| template<class Tp> | |
| Builder (Tp &value_r) | |
| Contruct Consumer. | |
| template<class Tp> | |
| Builder (const std::string &attr_r, Tp &value_r) | |
| Contruct Consumer. | |
| template<class Tp> | |
| Builder & | operator() (Tp &value_r) |
| Extend Consumer. | |
| template<class Tp> | |
| Builder & | operator() (const std::string &attr_r, Tp &value_r) |
| Extend Consumer. | |
| Builder & | operator<< (function< void(const Node &)> done_r) |
| Set pre notification callback. | |
| Builder & | operator>> (function< void(const Node &)> done_r) |
| Set post notification callback. | |
| operator shared_ptr< ParseDefConsume > () const | |
| Type conversion so this can be passed as node consumer to ParseDef. | |
Private Attributes | |
| shared_ptr< Consumer > | _ptr |
Helper class to build a Consumer.
The class constructs the consumer, allows to extend it via operator(), and provides a conversion to shared_ptr<ParseDefConsume>, so it can be passed as a node consumer to ParseDef.
You may also set a void( const Node & ) notification callback which is invoked before/after the node was processed.
Definition at line 281 of file ParseDefConsume.h.
|
inline |
Contruct Consumer.
Definition at line 284 of file ParseDefConsume.h.
|
inline |
Contruct Consumer.
Definition at line 290 of file ParseDefConsume.h.
|
inline |
Contruct Consumer.
Definition at line 296 of file ParseDefConsume.h.
|
inline |
Extend Consumer.
Definition at line 302 of file ParseDefConsume.h.
|
inline |
Extend Consumer.
Definition at line 307 of file ParseDefConsume.h.
|
inline |
Set pre notification callback.
Definition at line 311 of file ParseDefConsume.h.
|
inline |
Set post notification callback.
Definition at line 315 of file ParseDefConsume.h.
|
inline |
Type conversion so this can be passed as node consumer to ParseDef.
Definition at line 319 of file ParseDefConsume.h.
|
private |
Definition at line 323 of file ParseDefConsume.h.