TrinityCore
Loading...
Searching...
No Matches
DB2HotfixGenerator< T > Class Template Reference

#include <DB2HotfixGenerator.h>

+ Inheritance diagram for DB2HotfixGenerator< T >:

Public Member Functions

 DB2HotfixGenerator (DB2Storage< T > &storage)
 
void ApplyHotfix (uint32 id, void(*fixer)(T *), bool notifyClient=false)
 
void ApplyHotfix (std::initializer_list< uint32 > ids, void(*fixer)(T *), bool notifyClient=false)
 
uint32 GetAppliedHotfixesCount () const
 
void ApplyHotfix (std::span< uint32 const > ids, void(*fixer)(T *), bool notifyClient)
 

Private Attributes

DB2Storage< T > & _storage
 
uint32 _count
 

Additional Inherited Members

- Static Private Member Functions inherited from DB2HotfixGeneratorBase
static void LogMissingRecord (std::string const &storageName, uint32 recordId)
 
static void AddClientHotfix (uint32 tableHash, uint32 recordId)
 

Detailed Description

template<class T>
class DB2HotfixGenerator< T >

Definition at line 33 of file DB2HotfixGenerator.h.

Constructor & Destructor Documentation

◆ DB2HotfixGenerator()

template<class T >
DB2HotfixGenerator< T >::DB2HotfixGenerator ( DB2Storage< T > &  storage)
inlineexplicit

Definition at line 36 of file DB2HotfixGenerator.h.

Member Function Documentation

◆ ApplyHotfix() [1/3]

template<class T >
void DB2HotfixGenerator< T >::ApplyHotfix ( std::initializer_list< uint32 >  ids,
void(*)(T *)  fixer,
bool  notifyClient = false 
)
inline

◆ ApplyHotfix() [2/3]

template<class T >
void DB2HotfixGenerator< T >::ApplyHotfix ( std::span< uint32 const >  ids,
void(*)(T *)  fixer,
bool  notifyClient 
)
inline

◆ ApplyHotfix() [3/3]

template<class T >
void DB2HotfixGenerator< T >::ApplyHotfix ( uint32  id,
void(*)(T *)  fixer,
bool  notifyClient = false 
)
inline

◆ GetAppliedHotfixesCount()

template<class T >
uint32 DB2HotfixGenerator< T >::GetAppliedHotfixesCount ( ) const
inline

Definition at line 41 of file DB2HotfixGenerator.h.

References DB2HotfixGenerator< T >::_count.

Member Data Documentation

◆ _count

template<class T >
uint32 DB2HotfixGenerator< T >::_count
private

◆ _storage

template<class T >
DB2Storage<T>& DB2HotfixGenerator< T >::_storage
private

Definition at line 63 of file DB2HotfixGenerator.h.

Referenced by DB2HotfixGenerator< T >::ApplyHotfix().


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