Go to the documentation of this file.
25 #ifndef __DBUSXX_UTIL_H
26 #define __DBUSXX_UTIL_H
94 debug_log(
"%p: refcount dropped below zero!", __ref);
213 template <
class R,
class P>
218 virtual R
call(P param)
const = 0;
224 template <
class R,
class P>
240 return _cb->call(param);
252 return _cb->call(param);
262 return _cb.get() == 0;
270 template <
class C,
class R,
class P>
283 return (
_c->*
_m)(param);
293 template <
typename T>
294 std::string
toString(
const T &thing,
int w = 0,
int p = 0)
296 std::ostringstream os;
297 os << std::setw(w) << std::setprecision(p) << thing;
303 #endif//__DBUSXX_UTIL_H
DXXAPILOCAL void ref() const
RefPtr & operator=(const RefPtr &ref)
DXXAPILOCAL void unref() const
Slot & operator=(Callback_Base< R, P > *s)
RefPtrI & operator=(const RefPtrI &ref)
RefPtr< Callback_Base< R, P > > _cb
virtual R call(P param) const =0
DXXAPI LogFunction debug_log
R operator()(P param) const
std::string toString(const T &thing, int w=0, int p=0)
create std::string from any number