EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AlertService.cpp File Reference
#include "eve-server.h"
#include "PyServiceCD.h"
#include "admin/AlertService.h"
Include dependency graph for AlertService.cpp:

Go to the source code of this file.

Functions

 PyCallable_Make_InnerDispatcher (AlertService) AlertService
 

Function Documentation

PyCallable_Make_InnerDispatcher ( AlertService  )

Definition at line 32 of file AlertService.cpp.

References AlertService::Handle_BeanCount(), AlertService::Handle_BeanDelivery(), AlertService::Handle_GroupBeanDelivery(), AlertService::Handle_SendClientStackTraceAlert(), is_log_enabled, m_dispatch, and sConfig.

35 : PyService(mgr, "alert"),
36  m_dispatch(new Dispatcher(this)),
37  traceLogger(nullptr)
38 {
39  _SetCallDispatcher(m_dispatch);
40 
41  m_dispatch->RegisterCall("BeanCount", &AlertService::Handle_BeanCount);
42  m_dispatch->RegisterCall("BeanDelivery", &AlertService::Handle_BeanDelivery);
43  m_dispatch->RegisterCall("GroupBeanDelivery", &AlertService::Handle_GroupBeanDelivery);
44  m_dispatch->RegisterCall("SendClientStackTraceAlert", &AlertService::Handle_SendClientStackTraceAlert);
45 
46  if (sConfig.debug.StackTrace or is_log_enabled(CLIENT__STACK_TRACE))
47  traceLogger = new PyTraceLog("evemu_client_stack_trace.txt", true, true);
48 }
a python client stack trace logger for Evemu
Definition: PyTraceLog.h:74
#define sConfig
A macro for easier access to the singleton.
Dispatcher *const m_dispatch
PyResult Handle_BeanCount(PyCallArgs &call)
#define is_log_enabled(type)
Definition: logsys.h:78
PyResult Handle_BeanDelivery(PyCallArgs &call)
PyResult Handle_SendClientStackTraceAlert(PyCallArgs &call)
The client sends us a python stack trace, from which we could make up what we did wrong...
PyResult Handle_GroupBeanDelivery(PyCallArgs &call)

Here is the call graph for this function: