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

#include "CharMgrService.h"

Inheritance diagram for CharMgrService:
Collaboration diagram for CharMgrService:

Public Member Functions

 CharMgrService (PyServiceMgr *mgr)
 
virtual ~CharMgrService ()
 
- 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 (GetPublicInfo)
 
 PyCallable_DECL_CALL (GetPublicInfo3)
 
 PyCallable_DECL_CALL (GetPrivateInfo)
 
 PyCallable_DECL_CALL (AddToBounty)
 
 PyCallable_DECL_CALL (GetTopBounties)
 
 PyCallable_DECL_CALL (AddOwnerNote)
 
 PyCallable_DECL_CALL (GetOwnerNote)
 
 PyCallable_DECL_CALL (GetOwnerNoteLabels)
 
 PyCallable_DECL_CALL (GetContactList)
 
 PyCallable_DECL_CALL (GetCloneTypeID)
 
 PyCallable_DECL_CALL (GetHomeStation)
 
 PyCallable_DECL_CALL (GetFactions)
 
 PyCallable_DECL_CALL (SetActivityStatus)
 
 PyCallable_DECL_CALL (GetSettingsInfo)
 
 PyCallable_DECL_CALL (LogSettings)
 
 PyCallable_DECL_CALL (GetCharacterDescription)
 
 PyCallable_DECL_CALL (SetCharacterDescription)
 
 PyCallable_DECL_CALL (GetPaperdollState)
 
 PyCallable_DECL_CALL (GetNote)
 
 PyCallable_DECL_CALL (SetNote)
 
 PyCallable_DECL_CALL (AddContact)
 
 PyCallable_DECL_CALL (EditContact)
 
 PyCallable_DECL_CALL (GetRecentShipKillsAndLosses)
 
 PyCallable_DECL_CALL (GetLabels)
 
 PyCallable_DECL_CALL (CreateLabel)
 
 PyCallable_DECL_CALL (DeleteContacts)
 
 PyCallable_DECL_CALL (BlockOwners)
 
 PyCallable_DECL_CALL (UnblockOwners)
 
 PyCallable_DECL_CALL (EditContactsRelationshipID)
 
 PyCallable_DECL_CALL (GetImageServerLink)
 
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
 
CharacterDB m_db
 
- 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 CharMgrService.h.

Constructor & Destructor Documentation

CharMgrService::CharMgrService ( PyServiceMgr mgr)
CharMgrService::~CharMgrService ( )
virtual

Definition at line 183 of file CharMgrService.cpp.

References m_dispatch.

183  {
184  delete m_dispatch;
185 }
Dispatcher *const m_dispatch

Member Function Documentation

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

Reimplemented from PyService.

Definition at line 187 of file CharMgrService.cpp.

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

187  {
188  _log(CHARACTER__BIND, "CharMgrService bind request:");
189  bind_args->Dump(CHARACTER__BIND, " ");
190  Call_TwoIntegerArgs args;
191  //crap
192  PyRep* tmp(bind_args->Clone());
193  if (!args.Decode(&tmp)) {
194  codelog(SERVICE__ERROR, "%s: Failed to decode arguments.", GetName());
195  return nullptr;
196  }
197 
198  return new CharMgrBound(m_manager, args.arg1, args.arg2);
199 }
Base Python wire object.
Definition: PyRep.h:66
#define _log(type, fmt,...)
Definition: logsys.h:124
virtual PyRep * Clone() const =0
Clones object.
const char * GetName() const
Definition: PyService.h:54
void Dump(FILE *into, const char *pfx) const
Dumps object to file.
Definition: PyRep.cpp:84
* 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:

CharMgrService::PyCallable_DECL_CALL ( GetPublicInfo  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetPublicInfo3  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetPrivateInfo  )
protected
CharMgrService::PyCallable_DECL_CALL ( AddToBounty  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetTopBounties  )
protected
CharMgrService::PyCallable_DECL_CALL ( AddOwnerNote  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetOwnerNote  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetOwnerNoteLabels  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetContactList  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetCloneTypeID  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetHomeStation  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetFactions  )
protected
CharMgrService::PyCallable_DECL_CALL ( SetActivityStatus  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetSettingsInfo  )
protected
CharMgrService::PyCallable_DECL_CALL ( LogSettings  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetCharacterDescription  )
protected
CharMgrService::PyCallable_DECL_CALL ( SetCharacterDescription  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetPaperdollState  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetNote  )
protected
CharMgrService::PyCallable_DECL_CALL ( SetNote  )
protected
CharMgrService::PyCallable_DECL_CALL ( AddContact  )
protected
CharMgrService::PyCallable_DECL_CALL ( EditContact  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetRecentShipKillsAndLosses  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetLabels  )
protected
CharMgrService::PyCallable_DECL_CALL ( CreateLabel  )
protected
CharMgrService::PyCallable_DECL_CALL ( DeleteContacts  )
protected
CharMgrService::PyCallable_DECL_CALL ( BlockOwners  )
protected
CharMgrService::PyCallable_DECL_CALL ( UnblockOwners  )
protected
CharMgrService::PyCallable_DECL_CALL ( EditContactsRelationshipID  )
protected
CharMgrService::PyCallable_DECL_CALL ( GetImageServerLink  )
protected

Member Data Documentation

CharacterDB CharMgrService::m_db
protected

Definition at line 43 of file CharMgrService.h.

Dispatcher* const CharMgrService::m_dispatch
protected

Definition at line 40 of file CharMgrService.h.

Referenced by ~CharMgrService().


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