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

#include "PyBoundObject.h"

Inheritance diagram for PyBoundObject:
Collaboration diagram for PyBoundObject:

Public Member Functions

 PyBoundObject (PyServiceMgr *mgr)
 
virtual ~PyBoundObject ()
 
virtual void Release ()=0
 
uint32 nodeID () const
 
uint32 bindID () const
 
std::string GetBindStr () const
 
const char * GetName () const
 
virtual PyResult Call (const std::string &method, PyCallArgs &args)
 
- Public Member Functions inherited from PyCallable
 PyCallable ()
 
virtual ~PyCallable ()
 

Protected Member Functions

void _SetNodeBindID (uint32 nodeID, uint32 bindID)
 
- Protected Member Functions inherited from PyCallable
void _SetCallDispatcher (CallDispatcher *d)
 

Protected Attributes

PyServiceMgr *const m_manager
 
std::string m_strBoundObjectName
 

Private Attributes

uint32 m_nodeID
 
uint32 m_bindID
 

Friends

class PyServiceMgr
 

Detailed Description

Definition at line 31 of file PyBoundObject.h.

Constructor & Destructor Documentation

PyBoundObject::PyBoundObject ( PyServiceMgr mgr)

Definition at line 30 of file PyBoundObject.cpp.

References m_strBoundObjectName.

31 : m_manager(mgr),
32  m_nodeID(0),
33  m_bindID(0)
34 {
35  m_strBoundObjectName = "PyBoundObject";
36 }
std::string m_strBoundObjectName
Definition: PyBoundObject.h:54
PyServiceMgr *const m_manager
Definition: PyBoundObject.h:53
PyBoundObject::~PyBoundObject ( )
virtual

Definition at line 38 of file PyBoundObject.cpp.

39 {
40 }

Member Function Documentation

void PyBoundObject::_SetNodeBindID ( uint32  nodeID,
uint32  bindID 
)
inlineprotected

Definition at line 51 of file PyBoundObject.h.

References bindID(), m_bindID, m_nodeID, and nodeID().

Referenced by PyServiceMgr::BindObject().

uint32 nodeID() const
Definition: PyBoundObject.h:39
uint32 bindID() const
Definition: PyBoundObject.h:40

Here is the call graph for this function:

Here is the caller graph for this function:

uint32 PyBoundObject::bindID ( ) const
inline

Definition at line 40 of file PyBoundObject.h.

References m_bindID.

Referenced by _SetNodeBindID(), PyServiceMgr::BindObject(), and GetBindStr().

40 { return m_bindID; }

Here is the caller graph for this function:

PyResult PyBoundObject::Call ( const std::string &  method,
PyCallArgs args 
)
virtual

Reimplemented from PyCallable.

Definition at line 42 of file PyBoundObject.cpp.

References _log, PyCallable::Call(), PyCallArgs::Dump(), and GetName().

Referenced by PyService::Handle_MachoBindObject().

42  {
43  _log(SERVICE__CALLS_BOUND, "%s::%s()", GetName(), method.c_str());
44  args.Dump(SERVICE__CALL_TRACE);
45 
46  return PyCallable::Call(method, args);
47 }
#define _log(type, fmt,...)
Definition: logsys.h:124
void Dump(LogType type) const
Definition: PyCallable.cpp:81
virtual PyResult Call(const std::string &method, PyCallArgs &args)
Definition: PyCallable.cpp:39
const char * GetName() const
Definition: PyBoundObject.h:44

Here is the call graph for this function:

Here is the caller graph for this function:

std::string PyBoundObject::GetBindStr ( ) const

Definition at line 49 of file PyBoundObject.cpp.

References bindID(), nodeID(), and snprintf.

Referenced by PyServiceMgr::BindObject(), and PyServiceMgr::ClearBoundObject().

49  {
50  //generate a nice bind string:
51  char bind_str[128];
52  snprintf(bind_str, sizeof(bind_str), "N=%u:%u", nodeID(), bindID());
53 
54  return(std::string(bind_str));
55 }
#define snprintf
Definition: eve-compat.h:184
uint32 nodeID() const
Definition: PyBoundObject.h:39
uint32 bindID() const
Definition: PyBoundObject.h:40

Here is the call graph for this function:

Here is the caller graph for this function:

const char* PyBoundObject::GetName ( ) const
inline

Definition at line 44 of file PyBoundObject.h.

References m_strBoundObjectName.

Referenced by PyServiceMgr::BindObject(), Call(), PyServiceMgr::ClearBoundObject(), and PyServiceMgr::Close().

44 { return m_strBoundObjectName.c_str(); };
std::string m_strBoundObjectName
Definition: PyBoundObject.h:54

Here is the caller graph for this function:

uint32 PyBoundObject::nodeID ( ) const
inline

Definition at line 39 of file PyBoundObject.h.

References m_nodeID.

Referenced by _SetNodeBindID(), and GetBindStr().

39 { return m_nodeID; }

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class PyServiceMgr
friend

Definition at line 50 of file PyBoundObject.h.

Member Data Documentation

uint32 PyBoundObject::m_bindID
private
PyServiceMgr* const PyBoundObject::m_manager
protected

Definition at line 53 of file PyBoundObject.h.

uint32 PyBoundObject::m_nodeID
private

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