Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Field Class Reference

#include <Field.h>

Public Member Functions

template<size_t S>
std::array< uint8, S > GetBinary () const
std::vector< uint8GetBinary () const
bool GetBool () const
char const * GetCString () const
double GetDouble () const
float GetFloat () const
int16 GetInt16 () const
int32 GetInt32 () const
int64 GetInt64 () const
int8 GetInt8 () const
std::string GetString () const
uint16 GetUInt16 () const
uint32 GetUInt32 () const
uint64 GetUInt64 () const
uint8 GetUInt8 () const
bool IsNull () const

Protected Member Functions

void CleanUp ()
 Field ()
void GetBinarySizeChecked (uint8 *buf, size_t size) const
bool IsBinary () const
bool IsNumeric () const
bool IsType (enum_field_types type) const
void SetByteValue (void const *newValue, size_t const newSize, enum_field_types newType, uint32 length)
void SetStructuredValue (char *newValue, enum_field_types newType, uint32 length)
 ~Field ()

Static Protected Member Functions

static size_t SizeForType (MYSQL_FIELD *field)

Protected Attributes

struct { 
   uint32   length 
   bool   raw 
   enum_field_types   type 
   void *   value 
data

Friends

class PreparedResultSet
class ResultSet

Detailed Description

Definition at line 15 of file Field.h.

Constructor & Destructor Documentation

◆ Field()

Field::Field ( )
protected

Definition at line 9 of file Field.cpp.

References data.

◆ ~Field()

Field::~Field ( )
protected

Definition at line 17 of file Field.cpp.

References CleanUp().

Member Function Documentation

◆ CleanUp()

void Field::CleanUp ( )
inlineprotected

Definition at line 286 of file Field.h.

References data.

Referenced by SetByteValue(), SetStructuredValue(), and ~Field().

◆ GetBinary() [1/2]

template<size_t S>
std::array< uint8, S > Field::GetBinary ( ) const
inlinenodiscard

Definition at line 254 of file Field.h.

References GetBinarySizeChecked().

◆ GetBinary() [2/2]

std::vector< uint8 > Field::GetBinary ( ) const
nodiscard

Definition at line 56 of file Field.cpp.

References data.

Referenced by AuthSocket::_HandleReconnectChallenge(), and WorldSocket::HandleAuthSession().

◆ GetBinarySizeChecked()

void Field::GetBinarySizeChecked ( uint8 * buf,
size_t size ) const
protected

Definition at line 67 of file Field.cpp.

References ASSERT, data, and length.

Referenced by GetBinary().

◆ GetBool()

◆ GetCString()

◆ GetDouble()

double Field::GetDouble ( ) const
inlinenodiscard

Definition at line 195 of file Field.h.

References data, IsType(), and SF_LOG_WARN.

◆ GetFloat()

float Field::GetFloat ( ) const
inlinenodiscard

Definition at line 177 of file Field.h.

References data, IsType(), and SF_LOG_WARN.

Referenced by Player::_LoadHomeBind(), Player::BuildEnumData(), BattlegroundMgr::CreateInitialBattlegrounds(), Player::GetZoneIdFromDB(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), go_commandscript::HandleGoCreatureCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), npc_commandscript::HandleNpcNearCommand(), reload_commandscript::HandleReloadCreatureTemplateCommand(), tele_commandscript::HandleTeleNameCommand(), wp_commandscript::HandleWpEventCommand(), wp_commandscript::HandleWpShowCommand(), WaypointMgr::Load(), ObjectMgr::LoadArchaeologyFindInfo(), ObjectMgr::LoadAreaTriggerTeleports(), BlackMarketMgr::LoadBlackMarketTemplates(), Corpse::LoadCorpseFromDB(), FormationMgr::LoadCreatureFormations(), ObjectMgr::LoadCreatureModelInfo(), ObjectMgr::LoadCreatures(), ObjectMgr::LoadCreatureTemplates(), CreatureTextMgr::LoadCreatureTexts(), BugTicket::LoadFromDB(), GameEventMgr::LoadFromDB(), Player::LoadFromDB(), PoolMgr::LoadFromDB(), SmartWaypointMgr::LoadFromDB(), SuggestTicket::LoadFromDB(), ObjectMgr::LoadGameobjects(), ObjectMgr::LoadGameObjectTemplate(), ObjectMgr::LoadGameTele(), ObjectMgr::LoadGossipText(), ObjectMgr::LoadGraveyardOrientations(), ObjectMgr::LoadItemTemplateAddon(), ObjectMgr::LoadItemTemplates(), lfg::LFGMgr::LoadLFGDungeons(), LootStore::LoadLootTable(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadPointsOfInterest(), Player::LoadPositionFromDB(), LoadRandomEnchantmentsTable(), ObjectMgr::LoadReputationRewardRate(), ObjectMgr::LoadReputationSpilloverTemplate(), ObjectMgr::LoadResearchProjectRequirements(), ObjectMgr::LoadScripts(), SystemMgr::LoadScriptWaypoints(), LoadSkillDiscoveryTable(), LoadSkillExtraItemTable(), SmartAIMgr::LoadSmartAIFromDB(), SpellMgr::LoadSpellBonusess(), SpellMgr::LoadSpellEnchantProcData(), SpellMgr::LoadSpellProcEvents(), SpellMgr::LoadSpellProcs(), SpellMgr::LoadSpellTargetPositions(), SpellMgr::LoadSpellThreats(), ObjectMgr::LoadTavernAreaTriggers(), ObjectMgr::LoadTempSummons(), Quest::Quest(), WaypointMgr::ReloadPath(), and RealmList::UpdateRealms().

◆ GetInt16()

◆ GetInt32()

◆ GetInt64()

int64 Field::GetInt64 ( ) const
inlinenodiscard

◆ GetInt8()

◆ GetString()

std::string Field::GetString ( ) const
inlinenodiscard

Definition at line 228 of file Field.h.

References data, and GetCString().

Referenced by AuthSocket::_HandleLogonChallenge(), Player::_LoadCUFProfiles(), Player::_LoadEquipmentSets(), Player::_LoadMail(), Master::_StartDB(), Guild::AddMember(), Player::BuildEnumData(), CreateDumpString(), InstanceMap::CreateInstanceData(), Player::DeleteFromDB(), ChatHandler::getCommandTable(), character_commandscript::GetDeletedCharacterInfoList(), account_commandscript::HandleAccountLockCountryCommand(), account_commandscript::HandleAccountOnlineListCommand(), WorldSocket::HandleAuthSession(), ban_commandscript::HandleBanListCharacterCommand(), ban_commandscript::HandleBanListHelper(), WorldSession::HandleChangePlayerNameOpcodeCallBack(), WorldSession::HandleCharDeleteOpcode(), misc_commandscript::HandleListFreezeCommand(), list_commandscript::HandleListItemCommand(), list_commandscript::HandleListMailCommand(), misc_commandscript::HandlePInfoCommand(), reload_commandscript::HandleReloadCreatureTemplateCommand(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::HandleWhoisOpcode(), ObjectMgr::LoadAccessRequirements(), WorldSession::LoadAccountData(), AchievementGlobalMgr::LoadAchievementCriteriaData(), World::LoadAutobroadcasts(), ObjectMgr::LoadCreatureTemplates(), CreatureTextMgr::LoadCreatureTexts(), World::LoadDBVersion(), DisableMgr::LoadDisables(), AddonMgr::LoadFromDB(), BugTicket::LoadFromDB(), CalendarMgr::LoadFromDB(), GameEventMgr::LoadFromDB(), GmTicket::LoadFromDB(), Guild::BankTab::LoadFromDB(), Guild::LoadFromDB(), Guild::Member::LoadFromDB(), Guild::RankInfo::LoadFromDB(), Item::LoadFromDB(), Player::LoadFromDB(), SocialMgr::LoadFromDB(), SuggestTicket::LoadFromDB(), BattlePetMgr::LoadFromDb(), ObjectMgr::LoadGameObjectTemplate(), ObjectMgr::LoadGameTele(), ObjectMgr::LoadGossipMenuItems(), ObjectMgr::LoadGossipText(), GuildFinderMgr::LoadGuildSettings(), ObjectMgr::LoadItemTemplates(), GuildFinderMgr::LoadMembershipRequests(), ObjectMgr::LoadPageTexts(), Pet::LoadPetFromDB(), ObjectMgr::LoadPetNames(), ObjectMgr::LoadPointsOfInterest(), Player::LoadPositionFromDB(), ObjectMgr::LoadQuestObjectiveLocales(), ObjectMgr::LoadQuestObjectives(), ObjectMgr::LoadReservedPlayersNames(), AchievementGlobalMgr::LoadRewards(), WardenCheckMgr::LoadWardenChecks(), lookup_commandscript::LookupPlayerSearchCommand(), Quest::Quest(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendStablePetCallback(), StoreGUID(), and RealmList::UpdateRealms().

◆ GetUInt16()

uint16 Field::GetUInt16 ( ) const
inlinenodiscard

Definition at line 69 of file Field.h.

References data, IsType(), and SF_LOG_WARN.

Referenced by Player::_LoadBGData(), Player::_LoadBoundInstances(), Player::_LoadCUFProfiles(), Player::_LoadCurrency(), Player::_LoadGlyphs(), Player::_LoadHomeBind(), Player::_LoadSkills(), Player::BuildEnumData(), BattlegroundMgr::CreateInitialBattlegrounds(), Player::DeleteFromDB(), ChatHandler::getCommandTable(), Player::GetZoneIdFromDB(), account_commandscript::HandleAccountOnlineListCommand(), WorldSession::HandleCharCustomize(), WorldSession::HandleCharFactionOrRaceChange(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), go_commandscript::HandleGoCreatureCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), npc_commandscript::HandleNpcNearCommand(), misc_commandscript::HandlePInfoCommand(), reload_commandscript::HandleReloadCreatureTemplateCommand(), tele_commandscript::HandleTeleNameCommand(), ObjectMgr::LoadAreaTriggerTeleports(), ObjectMgr::LoadBattlePetBreedData(), ObjectMgr::LoadBattlePetItemToSpeciesData(), ObjectMgr::LoadBattlePetQualityData(), AchievementGlobalMgr::LoadCompletedAchievements(), Corpse::LoadCorpseFromDB(), FormationMgr::LoadCreatureFormations(), ObjectMgr::LoadCreatures(), AchievementMgr< Guild >::LoadFromDB(), BattlePetSpawnMgr::LoadFromDB(), GameEventMgr::LoadFromDB(), Item::LoadFromDB(), Player::LoadFromDB(), ReputationMgr::LoadFromDB(), BattlePetMgr::LoadFromDb(), ObjectMgr::LoadGameobjects(), ObjectMgr::LoadGameTele(), ObjectMgr::LoadGossipMenuItemsLocales(), ObjectMgr::LoadGossipText(), ObjectMgr::LoadGraveyardZones(), ObjectMgr::LoadInstanceEncounters(), ObjectMgr::LoadInstanceTemplate(), ObjectMgr::LoadItemTemplates(), LootStore::LoadLootTable(), ObjectMgr::LoadNPCSpellClickSpells(), Pet::LoadPetFromDB(), ObjectMgr::LoadPetLevelInfo(), ObjectMgr::LoadPlayerCreateLevelStatsData(), ObjectMgr::LoadPlayerInfo(), Player::LoadPositionFromDB(), ObjectMgr::LoadReputationSpilloverTemplate(), InstanceSaveManager::LoadResetTimes(), LoadSkillDiscoveryTable(), SmartAIMgr::LoadSmartAIFromDB(), SpellMgr::LoadSpellProcEvents(), SpellMgr::LoadSpellProcs(), SpellMgr::LoadSpellTargetPositions(), ObjectMgr::LoadTrainerSpell(), WardenCheckMgr::LoadWardenChecks(), WardenCheckMgr::LoadWardenOverrides(), Quest::Quest(), and RealmList::UpdateRealms().

◆ GetUInt32()

uint32 Field::GetUInt32 ( ) const
inlinenodiscard

Definition at line 105 of file Field.h.

References data, IsType(), and SF_LOG_WARN.

Referenced by AuthSocket::_HandleRealmList(), Player::_LoadActions(), Pet::_LoadAuras(), Player::_LoadAuras(), Player::_LoadBGData(), Player::_LoadBoundInstances(), Player::_LoadCUFProfiles(), Player::_LoadCurrency(), Player::_LoadDailyQuestStatus(), Player::_LoadEquipmentSets(), lfg::LFGMgr::_LoadFromDB(), Player::_LoadInventory(), Player::_LoadItem(), Player::_LoadMail(), Player::_LoadMailedItems(), Player::_LoadMonthlyQuestStatus(), Player::_LoadQuestObjectiveStatus(), Player::_LoadQuestStatus(), Player::_LoadQuestStatusRewarded(), Player::_LoadResearchDigsites(), Player::_LoadResearchHistory(), Player::_LoadResearchProjects(), Player::_LoadSeasonalQuestStatus(), Pet::_LoadSpellCooldowns(), Player::_LoadSpellCooldowns(), Player::_LoadVoidStorage(), Player::_LoadWeeklyQuestStatus(), Master::_StartDB(), World::_UpdateRealmCharCount(), World::BanAccount(), Player::BuildEnumData(), CharacterDatabaseCleaner::CheckUnique(), BattlegroundMgr::CreateInitialBattlegrounds(), Player::Customize(), Player::DeleteFromDB(), character_commandscript::GetDeletedCharacterInfoList(), account_commandscript::HandleAccountOnlineListCommand(), WorldSession::HandleAddFriendOpcodeCallBack(), WorldSocket::HandleAuthSession(), ban_commandscript::HandleBanInfoCharacterCommand(), ban_commandscript::HandleBanListHelper(), WorldSession::HandleChangePlayerNameOpcodeCallBack(), WorldSession::HandleCharDeleteOpcode(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), go_commandscript::HandleGoCreatureCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListItemCommand(), list_commandscript::HandleListMailCommand(), list_commandscript::HandleListObjectCommand(), npc_commandscript::HandleNpcNearCommand(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionShowSignOpcode(), misc_commandscript::HandlePInfoCommand(), reload_commandscript::HandleReloadCreatureTemplateCommand(), WorldSession::HandleStableSwapPetCallback(), WorldSession::HandleTurnInPetitionOpcode(), misc_commandscript::HandleUnFreezeCommand(), WorldSession::HandleUnstablePetCallback(), wp_commandscript::HandleWpEventCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), PoolMgr::Initialize(), Item::ItemContainerLoadLootFromDB(), DBCStorage< T >::Load(), WaypointMgr::Load(), ObjectMgr::LoadAccessRequirements(), AchievementGlobalMgr::LoadAchievementCriteriaData(), ObjectMgr::LoadArchaeologyFindInfo(), ObjectMgr::LoadAreaPhases(), ObjectMgr::LoadAreaTriggerScripts(), ObjectMgr::LoadAreaTriggerTeleports(), AuctionHouseMgr::LoadAuctionItems(), Guild::LoadBankEventLogFromDB(), BattlegroundMgr::LoadBattleMastersEntry(), ObjectMgr::LoadBattlePetItemToSpeciesData(), BlackMarketMgr::LoadBlackMarketAuctions(), BlackMarketMgr::LoadBlackMarketTemplates(), ConditionMgr::LoadConditions(), Corpse::LoadCorpseFromDB(), ObjectMgr::LoadCorpses(), ObjectMgr::LoadCreatureAddons(), ObjectMgr::LoadCreatureClassLevelStats(), FormationMgr::LoadCreatureFormations(), ObjectMgr::LoadCreatureLocales(), ObjectMgr::LoadCreatureModelInfo(), ObjectMgr::LoadCreatures(), ObjectMgr::LoadCreatureTemplateAddons(), ObjectMgr::LoadCreatureTemplates(), CreatureTextMgr::LoadCreatureTexts(), DisableMgr::LoadDisables(), ObjectMgr::LoadEquipmentTemplates(), ObjectMgr::LoadFactionChangeAchievements(), ObjectMgr::LoadFactionChangeItems(), ObjectMgr::LoadFactionChangeQuests(), ObjectMgr::LoadFactionChangeReputations(), ObjectMgr::LoadFactionChangeSpells(), ObjectMgr::LoadFactionChangeTitles(), ObjectMgr::LoadFishingBaseSkillLevel(), AchievementMgr< Guild >::LoadFromDB(), AddonMgr::LoadFromDB(), AuctionEntry::LoadFromDB(), BattlePetSpawnMgr::LoadFromDB(), BugTicket::LoadFromDB(), CalendarMgr::LoadFromDB(), GameEventMgr::LoadFromDB(), GmTicket::LoadFromDB(), Guild::LoadFromDB(), Guild::Member::LoadFromDB(), Guild::RankInfo::LoadFromDB(), Item::LoadFromDB(), Player::LoadFromDB(), PoolMgr::LoadFromDB(), SmartWaypointMgr::LoadFromDB(), SocialMgr::LoadFromDB(), SuggestTicket::LoadFromDB(), BattlePetMgr::LoadFromDb(), AuctionEntry::LoadFromFieldList(), ObjectMgr::LoadGameObjectLocales(), ObjectMgr::LoadGameobjects(), ObjectMgr::LoadGameObjectTemplate(), ObjectMgr::LoadGameTele(), ObjectMgr::LoadGossipMenu(), ObjectMgr::LoadGossipMenuItems(), ObjectMgr::LoadGossipText(), ObjectMgr::LoadGraveyardOrientations(), ObjectMgr::LoadGraveyardZones(), Group::LoadGroupFromDB(), GroupMgr::LoadGroups(), GuildMgr::LoadGuildRewards(), GuildMgr::LoadGuilds(), GuildFinderMgr::LoadGuildSettings(), ObjectMgr::LoadHotfixData(), ObjectMgr::LoadInstanceEncounters(), Guild::BankTab::LoadItemFromDB(), ObjectMgr::LoadItemLocales(), ObjectMgr::LoadItemScriptNames(), ObjectMgr::LoadItemTemplateAddon(), ObjectMgr::LoadItemTemplates(), LegacyTransport::LoadLegacyTransportEntries(), lfg::LFGMgr::LoadLFGDungeons(), ObjectMgr::LoadLinkedRespawn(), LootStore::LoadLootTable(), ObjectMgr::LoadMailLevelRewards(), Guild::LoadMemberFromDB(), GuildFinderMgr::LoadMembershipRequests(), ObjectMgr::LoadNPCSpellClickSpells(), ObjectMgr::LoadNpcTextLocales(), ObjectMgr::LoadPageTextLocales(), ObjectMgr::LoadPageTexts(), Pet::LoadPetFromDB(), ObjectMgr::LoadPetLevelInfo(), ObjectMgr::LoadPetNames(), ObjectMgr::LoadPetNumber(), ObjectMgr::LoadPlayerCreateCastSpellsData(), ObjectMgr::LoadPlayerCreateItemsData(), ObjectMgr::LoadPlayerCreateSpellsData(), ObjectMgr::LoadPlayerCreateXpData(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadPointOfInterestLocales(), ObjectMgr::LoadPointsOfInterest(), ObjectMgr::LoadQuestAreaTriggers(), ObjectMgr::LoadQuestLocales(), ObjectMgr::LoadQuestObjectiveLocales(), ObjectMgr::LoadQuestObjectives(), ObjectMgr::LoadQuestObjectiveVisualEffects(), ObjectMgr::LoadQuestPOI(), LoadRandomEnchantmentsTable(), AccountMgr::LoadRBAC(), ObjectMgr::LoadReferenceVendor(), ObjectMgr::LoadReputationOnKill(), ObjectMgr::LoadReputationRewardRate(), ObjectMgr::LoadResearchDigsiteInfo(), ObjectMgr::LoadResearchProjectRequirements(), InstanceSaveManager::LoadResetTimes(), Map::LoadRespawnTimes(), AchievementGlobalMgr::LoadRewardLocales(), AchievementGlobalMgr::LoadRewards(), lfg::LFGMgr::LoadRewards(), ObjectMgr::LoadSceneTemplates(), ObjectMgr::LoadScripts(), SystemMgr::LoadScriptWaypoints(), LoadSkillDiscoveryTable(), LoadSkillExtraItemTable(), SmartAIMgr::LoadSmartAIFromDB(), SpellMgr::LoadSpellAreas(), SpellMgr::LoadSpellBonusess(), SpellMgr::LoadSpellEnchantProcData(), SpellMgr::LoadSpellGroups(), SpellMgr::LoadSpellGroupStackRules(), SpellMgr::LoadSpellLearnSpells(), SpellMgr::LoadSpellPetAuras(), SpellMgr::LoadSpellProcEvents(), SpellMgr::LoadSpellProcs(), SpellMgr::LoadSpellRanks(), SpellMgr::LoadSpellRequired(), SpellMgr::LoadSpellTargetPositions(), SpellMgr::LoadSpellThreats(), ObjectMgr::LoadTavernAreaTriggers(), ObjectMgr::LoadTempSummons(), ObjectMgr::LoadTerrainPhaseInfo(), ObjectMgr::LoadTerrainSwapDefaults(), ObjectMgr::LoadTerrainWorldMaps(), ObjectMgr::LoadTrainerSpell(), TransportMgr::LoadTransportTemplates(), ObjectMgr::LoadVehicleAccessories(), ObjectMgr::LoadVehicleTemplateAccessories(), ObjectMgr::LoadVendors(), WardenCheckMgr::LoadWardenChecks(), ObjectMgr::LoadWaypointScripts(), WeatherMgr::LoadWeatherData(), World::LoadWorldStates(), lookup_commandscript::LookupPlayerSearchCommand(), Quest::Quest(), WaypointMgr::ReloadPath(), Pet::resetTalentsForAllPetsOf(), ObjectMgr::ReturnOrDeleteOldMails(), TransportMgr::SpawnContinentTransports(), StoreGUID(), and RealmList::UpdateRealms().

◆ GetUInt64()

◆ GetUInt8()

uint8 Field::GetUInt8 ( ) const
inlinenodiscard

Definition at line 26 of file Field.h.

References data, IsType(), and SF_LOG_WARN.

Referenced by Player::_LoadActions(), Pet::_LoadAuras(), Player::_LoadAuras(), Player::_LoadBoundInstances(), Player::_LoadCUFProfiles(), Player::_LoadCurrency(), Player::_LoadEquipmentSets(), lfg::LFGMgr::_LoadFromDB(), Player::_LoadGlyphs(), Player::_LoadInventory(), Player::_LoadMail(), Player::_LoadQuestStatus(), Player::_LoadResearchDigsites(), Player::_LoadVoidStorage(), Player::BuildEnumData(), BattlegroundMgr::CreateInitialBattlegrounds(), Player::DeleteFromDB(), GetBool(), Player::GetLevelFromDB(), account_commandscript::HandleAccountOnlineListCommand(), WorldSocket::HandleAuthSession(), WorldSession::HandleCharCreateCallback(), WorldSession::HandleCharDeleteOpcode(), gm_commandscript::HandleGMListFullCommand(), list_commandscript::HandleListItemCommand(), list_commandscript::HandleListMailCommand(), WorldSession::HandlePetitionSignOpcode(), misc_commandscript::HandlePInfoCommand(), reload_commandscript::HandleReloadCreatureTemplateCommand(), WorldSession::HandleSendMail(), WorldSession::HandleStablePetCallback(), WorldSession::HandleStableSwapPetCallback(), WorldSession::HandleTurnInPetitionOpcode(), GameEventMgr::Initialize(), OutdoorPvPMgr::InitOutdoorPvP(), ObjectMgr::LoadAccessRequirements(), WorldSession::LoadAccountData(), AchievementGlobalMgr::LoadAchievementCriteriaData(), World::LoadAutobroadcasts(), Guild::LoadBankEventLogFromDB(), Guild::LoadBankItemFromDB(), Guild::LoadBankTabFromDB(), ObjectMgr::LoadBattlePetBreedData(), ObjectMgr::LoadBattlePetQualityData(), ConditionMgr::LoadConditions(), ObjectMgr::LoadCreatureModelInfo(), ObjectMgr::LoadCreatures(), CreatureTextMgr::LoadCreatureTexts(), DisableMgr::LoadDisables(), ObjectMgr::LoadEquipmentTemplates(), ObjectMgr::LoadExplorationBaseXP(), BattlePetSpawnMgr::LoadFromDB(), EmblemInfo::LoadFromDB(), GameEventMgr::LoadFromDB(), Guild::RankInfo::LoadFromDB(), Player::LoadFromDB(), SocialMgr::LoadFromDB(), BattlePetMgr::LoadFromDb(), ObjectMgr::LoadGameobjects(), ObjectMgr::LoadGossipMenuItems(), ObjectMgr::LoadGossipText(), GroupMgr::LoadGroups(), GuildMgr::LoadGuildRewards(), GuildFinderMgr::LoadGuildSettings(), GuildMgr::LoadGuildXpForLevel(), ObjectMgr::LoadInstanceEncounters(), Guild::BankTab::LoadItemFromDB(), ObjectMgr::LoadItemTemplateAddon(), ObjectMgr::LoadItemTemplates(), ObjectMgr::LoadLinkedRespawn(), LootStore::LoadLootTable(), ObjectMgr::LoadMailLevelRewards(), GuildFinderMgr::LoadMembershipRequests(), ObjectMgr::LoadNPCSpellClickSpells(), ObjectMgr::LoadPetLevelInfo(), ObjectMgr::LoadPlayerCreateActionData(), ObjectMgr::LoadPlayerCreateItemsData(), ObjectMgr::LoadPlayerCreateLevelStatsData(), ObjectMgr::LoadPlayerCreateXpData(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadQuestObjectiveLocales(), ObjectMgr::LoadQuestObjectives(), ObjectMgr::LoadReferenceVendor(), ObjectMgr::LoadReputationOnKill(), ObjectMgr::LoadReputationSpilloverTemplate(), InstanceSaveManager::LoadResetTimes(), lfg::LFGMgr::LoadRewards(), ObjectMgr::LoadScripts(), LoadSkillExtraItemTable(), BattlePetMgr::LoadSlotsFromDb(), SmartAIMgr::LoadSmartAIFromDB(), SpellMgr::LoadSpellLinked(), SpellMgr::LoadSpellPetAuras(), SpellMgr::LoadSpellRanks(), ObjectMgr::LoadTempSummons(), ObjectMgr::LoadTrainerSpell(), ObjectMgr::LoadVehicleAccessories(), ObjectMgr::LoadVehicleTemplateAccessories(), ObjectMgr::LoadVendors(), WardenCheckMgr::LoadWardenChecks(), WardenCheckMgr::LoadWardenOverrides(), Quest::Quest(), WaypointMgr::ReloadPath(), ObjectMgr::ReturnOrDeleteOldMails(), WorldSession::SendPetitionQueryOpcode(), GameEventMgr::StartArenaSeason(), and RealmList::UpdateRealms().

◆ IsBinary()

bool Field::IsBinary ( ) const
inlinenodiscardprotected

Definition at line 358 of file Field.h.

References data.

Referenced by IsNull().

◆ IsNull()

bool Field::IsNull ( ) const
inlinenodiscard

Definition at line 243 of file Field.h.

References data, and IsBinary().

◆ IsNumeric()

bool Field::IsNumeric ( ) const
inlinenodiscardprotected

Definition at line 347 of file Field.h.

References data.

Referenced by GetCString().

◆ IsType()

bool Field::IsType ( enum_field_types type) const
inlinenodiscardprotected

Definition at line 342 of file Field.h.

References data, and type.

Referenced by GetDouble(), GetFloat(), GetInt16(), GetInt32(), GetInt64(), GetInt8(), GetUInt16(), GetUInt32(), GetUInt64(), and GetUInt8().

◆ SetByteValue()

void Field::SetByteValue ( void const * newValue,
size_t const newSize,
enum_field_types newType,
uint32 length )
protected

Definition at line 22 of file Field.cpp.

References CleanUp(), data, and length.

◆ SetStructuredValue()

void Field::SetStructuredValue ( char * newValue,
enum_field_types newType,
uint32 length )
protected

Definition at line 38 of file Field.cpp.

References CleanUp(), data, and length.

◆ SizeForType()

size_t Field::SizeForType ( MYSQL_FIELD * field)
inlinestaticprotected

Definition at line 292 of file Field.h.

References SF_LOG_WARN.

Referenced by PreparedResultSet::PreparedResultSet().

◆ PreparedResultSet

friend class PreparedResultSet
friend

Definition at line 18 of file Field.h.

References PreparedResultSet.

Referenced by PreparedResultSet.

◆ ResultSet

friend class ResultSet
friend

Definition at line 17 of file Field.h.

References ResultSet.

Referenced by ResultSet.

Member Data Documentation

◆ [struct]

◆ length

uint32 Field::length

Definition at line 272 of file Field.h.

Referenced by GetBinarySizeChecked(), SetByteValue(), and SetStructuredValue().

◆ raw

bool Field::raw

Definition at line 275 of file Field.h.

◆ type

enum_field_types Field::type

Definition at line 274 of file Field.h.

Referenced by IsType().

◆ value

void* Field::value

Definition at line 273 of file Field.h.


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