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

#include "CorpStationMgr.h"

Inheritance diagram for CorpStationMgr:
Collaboration diagram for CorpStationMgr:

Public Member Functions

 CorpStationMgr (PyServiceMgr *mgr)
 
virtual ~CorpStationMgr ()
 
- 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 (GetStationServiceStates)
 
 PyCallable_DECL_CALL (GetImprovementStaticData)
 
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
 
CorporationDB 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 35 of file CorpStationMgr.h.

Constructor & Destructor Documentation

CorpStationMgr::CorpStationMgr ( PyServiceMgr mgr)
CorpStationMgr::~CorpStationMgr ( )
virtual

Definition at line 135 of file CorpStationMgr.cpp.

References m_dispatch.

135  {
136  delete m_dispatch;
137 }
Dispatcher *const m_dispatch

Member Function Documentation

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

Reimplemented from PyService.

Definition at line 140 of file CorpStationMgr.cpp.

References PyRep::AsInt(), codelog, PyService::GetName(), PyRep::IsInt(), PyService::m_manager, PyRep::TypeString(), and PyInt::value().

140  {
141  if (!bind_args->IsInt()) {
142  codelog(SERVICE__ERROR, "%s Service: invalid bind argument type %s", GetName(), bind_args->TypeString());
143  return nullptr;
144  }
145  return new CorpStationMgrIMBound( m_manager, m_db, bind_args->AsInt()->value() );
146 }
int32 value() const
Definition: PyRep.h:247
const char * GetName() const
Definition: PyService.h:54
CorporationDB m_db
#define codelog(type, fmt,...)
Definition: logsys.h:128
PyServiceMgr *const m_manager
Definition: PyService.h:91
bool IsInt() const
Definition: PyRep.h:100
PyInt * AsInt()
Definition: PyRep.h:122
const char * TypeString() const
Definition: PyRep.cpp:76

Here is the call graph for this function:

CorpStationMgr::PyCallable_DECL_CALL ( GetStationServiceStates  )
protected
CorpStationMgr::PyCallable_DECL_CALL ( GetImprovementStaticData  )
protected

Member Data Documentation

CorporationDB CorpStationMgr::m_db
protected

Definition at line 45 of file CorpStationMgr.h.

Dispatcher* const CorpStationMgr::m_dispatch
protected

Definition at line 42 of file CorpStationMgr.h.

Referenced by ~CorpStationMgr().


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