#include <string>
+#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
inline Dispatcher::Handler addHandler(const std::string& message,
const Dispatcher::Function& callback)
{
- Dispatcher::getInstance().addHandler(message, callback);
+ return Dispatcher::getInstance().addHandler(message, callback);
}
inline Dispatcher::Handler addHandler(const std::string& message,
const Dispatcher::Function& callback, Dispatcher::Handler id)
{
- Dispatcher::getInstance().addHandler(message, callback, id);
+ return Dispatcher::getInstance().addHandler(message, callback, id);
}
inline void removeHandler(Dispatcher::Handler id)
} // namespace dispatch
+
} // namespace Mf
#endif // _MOOF_DISPATCHER_HH_