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

#include "StandingMgr.h"

Inheritance diagram for StandingMgr:
Collaboration diagram for StandingMgr:

Public Member Functions

void Close ()
 
PyObjectExGetFactionStandings ()
 
- Public Member Functions inherited from Singleton< StandingMgr >
 Singleton ()
 Primary constructor. More...
 

Private Attributes

PyObjectExm_factionStandings
 

StandingMgr.cpp

memory object caching system for managing and saving standings data methods and functions relating to manipulation of standings

: Allan

Date
: 14 Novemeber 2018
 StandingMgr ()
 
 ~StandingMgr ()
 
int Initialize ()
 
void Clear ()
 
void GetInfo ()
 
void UpdateStandings (uint32 fromID, uint32 toID, uint16 eventType, double amount, std::string msg)
 
void Populate ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< StandingMgr >
static StandingMgrget ()
 
- Static Protected Attributes inherited from Singleton< StandingMgr >
static std::shared_ptr
< StandingMgr
mInstance
 

Detailed Description

Definition at line 23 of file StandingMgr.h.

Constructor & Destructor Documentation

StandingMgr::StandingMgr ( )

Definition at line 27 of file StandingMgr.cpp.

28 : m_factionStandings(nullptr)
29 {
30 
31 }
PyObjectEx * m_factionStandings
Definition: StandingMgr.h:46
StandingMgr::~StandingMgr ( )

Definition at line 33 of file StandingMgr.cpp.

34 {
35 
36 }

Member Function Documentation

void StandingMgr::Clear ( )

Definition at line 38 of file StandingMgr.cpp.

References m_factionStandings, and PySafeDecRef.

Referenced by Close().

39 {
41 }
PyObjectEx * m_factionStandings
Definition: StandingMgr.h:46
#define PySafeDecRef(op)
Definition: PyRep.h:61

Here is the caller graph for this function:

void StandingMgr::Close ( )
inline

Definition at line 33 of file StandingMgr.h.

References Clear().

33 { Clear(); }
void Clear()
Definition: StandingMgr.cpp:38

Here is the call graph for this function:

PyObjectEx* StandingMgr::GetFactionStandings ( )
inline

Definition at line 36 of file StandingMgr.h.

References m_factionStandings, and PyIncRef.

PyObjectEx * m_factionStandings
Definition: StandingMgr.h:46
#define PyIncRef(op)
Definition: PyRep.h:56
void StandingMgr::GetInfo ( )

Definition at line 50 of file StandingMgr.cpp.

51 {
52 
53 }
int StandingMgr::Initialize ( )

Definition at line 43 of file StandingMgr.cpp.

References Populate(), and sLog.

44 {
45  Populate();
46  sLog.Blue(" StandingMgr", "Standings Manager Initialized.");
47  return 1;
48 }
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250
void Populate()
Definition: StandingMgr.cpp:55

Here is the call graph for this function:

void StandingMgr::Populate ( )
protected

Definition at line 55 of file StandingMgr.cpp.

References StandingDB::GetFactionStandings(), m_factionStandings, and sLog.

Referenced by Initialize().

56 {
58  if (m_factionStandings == nullptr)
59  sLog.Error(" StandingMgr", "m_factionStandings is null");
60 
61 }
static PyObjectEx * GetFactionStandings()
Definition: StandingDB.cpp:56
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250
PyObjectEx * m_factionStandings
Definition: StandingMgr.h:46

Here is the call graph for this function:

Here is the caller graph for this function:

void StandingMgr::UpdateStandings ( uint32  fromID,
uint32  toID,
uint16  eventType,
double  amount,
std::string  msg 
)

Definition at line 63 of file StandingMgr.cpp.

References StandingDB::SaveStandingChanges(), and StandingDB::UpdateStanding().

64 {
65  StandingDB::UpdateStanding(fromID, toID, amount);
66  StandingDB::SaveStandingChanges(fromID, toID, eventType, amount, msg);
67 }
static void UpdateStanding(uint32 fromID, uint32 toID, float standing)
Definition: StandingDB.cpp:163
static void SaveStandingChanges(uint32 fromID, uint32 toID, uint16 eventType, float amount, std::string msg)
Definition: StandingDB.cpp:174

Here is the call graph for this function:

Member Data Documentation

PyObjectEx* StandingMgr::m_factionStandings
private

Definition at line 46 of file StandingMgr.h.

Referenced by Clear(), GetFactionStandings(), and Populate().


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