EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CorpFittingMgr.cpp
Go to the documentation of this file.
1 /*
2  *
3  *
4  * note: these will be same calls as in charFittingMgr
5  */
6 
7 //work in progress
8 
9 
10 #include "eve-server.h"
11 
12 #include "PyServiceCD.h"
14 
16 
18 : PyService(mgr, "corpFittingMgr"),
19 m_dispatch(new Dispatcher(this))
20 {
21  _SetCallDispatcher(m_dispatch);
22 
23  PyCallable_REG_CALL(CorpFittingMgr, GetFittings);
24  PyCallable_REG_CALL(CorpFittingMgr, SaveFitting);
25  PyCallable_REG_CALL(CorpFittingMgr, SaveManyFittings);
26  PyCallable_REG_CALL(CorpFittingMgr, DeleteFitting);
27  PyCallable_REG_CALL(CorpFittingMgr, UpdateNameAndDescription);
28 }
29 
31  delete m_dispatch;
32 }
33 
34 PyResult CorpFittingMgr::Handle_GetFittings(PyCallArgs &call)
35 {
36  //self.fittings[ownerID] = self.GetFittingMgr(ownerID).GetFittings(ownerID)
37  _log(CORP__CALL, "CorpFittingMgr::Handle_GetFittings()");
38  call.Dump(CORP__CALL_DUMP);
39 
40  return nullptr;
41 }
42 
43 PyResult CorpFittingMgr::Handle_SaveFitting(PyCallArgs &call)
44 {
45  // fitting.ownerID = ownerID
46  // fitting.fittingID = self.GetFittingMgr(ownerID).SaveFitting(ownerID, fitting)
47  _log(CORP__CALL, "CorpFittingMgr::Handle_SaveFitting()");
48  call.Dump(CORP__CALL_DUMP);
49 
50  return nullptr;
51 }
52 
53 PyResult CorpFittingMgr::Handle_SaveManyFittings(PyCallArgs &call)
54 {
55  /*
56  newFittingIDs = self.GetFittingMgr(ownerID).SaveManyFittings(ownerID, fittingsToSave)
57  for row in newFittingIDs:
58  self.fittings[ownerID][row.realFittingID] = fittingsToSave[row.tempFittingID]
59  self.fittings[ownerID][row.realFittingID].fittingID = row.realFittingID
60  */
61  _log(CORP__CALL, "CorpFittingMgr::Handle_SaveManyFittings()");
62  call.Dump(CORP__CALL_DUMP);
63 
64  return nullptr;
65 }
66 
67 PyResult CorpFittingMgr::Handle_DeleteFitting(PyCallArgs &call)
68 {
69  // self.GetFittingMgr(ownerID).DeleteFitting(ownerID, fittingID)
70  _log(CORP__CALL, "CorpFittingMgr::Handle_DeleteFitting()");
71  call.Dump(CORP__CALL_DUMP);
72 
73  return nullptr;
74 }
75 
76 PyResult CorpFittingMgr::Handle_UpdateNameAndDescription(PyCallArgs &call)
77 {
78  // self.GetFittingMgr(ownerID).UpdateNameAndDescription(fittingID, ownerID, name, description)
79  _log(CORP__CALL, "CorpFittingMgr::Handle_UpdateNameAndDescription()");
80  call.Dump(CORP__CALL_DUMP);
81 
82  return nullptr;
83 }
84 
Dispatcher *const m_dispatch
#define _log(type, fmt,...)
Definition: logsys.h:124
Dispatcher *const m_dispatch
#define PyCallable_REG_CALL(c, m)
Definition: PyServiceCD.h:78
void Dump(LogType type) const
Definition: PyCallable.cpp:81
virtual ~CorpFittingMgr()
PyCallable_Make_InnerDispatcher(CorpFittingMgr) CorpFittingMgr