|
EvEmu
0.8.4
11 September 2021
|
#include "PyServiceMgr.h"

Classes | |
| struct | BoundObj |
Public Member Functions | |
| PyServiceMgr (uint32 nodeID, EntityList &elist) | |
| ~PyServiceMgr () | |
| void | Initalize (double startTime) |
| void | Close () |
| void | Process () |
| void | RegisterService (const std::string &name, PyService *svc) |
| PyService * | LookupService (const std::string &name) |
| uint32 | GetNodeID () const |
| PySubStruct * | BindObject (Client *pClient, PyBoundObject *pObj, PyDict *dict=nullptr, PyDict *oid=nullptr) |
| PyBoundObject * | FindBoundObject (uint32 bindID) |
| void | ClearBoundObject (uint32 bindID) |
| void | BoundObjectVec (std::vector< BoundObj > &vec) |
Public Attributes | |
| LSCService * | lsc_service |
| ObjCacheService * | cache_service |
Protected Types | |
| typedef std::map< uint32, BoundObj > | ObjectsBoundMap |
| typedef ObjectsBoundMap::iterator | ObjectsBoundMapItr |
Protected Attributes | |
| std::map< std::string, PyService * > | m_svcList |
| ObjectsBoundMap | m_boundObjects |
| uint32 | m_nodeID |
| uint32 | m_nextBindID |
Definition at line 47 of file PyServiceMgr.h.
|
protected |
Definition at line 87 of file PyServiceMgr.h.
|
protected |
Definition at line 88 of file PyServiceMgr.h.
| PyServiceMgr::PyServiceMgr | ( | uint32 | nodeID, |
| EntityList & | elist | ||
| ) |
Definition at line 37 of file PyServiceMgr.cpp.
References EntityList::SetService().

| PyServiceMgr::~PyServiceMgr | ( | ) |
Definition at line 46 of file PyServiceMgr.cpp.
References Close().

| PySubStruct * PyServiceMgr::BindObject | ( | Client * | pClient, |
| PyBoundObject * | pObj, | ||
| PyDict * | dict = nullptr, |
||
| PyDict * | oid = nullptr |
||
| ) |
Definition at line 213 of file PyServiceMgr.cpp.
References _log, PyBoundObject::_SetNodeBindID(), Client::AddBindID(), PyBoundObject::bindID(), PyServiceMgr::BoundObj::client, PyBoundObject::GetBindStr(), GetFileTimeNow(), PyBoundObject::GetName(), Client::GetName(), PyTuple::items, PyBoundObject::m_bindID, m_boundObjects, m_nextBindID, PyBoundObject::m_nodeID, m_nodeID, PyServiceMgr::BoundObj::object, PyStatic, and PyDict::SetItemString().
Referenced by PyService::Handle_MachoBindObject().


| void PyServiceMgr::BoundObjectVec | ( | std::vector< BoundObj > & | vec | ) |
Definition at line 284 of file PyServiceMgr.cpp.
References m_boundObjects.
Referenced by Command_bindList().

| void PyServiceMgr::ClearBoundObject | ( | uint32 | bindID | ) |
Definition at line 268 of file PyServiceMgr.cpp.
References _log, PyBoundObject::GetBindStr(), PyBoundObject::GetName(), m_boundObjects, and PyBoundObject::Release().
Referenced by Client::Handle_Notify(), and Client::~Client().


| void PyServiceMgr::Close | ( | ) |
Definition at line 54 of file PyServiceMgr.cpp.
References _log, PyBoundObject::GetName(), is_log_enabled, PyBoundObject::m_bindID, m_boundObjects, PyBoundObject::m_nodeID, m_svcList, SafeDelete(), and sLog.
Referenced by main(), and ~PyServiceMgr().


| PyBoundObject * PyServiceMgr::FindBoundObject | ( | uint32 | bindID | ) |
Definition at line 261 of file PyServiceMgr.cpp.
References m_boundObjects.
Referenced by Client::Handle_CallReq().

|
inline |
Definition at line 67 of file PyServiceMgr.h.
References m_nodeID.
Referenced by Client::_SendPingRequest(), Client::Handle_CallReq(), PyService::Handle_MachoResolveObject(), Client::Handle_Notify(), Client::SendInitialSessionStatus(), Client::SendNotification(), and Client::SendSessionChange().

| void PyServiceMgr::Initalize | ( | double | startTime | ) |
Definition at line 70 of file PyServiceMgr.cpp.
References cache_service, GetTimeMSeconds(), ObjCacheService::GiveCache(), ObjCacheService::IsCacheLoaded(), m_svcList, PyDecRef, PyStatic, PyDict::SetItemString(), and sLog.
Referenced by main().


| PyService * PyServiceMgr::LookupService | ( | const std::string & | name | ) |
Definition at line 204 of file PyServiceMgr.cpp.
References _log, and m_svcList.
Referenced by Client::Handle_CallReq(), Client::UndockFromStation(), and Client::~Client().

| void PyServiceMgr::Process | ( | ) |
Definition at line 195 of file PyServiceMgr.cpp.
| void PyServiceMgr::RegisterService | ( | const std::string & | name, |
| PyService * | svc | ||
| ) |
Definition at line 199 of file PyServiceMgr.cpp.
References m_svcList.
Referenced by main().

| ObjCacheService* PyServiceMgr::cache_service |
Definition at line 78 of file PyServiceMgr.h.
Referenced by MarketMgr::GetNewPriceHistory(), MarketMgr::GetOldPriceHistory(), Initalize(), MarketMgr::InvalidateOrdersCache(), and main().
| LSCService* PyServiceMgr::lsc_service |
Definition at line 77 of file PyServiceMgr.h.
Referenced by SystemManager::BootSystem(), FleetService::CreateFleet(), FleetService::CreateSquad(), FleetService::CreateWing(), main(), Client::SelectCharacter(), Client::SelfEveMail(), and SystemManager::UnloadSystem().
|
protected |
Definition at line 89 of file PyServiceMgr.h.
Referenced by BindObject(), BoundObjectVec(), ClearBoundObject(), Close(), and FindBoundObject().
|
protected |
Definition at line 92 of file PyServiceMgr.h.
Referenced by BindObject().
|
protected |
Definition at line 91 of file PyServiceMgr.h.
Referenced by BindObject(), and GetNodeID().
|
protected |
Definition at line 84 of file PyServiceMgr.h.
Referenced by Close(), Initalize(), LookupService(), and RegisterService().