EvEmu
0.8.4
11 September 2021
|
#include "MarketDB.h"
Public Member Functions | |
PyRep * | GetMarketGroups () |
PyRep * | GetOrders (uint32 regionID, uint16 typeID) |
PyRep * | GetOrderRow (uint32 orderID) |
PyRep * | GetRegionBest (uint32 regionID) |
PyRep * | GetSystemAsks (uint32 solarSystemID) |
PyRep * | GetStationAsks (uint32 stationID) |
PyRep * | GetOrdersForOwner (uint32 ownerID) |
PyRep * | GetTransactions (uint32 ownerID, Market::TxData &data) |
bool | DeleteOrder (uint32 orderID) |
bool | GetOrderInfo (uint32 orderID, Market::OrderInfo &oInfo) |
bool | AlterOrderPrice (uint32 orderID, double new_price) |
bool | RecordTransaction (Market::TxData &data) |
bool | AlterOrderQuantity (uint32 orderID, uint32 new_qty) |
uint32 | FindBuyOrder (Call_PlaceCharOrder &call) |
uint32 | FindSellOrder (Call_PlaceCharOrder &call) |
uint32 | StoreOrder (Market::SaveData &data) |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
Static Public Member Functions | |
static void | GetShipIDs (std::map< uint16, Inv::TypeData > &data) |
static void | GetMineralPrices (std::map< uint16, Market::matlData > &data) |
static void | GetMaterialPrices (std::map< uint16, Market::matlData > &data) |
static void | GetManufacturedItems (std::map< uint16, Inv::TypeData > &data) |
static void | UpdateInvPrice (std::map< uint16, Inv::TypeData > &data) |
static void | UpdateMktPrice (std::map< uint16, Market::matlData > &data) |
static void | GetCruPriceAvg (std::map< uint16, Inv::TypeData > &data) |
static int64 | GetUpdateTime () |
static void | SetUpdateTime (int64 setTime) |
static void | UpdateHistory () |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
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 38 of file MarketDB.h.
bool MarketDB::AlterOrderPrice | ( | uint32 | orderID, |
double | new_price | ||
) |
Definition at line 307 of file MarketDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Definition at line 298 of file MarketDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Referenced by MarketMgr::ExecuteBuyOrder(), and MarketMgr::ExecuteSellOrder().
bool MarketDB::DeleteOrder | ( | uint32 | orderID | ) |
Definition at line 316 of file MarketDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Referenced by MarketMgr::ExecuteBuyOrder(), and MarketMgr::ExecuteSellOrder().
uint32 MarketDB::FindBuyOrder | ( | Call_PlaceCharOrder & | call | ) |
Definition at line 196 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
uint32 MarketDB::FindSellOrder | ( | Call_PlaceCharOrder & | call | ) |
Definition at line 224 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
|
static |
Definition at line 590 of file MarketDB.cpp.
References DBResultRow::GetFloat(), DBQueryResult::GetRow(), DBResultRow::IsNull(), and sDatabase.
Referenced by MarketMgr::GetCruPrices(), and MarketMgr::SetBasePrice().
|
static |
Definition at line 519 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), and sDatabase.
Referenced by MarketMgr::SetBasePrice().
PyRep * MarketDB::GetMarketGroups | ( | ) |
Definition at line 401 of file MarketDB.cpp.
References _log, DBerror::c_str(), codelog, DBRowDescriptor::ColumnCount(), DBQueryResult::error, DBResultRow::GetBool(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), is_log_enabled, DBResultRow::IsNull(), CRowSet::NewRow(), PyStatic, sDatabase, PyPackedRow::SetField(), and PyDict::SetItemString().
Referenced by MarketMgr::Populate().
|
static |
Definition at line 531 of file MarketDB.cpp.
References DBResultRow::GetFloat(), DBQueryResult::GetRow(), and sDatabase.
Referenced by MarketMgr::SetBasePrice().
|
static |
Definition at line 543 of file MarketDB.cpp.
References DBResultRow::GetFloat(), DBQueryResult::GetRow(), and sDatabase.
Referenced by MarketMgr::SetBasePrice().
bool MarketDB::GetOrderInfo | ( | uint32 | orderID, |
Market::OrderInfo & | oInfo | ||
) |
Definition at line 253 of file MarketDB.cpp.
References _log, Market::OrderInfo::accountKey, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetBool(), DBResultRow::GetFloat(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), Market::OrderInfo::isBuy, Market::OrderInfo::isCorp, Market::OrderInfo::memberID, Market::OrderInfo::ownerID, Market::OrderInfo::price, Market::OrderInfo::quantity, Market::OrderInfo::regionID, sDatabase, Market::OrderInfo::stationID, and Market::OrderInfo::typeID.
Referenced by MarketMgr::ExecuteBuyOrder(), and MarketMgr::ExecuteSellOrder().
Definition at line 172 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBRowToPackedRow(), DBQueryResult::error, DBQueryResult::GetRow(), and sDatabase.
Referenced by MarketMgr::ExecuteBuyOrder(), MarketMgr::ExecuteSellOrder(), and MarketMgr::SendOnOwnOrderChanged().
Definition at line 109 of file MarketDB.cpp.
References _log, Market::Type::Buy, DBerror::c_str(), codelog, DBResultToCRowset(), PyRep::Dump(), DBQueryResult::error, DBQueryResult::GetRowCount(), is_log_enabled, PyDecRef, sDatabase, Market::Type::Sell, and PyTuple::SetItem().
Definition at line 151 of file MarketDB.cpp.
References _log, DBerror::c_str(), codelog, DBResultToRowset(), DBQueryResult::error, DBQueryResult::GetRowCount(), and sDatabase.
Definition at line 87 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBResultToIndexRowset(), DBQueryResult::error, sDatabase, and Market::Type::Sell.
|
static |
Definition at line 500 of file MarketDB.cpp.
References DBResultRow::GetInt(), DBQueryResult::GetRow(), sDatabase, and EVEDB::invCategories::Ship.
Definition at line 43 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBResultToIndexRowset(), DBQueryResult::error, and sDatabase.
Definition at line 65 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBResultToIndexRowset(), DBQueryResult::error, and sDatabase.
PyRep * MarketDB::GetTransactions | ( | uint32 | ownerID, |
Market::TxData & | data | ||
) |
Definition at line 349 of file MarketDB.cpp.
References Market::TxData::accountKey, DBerror::c_str(), codelog, DBResultToRowset(), DBQueryResult::error, Market::TxData::isBuy, Market::TxData::memberID, Market::TxData::price, Market::TxData::quantity, sDatabase, Market::TxData::time, and Market::TxData::typeID.
|
static |
Definition at line 456 of file MarketDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetInt64(), DBQueryResult::GetRow(), and sDatabase.
Referenced by MarketMgr::Initialize().
bool MarketDB::RecordTransaction | ( | Market::TxData & | data | ) |
Definition at line 380 of file MarketDB.cpp.
References Market::TxData::accountKey, DBerror::c_str(), Market::TxData::clientID, codelog, GetFileTimeNow(), Market::TxData::isBuy, Market::TxData::isCorp, Market::TxData::memberID, Market::TxData::price, Market::TxData::quantity, Market::TxData::regionID, sDatabase, Market::TxData::stationID, and Market::TxData::typeID.
Referenced by MarketMgr::ExecuteBuyOrder(), and MarketMgr::ExecuteSellOrder().
|
static |
Definition at line 470 of file MarketDB.cpp.
References sDatabase.
Referenced by MarketMgr::UpdatePriceHistory().
uint32 MarketDB::StoreOrder | ( | Market::SaveData & | data | ) |
Definition at line 325 of file MarketDB.cpp.
References Market::SaveData::accountKey, Market::SaveData::bid, DBerror::c_str(), codelog, Market::SaveData::contraband, Market::SaveData::duration, Market::SaveData::escrow, Market::SaveData::isCorp, Market::SaveData::issued, Market::SaveData::jumps, Market::SaveData::memberID, Market::SaveData::minVolume, Market::SaveData::orderRange, Market::SaveData::ownerID, Market::SaveData::price, Market::SaveData::regionID, sDatabase, Market::SaveData::solarSystemID, Market::SaveData::stationID, Market::SaveData::typeID, Market::SaveData::volEntered, and Market::SaveData::volRemaining.
|
static |
Definition at line 477 of file MarketDB.cpp.
References sDatabase.
|
static |
Definition at line 570 of file MarketDB.cpp.
References sDatabase, and sLog.
Referenced by MarketMgr::GetCruPrices(), and MarketMgr::SetBasePrice().
|
static |
Definition at line 583 of file MarketDB.cpp.
References sDatabase.
Referenced by MarketMgr::UpdateMineralPrice().