EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AggressionMgrService Class Reference

#include "AggressionMgrService.h"

Inheritance diagram for AggressionMgrService:
Collaboration diagram for AggressionMgrService:

Public Member Functions

 AggressionMgrService (PyServiceMgr *mgr)
 
virtual ~AggressionMgrService ()
 
- Public Member Functions inherited from PyService
 PyService (PyServiceMgr *mgr, const char *serviceName)
 
virtual ~PyService ()
 
virtual PyResult Call (const std::string &method, PyCallArgs &args)
 
const char * GetName () const
 
- Public Member Functions inherited from PyCallable
 PyCallable ()
 
virtual ~PyCallable ()
 

Protected Member Functions

virtual PyBoundObjectCreateBoundObject (Client *pClient, const PyRep *bind_args)
 
- Protected Member Functions inherited from PyService
PyObject_BuildCachedReturn (PySubStream **result, const char *sessionInfo, CacheCheckTime check)
 
virtual PyResult Handle_MachoResolveObject (PyCallArgs &call)
 
virtual PyResult Handle_MachoBindObject (PyCallArgs &call)
 
- Protected Member Functions inherited from PyCallable
void _SetCallDispatcher (CallDispatcher *d)
 

Protected Attributes

Dispatcher *const m_dispatch
 
- Protected Attributes inherited from PyService
PyServiceMgr *const m_manager
 

Additional Inherited Members

- Protected Types inherited from PyService
enum  CacheCheckTime {
  check_Always = 0, check_Never, check_in_year, check_in_6_months,
  check_in_3_months, check_in_1_month, check_in_1_week, check_in_1_day,
  check_in_12_hours, check_in_6_hours, check_in_3_hours, check_in_2_hours,
  check_in_1_hour, check_in_30_minutes, check_in_15_minutes, check_in_5_minutes,
  check_in_1_minute, check_in_30_seconds, check_in_15_seconds, check_in_5_seconds,
  check_in_1_second, _checkCount
}
 
- Static Protected Attributes inherited from PyService
static const char *const s_checkTimeStrings [_checkCount]
 

Detailed Description

Definition at line 31 of file AggressionMgrService.h.

Constructor & Destructor Documentation

AggressionMgrService::AggressionMgrService ( PyServiceMgr mgr)

Definition at line 94 of file AggressionMgrService.cpp.

References PyCallable::_SetCallDispatcher(), and m_dispatch.

95 : PyService(mgr, "aggressionMgr"), m_dispatch(new Dispatcher(this))
96 {
98 }
PyService(PyServiceMgr *mgr, const char *serviceName)
Definition: PyService.cpp:32
void _SetCallDispatcher(CallDispatcher *d)
Definition: PyCallable.h:87
Dispatcher *const m_dispatch

Here is the call graph for this function:

AggressionMgrService::~AggressionMgrService ( )
virtual

Definition at line 100 of file AggressionMgrService.cpp.

References m_dispatch.

101 {
102  delete m_dispatch;
103 }
Dispatcher *const m_dispatch

Member Function Documentation

PyBoundObject * AggressionMgrService::CreateBoundObject ( Client pClient,
const PyRep bind_args 
)
protectedvirtual

create this in bound obj code?

Reimplemented from PyService.

Definition at line 105 of file AggressionMgrService.cpp.

References _log, PyRep::Dump(), and PyService::m_manager.

106 {
107  _log(CLIENT__MESSAGE, "AggressionMgrService bind request for:");
108  bind_args->Dump(CLIENT__MESSAGE, " ");
109  /*
110  * 18:26:21 [ClientMessage] AggressionMgrService bind request for:
111  * 18:26:21 [ClientMessage] Integer field: 30002547 <<-- systemID
112  */
113 
115  // this obj is system-wide, per system. bound object can be used for multiple clients
116  return (new AggressionMgrBound(m_manager));
117 }
#define _log(type, fmt,...)
Definition: logsys.h:124
void Dump(FILE *into, const char *pfx) const
Dumps object to file.
Definition: PyRep.cpp:84
PyServiceMgr *const m_manager
Definition: PyService.h:91

Here is the call graph for this function:

Member Data Documentation

Dispatcher* const AggressionMgrService::m_dispatch
protected

Definition at line 38 of file AggressionMgrService.h.

Referenced by AggressionMgrService(), and ~AggressionMgrService().


The documentation for this class was generated from the following files: