EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CorporationDB.cpp File Reference
#include "eve-server.h"
#include "Client.h"
#include "StaticDataMgr.h"
#include "character/Character.h"
#include "corporation/CorporationDB.h"
Include dependency graph for CorporationDB.cpp:

Go to the source code of this file.

Macros

#define _NI(a, b)   if (row.IsNull(b)) { cc.a = PyStatic.NewNone(); } else { cc.a = new PyInt(row.GetUInt(b)); }
 
#define _NS(a, b)   if (row.IsNull(b)) { cc.a = PyStatic.NewNone(); } else { cc.a = new PyString(row.GetText(b)); }
 
#define PRN   PyStatic.NewNone()
 
#define PRI(i)   new PyInt(i)
 
#define PRL(i)   new PyLong(i)
 
#define PRS(s)   new PyString(s)
 
#define PRNI(i)   (row.IsNull(i) ? PRU(0) : PRU(row.GetInt64(i)))
 
#define F(name, o, n)
 
#define NI(i)   row.IsNull(i) ? 0 : row.GetInt(i)
 

Functions

static std::string _IoN (PyRep *r)
 

Macro Definition Documentation

#define _NI (   a,
 
)    if (row.IsNull(b)) { cc.a = PyStatic.NewNone(); } else { cc.a = new PyInt(row.GetUInt(b)); }
#define _NS (   a,
 
)    if (row.IsNull(b)) { cc.a = PyStatic.NewNone(); } else { cc.a = new PyString(row.GetText(b)); }
#define F (   name,
  o,
 
)
Value:
attrib.name##Old = o; \
attrib.name##New = n

Referenced by CorporationDB::CreateMemberAttributeUpdate().

#define NI (   i)    row.IsNull(i) ? 0 : row.GetInt(i)

Definition at line 1812 of file CorporationDB.cpp.

Referenced by CorporationDB::UpdateLogo().

#define PRI (   i)    new PyInt(i)
#define PRL (   i)    new PyLong(i)
#define PRN   PyStatic.NewNone()
#define PRNI (   i)    (row.IsNull(i) ? PRU(0) : PRU(row.GetInt64(i)))
#define PRS (   s)    new PyString(s)

Function Documentation

static std::string _IoN ( PyRep r)
static

Definition at line 440 of file CorporationDB.cpp.

References PyRep::IntegerValueU32(), and PyRep::IsInt().

Referenced by CorporationDB::AddCorporation().

441 {
442  if ( !r->IsInt() )
443  return "NULL";
444  return std::to_string(PyRep::IntegerValueU32(r));
445 }
static uint32 IntegerValueU32(PyRep *pRep)
Definition: PyRep.cpp:134
bool IsInt() const
Definition: PyRep.h:100

Here is the call graph for this function:

Here is the caller graph for this function: