EvEmu
0.8.4
11 September 2021
|
#include "StationDB.h"
StationDB.cpp | |
database methods for station data
| |
void | UpdateOfficeData (OfficeData &data) |
static PyRep * | GetOffices (uint32 stationID) |
static PyRep * | GetStationOfficeIDs (uint32 locationID, uint32 corpID, const char *key) |
static uint32 | CreateOffice (ItemData &idata, OfficeData &odata) |
static bool | GetOfficeData (uint32 officeID, OfficeData &odata) |
static void | GetStationData (DBQueryResult &res) |
static void | GetStationSystem (DBQueryResult &res) |
static void | GetStationRegion (DBQueryResult &res) |
static void | GetStationOfficeData (DBQueryResult &res) |
static void | GetOperationServiceIDs (DBQueryResult &res) |
static void | GetStationConstellation (DBQueryResult &res) |
static int32 | GetOfficeCount (uint32 corpID) |
static void | LoadOffices (OwnerData &od, std::vector< uint32 > &into) |
Additional Inherited Members | |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
![]() | |
static bool | GetAccountInformation (CryptoChallengePacket &ccp, AccountData &aData, std::string &failMsg) |
static bool | UpdateAccountHash (const char *username, std::string &hash) |
static bool | IncrementLoginCount (uint32 accountID) |
static void | UpdatePassword (uint32 accountID, const char *pass) |
static void | SaveKillOrLoss (CharKillData &data) |
static bool | GetConstant (const char *name, uint32 &into) |
static void | SetServerOnlineStatus (bool online=false) |
static void | SetCharacterOnlineStatus (uint32 char_id, bool online=false) |
static void | SetAccountOnlineStatus (uint32 accountID, bool online=false) |
static void | SetAccountBanStatus (uint32 accountID, bool banned=false) |
static void | SaveServerStats (double threads, float rss, float vm, float user, float kernel, uint32 items, uint32 bubbles) |
static uint32 | SetClientSeed () |
static PyRep * | LookupChars (const char *match, bool exact=false) |
static PyRep * | LookupOwners (const char *match, bool exact=false) |
static PyRep * | LookupCorporations (const std::string &) |
static PyRep * | LookupFactions (const std::string &) |
static PyRep * | LookupCorporationTickers (const std::string &) |
static PyRep * | LookupStations (const std::string &) |
static PyRep * | LookupKnownLocationsByGroup (const std::string &, uint32) |
static PyRep * | PrimeOwners (std::vector< int32 > &itemIDs) |
static bool | ValidateAccountName (CryptoChallengePacket &ccp, std::string &failMsg) |
static void | GetCorpHangarNames (uint32 corpID, std::map< uint8, std::string > &hangarNames) |
![]() | |
void | ProcessStringChange (const char *key, const std::string &oldValue, std::string newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessRealChange (const char *key, double oldValue, double newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessIntChange (const char *key, uint32 oldValue, uint32 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessLongChange (const char *key, int64 oldValue, int64 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
![]() | |
static uint32 | CreateNewAccount (const char *login, const char *pass, const char *passHash, int64 role) |
Definition at line 18 of file StationDB.h.
|
static |
Definition at line 17 of file StationDB.cpp.
References DBerror::c_str(), codelog, OfficeData::corporationID, OfficeData::expiryTime, ItemData::flag, OfficeData::folderID, OfficeData::lockDown, OfficeData::name, OfficeData::officeID, OfficeData::rentalFee, sDatabase, OfficeData::stationID, stDataMgr, and OfficeData::typeID.
Referenced by StationOffice::Spawn().
Definition at line 38 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), and sDatabase.
|
static |
Definition at line 68 of file StationDB.cpp.
References DBerror::c_str(), codelog, OfficeData::corporationID, DBQueryResult::error, OfficeData::expiryTime, OfficeData::folderID, DBResultRow::GetBool(), DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), OfficeData::lockDown, OfficeData::officeID, OfficeData::rentalFee, sDatabase, OfficeData::stationID, and OfficeData::typeID.
Referenced by StationOffice::_LoadItem().
Definition at line 54 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Referenced by StationItem::_Load(), and StationItem::RentOffice().
|
static |
Definition at line 175 of file StationDB.cpp.
References sDatabase.
Referenced by StationDataMgr::Populate().
|
static |
Definition at line 169 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 138 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StationDataMgr::Populate().
|
static |
Definition at line 97 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StationDataMgr::Populate().
|
static |
Definition at line 107 of file StationDB.cpp.
References _log, DBRowToRow(), DBQueryResult::GetRow(), IsOfficeFolder, IsOfficeID, sDatabase, sDataMgr, and STATION_OFFICE_OFFSET.
|
static |
Definition at line 163 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 157 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
Definition at line 180 of file StationDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), OwnerData::locID, and sDatabase.
Referenced by Inventory::LoadContents().
void StationDB::UpdateOfficeData | ( | OfficeData & | data | ) |
Definition at line 32 of file StationDB.cpp.
References OfficeData::expiryTime, OfficeData::lockDown, OfficeData::rentalFee, and sDatabase.