libzypp  14.29.1
zypp::callback::UserData Class Reference

Typesafe passing of user data via callbacks. More...

#include <UserData.h>

Public Member Functions

 UserData ()
 Default ctor. More...
 
const ContentTypetype () 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)
 

Detailed Description

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.

Member Typedef Documentation

typedef std::map<std::string,boost::any> zypp::callback::UserData::DataType
private

Definition at line 37 of file UserData.h.

Constructor & Destructor Documentation

zypp::callback::UserData::UserData ( )
inline

Default ctor.

Definition at line 40 of file UserData.h.

Member Function Documentation

const ContentType& zypp::callback::UserData::type ( ) const
inline

Get type.

Definition at line 45 of file UserData.h.

void zypp::callback::UserData::type ( const ContentType type_r)
inline

Set type.

Definition at line 49 of file UserData.h.

zypp::callback::UserData::operator bool ( ) const
inlineexplicit

Validate object in a boolean context: has data.

Definition at line 54 of file UserData.h.

Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const UserData obj 
)
related

Stream output

Definition at line 63 of file UserData.h.

Member Data Documentation

ContentType zypp::callback::UserData::_type
private

Definition at line 58 of file UserData.h.

shared_ptr<DataType> zypp::callback::UserData::_dataP
private

Definition at line 59 of file UserData.h.


The documentation for this class was generated from the following file: