libzypp 17.31.7
|
JobReport convenience sending this instance of UserData with each message. More...
#include <ZYppCallbacks.h>
Public Member Functions | |
bool | debug (const std::string &msg_r) |
bool | info (const std::string &msg_r) |
bool | warning (const std::string &msg_r) |
bool | error (const std::string &msg_r) |
bool | important (const std::string &msg_r) |
bool | data (const std::string &msg_r) |
![]() | |
UserData () | |
Default ctor. More... | |
UserData (ContentType type_r) | |
Ctor taking ContentType. More... | |
UserData (std::string type_r) | |
Ctor taking ContentType. More... | |
UserData (std::string type_r, std::string subtype_r) | |
Ctor taking ContentType. More... | |
const ContentType & | type () const |
Get type. More... | |
void | type (ContentType type_r) |
Set type. More... | |
operator bool () const | |
Validate object in a boolean context: has data. More... | |
bool | empty () const |
Whether data is empty. More... | |
size_type | size () const |
Size of data. More... | |
const DataType & | data () const |
The data. More... | |
bool | haskey (const std::string &key_r) const |
Whether key_r is in data. More... | |
bool | hasvalue (const std::string &key_r) const |
Whether key_r is in data and value is not empty. More... | |
bool | set (const std::string &key_r, AnyType val_r) |
Set the value for key (nonconst version always returns true). More... | |
bool | set (const std::string &key_r, AnyType val_r) const |
bool | reset (const std::string &key_r) |
Set an empty value for key_r (if possible). More... | |
bool | reset (const std::string &key_r) const |
void | erase (const std::string &key_r) |
Remove key from data. More... | |
const AnyType & | getvalue (const std::string &key_r) const |
get helper returning the keys AnyType value or an empty value if key does not exist. More... | |
template<class Tp > | |
const Tp & | get (const std::string &key_r) const |
Pass back a const Tp & reference to key_r value. More... | |
template<class Tp > | |
Tp | get (const std::string &key_r, const Tp &default_r) const |
Pass back a Tp copy of key_r value. More... | |
template<class Tp > | |
bool | get (const std::string &key_r, Tp &ret_r) const |
If the value for key_r is of the same type as ret_r, pass it back in ret_r and return true ;. More... | |
Additional Inherited Members | |
![]() | |
typedef boost::any | AnyType |
typedef boost::bad_any_cast | bad_AnyType_cast |
typedef std::map< std::string, AnyType > | DataType |
typedef DataType::size_type | size_type |
typedef DataType::key_type | key_type |
typedef DataType::value_type | value_type |
typedef DataType::const_iterator | const_iterator |
typedef zypp::ContentType | ContentType |
![]() | |
std::ostream & | operator<< (std::ostream &str, const UserData &obj) |
Stream output. More... | |
JobReport convenience sending this instance of UserData with each message.
Definition at line 1047 of file ZYppCallbacks.h.
|
inline |
Definition at line 1051 of file ZYppCallbacks.h.
|
inline |
Definition at line 1052 of file ZYppCallbacks.h.
|
inline |
Definition at line 1053 of file ZYppCallbacks.h.
|
inline |
Definition at line 1054 of file ZYppCallbacks.h.
|
inline |
Definition at line 1055 of file ZYppCallbacks.h.
|
inline |
Definition at line 1056 of file ZYppCallbacks.h.