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

#include "DogmaIMService.h"

Inheritance diagram for DogmaIMService:
Collaboration diagram for DogmaIMService:

Public Member Functions

 DogmaIMService (PyServiceMgr *mgr)
 
virtual ~DogmaIMService ()
 
- 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

 PyCallable_DECL_CALL (GetAttributeTypes)
 
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 34 of file DogmaIMService.h.

Constructor & Destructor Documentation

DogmaIMService::DogmaIMService ( PyServiceMgr mgr)
DogmaIMService::~DogmaIMService ( )
virtual

Definition at line 149 of file DogmaIMService.cpp.

References m_dispatch.

149  {
150  delete m_dispatch;
151 }
Dispatcher *const m_dispatch

Member Function Documentation

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

Reimplemented from PyService.

Definition at line 160 of file DogmaIMService.cpp.

References args, PyRep::Clone(), codelog, PyService::GetName(), and PyService::m_manager.

160  {
161  DogmaLM_BindArgs args;
162  //crap
163  PyRep* tmp(bind_args->Clone());
164  if (!args.Decode(&tmp)) {
165  codelog(SERVICE__ERROR, "%s: Failed to decode bind args.", GetName());
166  return nullptr;
167  }
168 
169  return new DogmaIMBound(m_manager, args.locationID, args.groupID);
170 }
Base Python wire object.
Definition: PyRep.h:66
virtual PyRep * Clone() const =0
Clones object.
const char * GetName() const
Definition: PyService.h:54
* args
#define codelog(type, fmt,...)
Definition: logsys.h:128
PyServiceMgr *const m_manager
Definition: PyService.h:91

Here is the call graph for this function:

DogmaIMService::PyCallable_DECL_CALL ( GetAttributeTypes  )
protected

Member Data Documentation

Dispatcher* const DogmaIMService::m_dispatch
protected

Definition at line 42 of file DogmaIMService.h.

Referenced by ~DogmaIMService().


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