EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
InsuranceBound Class Reference
Inheritance diagram for InsuranceBound:
Collaboration diagram for InsuranceBound:

Public Member Functions

 PyCallable_Make_Dispatcher (InsuranceBound) InsuranceBound(PyServiceMgr *mgr
 
ShipDB m_db (db)
 
ShipDB m_dispatch (new Dispatcher(this))
 
virtual ~InsuranceBound ()
 
virtual void Release ()
 
 PyCallable_DECL_CALL (InsureShip)
 
 PyCallable_DECL_CALL (UnInsureShip)
 
 PyCallable_DECL_CALL (GetContracts)
 
 PyCallable_DECL_CALL (GetInsurancePrice)
 
- Public Member Functions inherited from PyBoundObject
 PyBoundObject (PyServiceMgr *mgr)
 
virtual ~PyBoundObject ()
 
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 ()
 

Public Attributes

ShipDBdb: PyBoundObject(mgr)
 

Protected Attributes

ShipDBm_db
 
Dispatcher *const m_dispatch
 
- Protected Attributes inherited from PyBoundObject
PyServiceMgr *const m_manager
 
std::string m_strBoundObjectName
 

Additional Inherited Members

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

Detailed Description

Definition at line 42 of file InsuranceService.cpp.

Constructor & Destructor Documentation

virtual InsuranceBound::~InsuranceBound ( )
inlinevirtual

Definition at line 62 of file InsuranceService.cpp.

References m_dispatch.

62 { delete m_dispatch; }
Dispatcher *const m_dispatch

Member Function Documentation

ShipDB InsuranceBound::m_db ( db  )
ShipDB InsuranceBound::m_dispatch ( new   Dispatcherthis)
inline

Definition at line 51 of file InsuranceService.cpp.

References PyCallable::_SetCallDispatcher(), m_dispatch, PyBoundObject::m_strBoundObjectName, and PyCallable_REG_CALL.

51  {
53 
55  PyCallable_REG_CALL(InsuranceBound, UnInsureShip);
56  PyCallable_REG_CALL(InsuranceBound, GetContracts);
57  PyCallable_REG_CALL(InsuranceBound, GetInsurancePrice);
58 
59  m_strBoundObjectName = "InsuranceBound";
60  }
Dispatcher *const m_dispatch
std::string m_strBoundObjectName
Definition: PyBoundObject.h:54
void _SetCallDispatcher(CallDispatcher *d)
Definition: PyCallable.h:87
#define PyCallable_REG_CALL(c, m)
Definition: PyServiceCD.h:78

Here is the call graph for this function:

InsuranceBound::PyCallable_DECL_CALL ( InsureShip  )
InsuranceBound::PyCallable_DECL_CALL ( UnInsureShip  )
InsuranceBound::PyCallable_DECL_CALL ( GetContracts  )
InsuranceBound::PyCallable_DECL_CALL ( GetInsurancePrice  )
InsuranceBound::PyCallable_Make_Dispatcher ( InsuranceBound  )
virtual void InsuranceBound::Release ( )
inlinevirtual

Implements PyBoundObject.

Definition at line 63 of file InsuranceService.cpp.

63  {
64  //I hate this statement
65  delete this;
66  }

Member Data Documentation

ShipDB* InsuranceBound::db

Definition at line 49 of file InsuranceService.cpp.

ShipDB* InsuranceBound::m_db
protected

Definition at line 74 of file InsuranceService.cpp.

Dispatcher* const InsuranceBound::m_dispatch
protected

Definition at line 75 of file InsuranceService.cpp.

Referenced by m_dispatch(), and ~InsuranceBound().


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