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

#include "AgentMgrService.h"

Inheritance diagram for AgentMgrService:
Collaboration diagram for AgentMgrService:

Public Member Functions

 AgentMgrService (PyServiceMgr *mgr)
 
virtual ~AgentMgrService ()
 
- 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 (GetAgents)
 
 PyCallable_DECL_CALL (GetCareerAgents)
 
 PyCallable_DECL_CALL (GetMyJournalDetails)
 
 PyCallable_DECL_CALL (GetSolarSystemOfAgent)
 
 PyCallable_DECL_CALL (GetMyEpicJournalDetails)
 
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 35 of file AgentMgrService.h.

Constructor & Destructor Documentation

AgentMgrService::AgentMgrService ( PyServiceMgr mgr)
AgentMgrService::~AgentMgrService ( )
virtual

Definition at line 77 of file AgentMgrService.cpp.

References m_dispatch.

77  {
78  delete m_dispatch;
79 }
Dispatcher *const m_dispatch

Member Function Documentation

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

Reimplemented from PyService.

Definition at line 83 of file AgentMgrService.cpp.

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

83  {
84  if (!bind_args->IsInt()) {
85  _log(SERVICE__ERROR, "%s: Non-integer argument '%s'", pClient->GetName(), bind_args->TypeString());
86  return nullptr;
87  }
88 
89  uint32 agentID(bind_args->AsInt()->value());
90  Agent* pAgent(sEntityList.GetAgent(agentID));
91  if (pAgent == nullptr) {
92  _log(AGENT__ERROR, "%s: Unable to obtain agent %u", pClient->GetName(), agentID);
93  return nullptr;
94  }
95 
96  return new AgentBound(m_manager, pAgent);
97 }
#define _log(type, fmt,...)
Definition: logsys.h:124
int32 value() const
Definition: PyRep.h:247
#define sEntityList
Definition: EntityList.h:208
Definition: Agent.h:21
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

Here is the call graph for this function:

AgentMgrService::PyCallable_DECL_CALL ( GetAgents  )
protected
AgentMgrService::PyCallable_DECL_CALL ( GetCareerAgents  )
protected
AgentMgrService::PyCallable_DECL_CALL ( GetMyJournalDetails  )
protected
AgentMgrService::PyCallable_DECL_CALL ( GetSolarSystemOfAgent  )
protected
AgentMgrService::PyCallable_DECL_CALL ( GetMyEpicJournalDetails  )
protected

Member Data Documentation

Dispatcher* const AgentMgrService::m_dispatch
protected

Definition at line 41 of file AgentMgrService.h.

Referenced by ~AgentMgrService().


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