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

#include "ReprocessingService.h"

Inheritance diagram for ReprocessingService:
Collaboration diagram for ReprocessingService:

Public Member Functions

 ReprocessingService (PyServiceMgr *mgr)
 
virtual ~ReprocessingService ()
 
- 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
 
ReprocessingDB 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 33 of file ReprocessingService.h.

Constructor & Destructor Documentation

ReprocessingService::ReprocessingService ( PyServiceMgr mgr)
ReprocessingService::~ReprocessingService ( )
virtual

Definition at line 59 of file ReprocessingService.cpp.

References m_dispatch.

59  {
60  delete m_dispatch;
61 }
Dispatcher *const m_dispatch

Member Function Documentation

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

Reimplemented from PyService.

Definition at line 63 of file ReprocessingService.cpp.

References _log, PyRep::AsInt(), Client::GetName(), PyRep::IsInt(), m_db, PyService::m_manager, sDataMgr, PyRep::TypeString(), and PyInt::value().

63  {
64  if (!bind_args->IsInt()) {
65  _log(SERVICE__ERROR, "%s: Non-integer bind argument '%s'", pClient->GetName(), bind_args->TypeString());
66  return nullptr;
67  }
68 
69  uint32 stationID = bind_args->AsInt()->value();
70  if (!sDataMgr.IsStation(stationID)) {
71  _log(SERVICE__ERROR, "%s: Expected stationID, but got %u.", pClient->GetName(), stationID);
72  return nullptr;
73  }
74 
75  return new ReprocessingServiceBound(m_manager, m_db, stationID);
76 }
#define _log(type, fmt,...)
Definition: logsys.h:124
int32 value() const
Definition: PyRep.h:247
PyServiceMgr *const m_manager
Definition: PyService.h:91
const char * GetName() const
Definition: Client.h:94
unsigned __int32 uint32
Definition: eve-compat.h:50
bool IsInt() const
Definition: PyRep.h:100
PyInt * AsInt()
Definition: PyRep.h:122
const char * TypeString() const
Definition: PyRep.cpp:76
#define sDataMgr

Here is the call graph for this function:

Member Data Documentation

ReprocessingDB ReprocessingService::m_db
protected

Definition at line 44 of file ReprocessingService.h.

Referenced by CreateBoundObject().

Dispatcher* const ReprocessingService::m_dispatch
protected

Definition at line 41 of file ReprocessingService.h.

Referenced by ~ReprocessingService().


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