|
libzypp
14.29.1
|
Typesafe passing of user data via callbacks. More...
#include <UserData.h>
Public Member Functions | |
| UserData () | |
| Default ctor. More... | |
| const ContentType & | type () const |
| Get type. More... | |
| void | type (const ContentType &type_r) |
| Set type. More... | |
| operator bool () const | |
| Validate object in a boolean context: has data. More... | |
Private Types | |
| typedef std::map< std::string, boost::any > | DataType |
Private Attributes | |
| ContentType | _type |
| shared_ptr< DataType > | _dataP |
Related Functions | |
(Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const UserData &obj) |
Typesafe passing of user data via callbacks.
Basically a std::map<std::string,boost::any> plus associated ContentType.
Definition at line 35 of file UserData.h.
|
private |
Definition at line 37 of file UserData.h.
|
inline |
Default ctor.
Definition at line 40 of file UserData.h.
|
inline |
Get type.
Definition at line 45 of file UserData.h.
|
inline |
Set type.
Definition at line 49 of file UserData.h.
|
inlineexplicit |
Validate object in a boolean context: has data.
Definition at line 54 of file UserData.h.
|
related |
Stream output
Definition at line 63 of file UserData.h.
|
private |
Definition at line 58 of file UserData.h.
|
private |
Definition at line 59 of file UserData.h.