26 #ifndef __PYSERVICECD_H_INCL__
27 #define __PYSERVICECD_H_INCL__
41 typedef typename std::map<std::string, CallProc>::iterator
mapitr;
59 sLog.Error(
"Server",
"Unknown call to '%s' by '%s'", method_name.c_str(), call.
client->
GetName());
78 #define PyCallable_REG_CALL(c,m) m_dispatch->RegisterCall(#m, &c::Handle_##m);
81 #define PyCallable_Make_Dispatcher(objname) \
82 class Dispatcher : public PyCallableDispatcher<objname> { \
84 Dispatcher(objname *c) : PyCallableDispatcher<objname>(c) {} \
87 #define PyCallable_Make_InnerDispatcher(objname) \
88 class objname::Dispatcher \
89 : public PyCallableDispatcher<objname> { \
91 Dispatcher(objname *c) \
92 : PyCallableDispatcher<objname>(c) {} \
95 #endif // __PYSERVICECD_H_INCL__
PyResult(Svc::* CallProc)(PyCallArgs &call)
PyCallableDispatcher(Svc *parent)
virtual PyResult Dispatch(const std::string &method_name, PyCallArgs &call)
virtual ~PyCallableDispatcher()
#define sLog
Evaluates to a NewLog instance.
const char * GetName() const
void RegisterCall(const char *call_name, CallProc p)
std::map< std::string, CallProc >::iterator mapitr
std::map< std::string, CallProc > m_serviceCalls