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);
246 return _cb->call(param);
253 return _cb->call(param);
259 return _cb->call(param);
265 return _cb.get() == 0;
273 template <
class C,
class R,
class P>
286 return (
_c->*
_m)(param);
296 template <
typename T>
297 std::string
toString(
const T &thing,
int w = 0,
int p = 0)
299 std::ostringstream os;
300 os << std::setw(w) << std::setprecision(p) << thing;
306 #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