EvEmu
0.8.4
11 September 2021
|
#include "FactoryDB.h"
Static Public Member Functions | |
FactoryDB.cpp | |
db query methods for R.A.M. activities : Allan
| |
static PyRep * | GetJobs2 (const int32 ownerID, const bool completed) |
static PyRep * | AssemblyLinesSelectPublic (const uint32 regionID) |
static PyRep * | AssemblyLinesSelectPersonal (const uint32 charID) |
static PyRep * | AssemblyLinesSelectPrivate (const uint32 charID) |
static PyRep * | AssemblyLinesSelectCorporation (const uint32 corporationID) |
static PyRep * | AssemblyLinesSelectAlliance (const int32 allianceID) |
static PyRep * | AssemblyLinesGet (const uint32 containerID) |
static PyRep * | GetMaterialCompositionOfItemType (const uint32 typeID) |
static bool | IsRefinable (const uint16 typeID) |
static bool | IsRecyclable (const uint16 typeID) |
static void | GetSalvage (DBQueryResult &res) |
static void | GetMinerals (DBQueryResult &res) |
static void | GetCompounds (DBQueryResult &res) |
static void | GetResources (DBQueryResult &res) |
static void | GetComponents (DBQueryResult &res) |
static void | GetCommodities (DBQueryResult &res) |
static void | GetMiscCommodities (DBQueryResult &res) |
static void | GetRAMMaterials (DBQueryResult &res) |
static void | GetBlueprintType (DBQueryResult &res) |
static void | GetRAMRequirements (DBQueryResult &res) |
static bool | GetAssemblyLineProperties (const uint32 assemblyLineID, Character *pChar, Rsp_InstallJob &into, bool isCorpJob=false) |
static bool | GetAssemblyLineRestrictions (const int32 assemblyLineID, EvERam::LineRestrictions &data) |
static uint32 | InstallJob (const uint32 ownerID, const uint32 installerID, Call_InstallJob &args, const int64 beginTime, const int64 endTime, const uint32 systemID) |
static bool | GetJobProperties (const uint32 jobID, EvERam::JobProperties &data) |
static bool | CompleteJob (const uint32 jobID, const int8 completedStatus) |
static bool | DeleteBlueprint (uint32 blueprintID) |
static bool | GetBlueprint (uint32 blueprintID, EvERam::bpData &into) |
static bool | SaveBlueprintData (uint32 blueprintID, EvERam::bpData &data) |
static bool | IsProducableBy (const uint32 assemblyLineID, const ItemType *pType) |
static bool | GetMultipliers (const uint32 assemblyLineID, const ItemType *pType, Rsp_InstallJob &into) |
static uint32 | CountManufacturingJobs (const uint32 installerID) |
static uint32 | CountResearchJobs (const uint32 installerID) |
static uint32 | GetTech2Blueprint (const uint32 blueprintTypeID) |
static int64 | GetNextFreeTime (const uint32 assemblyLineID) |
static void | SetJobEventID (const uint32 jobID, const uint32 eventID) |
![]() | |
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 | |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
![]() | |
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 21 of file FactoryDB.h.
Definition at line 370 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Definition at line 344 of file FactoryDB.cpp.
References _log, EvERam::RestrictionMask::ByAlliance, DBerror::c_str(), DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Definition at line 319 of file FactoryDB.cpp.
References _log, EvERam::RestrictionMask::ByCorp, DBerror::c_str(), DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Definition at line 271 of file FactoryDB.cpp.
References _log, EvERam::RestrictionMask::ByAlliance, EvERam::RestrictionMask::ByCorp, DBerror::c_str(), DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Definition at line 295 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Definition at line 245 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Definition at line 636 of file FactoryDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Definition at line 554 of file FactoryDB.cpp.
References _log, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by RamMethods::JobsCheck().
Definition at line 579 of file FactoryDB.cpp.
References _log, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by RamMethods::JobsCheck().
|
static |
Definition at line 94 of file FactoryDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Referenced by Blueprint::Delete().
|
static |
Definition at line 400 of file FactoryDB.cpp.
References _log, DBerror::c_str(), Character::corporationID(), DBQueryResult::error, DBResultRow::GetFloat(), DBResultRow::GetInt(), DBQueryResult::GetRow(), StandingDB::GetStanding(), InventoryItem::itemID(), sDatabase, and sDataMgr.
Referenced by RamMethods::Calculate().
|
static |
Definition at line 481 of file FactoryDB.cpp.
References _log, EvERam::LineRestrictions::activityID, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetFloat(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), EvERam::LineRestrictions::maxCharSec, EvERam::LineRestrictions::maxCorpSec, EvERam::LineRestrictions::minCharSec, EvERam::LineRestrictions::minCorpSec, EvERam::LineRestrictions::minStanding, EvERam::LineRestrictions::ownerID, EvERam::LineRestrictions::rMask, and sDatabase.
Referenced by RamMethods::LinePermissionCheck().
|
static |
Definition at line 140 of file FactoryDB.cpp.
References _log, DBerror::c_str(), codelog, EvERam::bpData::copy, DBQueryResult::error, DBResultRow::GetBool(), DBResultRow::GetInt(), DBQueryResult::GetRow(), EvERam::bpData::mLevel, EvERam::bpData::pLevel, EvERam::bpData::runs, and sDatabase.
Referenced by Blueprint::_LoadItem().
|
static |
Definition at line 170 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 58 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 52 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 40 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 603 of file FactoryDB.cpp.
References _log, EvERam::JobProperties::activity, DBerror::c_str(), EvERam::JobProperties::endTime, DBQueryResult::error, EvERam::JobProperties::eventID, DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetUInt(), EvERam::JobProperties::itemID, EvERam::JobProperties::jobRuns, EvERam::JobProperties::licensedRuns, EvERam::JobProperties::outputFlag, EvERam::JobProperties::ownerID, sDatabase, and EvERam::JobProperties::status.
Definition at line 197 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBResultToRowset(), DBQueryResult::error, and sDatabase.
Definition at line 103 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBResultToRowset(), DBQueryResult::error, and sDatabase.
|
static |
Definition at line 46 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 64 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 678 of file FactoryDB.cpp.
References _log, DBerror::c_str(), ItemType::categoryID(), DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), ItemType::groupID(), and sDatabase.
Referenced by RamMethods::Calculate(), and IsProducableBy().
Definition at line 662 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::IsNull(), and sDatabase.
Referenced by RamMethods::Calculate().
|
static |
Definition at line 76 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 82 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 70 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 34 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, and sDatabase.
Referenced by StaticDataMgr::Populate().
Definition at line 647 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by RamMethods::ActivityCheck().
|
static |
Definition at line 520 of file FactoryDB.cpp.
References _log, DBerror::c_str(), GetFileTimeNow(), and sDatabase.
Definition at line 29 of file FactoryDB.cpp.
References GetMultipliers().
Referenced by RamMethods::ActivityCheck().
|
static |
Definition at line 737 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 719 of file FactoryDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), and sDatabase.
Referenced by StaticDataMgr::Populate().
|
static |
Definition at line 120 of file FactoryDB.cpp.
References DBerror::c_str(), codelog, EvERam::bpData::copy, EvERam::bpData::mLevel, EvERam::bpData::pLevel, EvERam::bpData::runs, and sDatabase.
Referenced by Blueprint::CreateItemID(), and Blueprint::SaveBlueprint().