TrinityCore
CASC::Storage Class Reference

#include <CascHandles.h>

Public Member Functions

 ~Storage ()
 
uint32 GetBuildNumber () const
 
uint32 GetInstalledLocalesMask () const
 
bool HasTactKey (uint64 keyLookup) const
 
FileOpenFile (char const *fileName, uint32 localeMask, bool printErrors=false, bool zerofillEncryptedParts=false) const
 
FileOpenFile (uint32 fileDataId, uint32 localeMask, bool printErrors=false, bool zerofillEncryptedParts=false) const
 

Static Public Member Functions

static StorageOpen (boost::filesystem::path const &path, uint32 localeMask, char const *product)
 
static StorageOpenRemote (boost::filesystem::path const &path, uint32 localeMask, char const *product, char const *region)
 

Private Member Functions

 Storage (HANDLE handle)
 
bool LoadOnlineTactKeys ()
 

Private Attributes

HANDLE _handle
 

Detailed Description

Definition at line 38 of file CascHandles.h.

Constructor & Destructor Documentation

◆ ~Storage()

CASC::Storage::~Storage ( )

Definition at line 172 of file CascHandles.cpp.

◆ Storage()

CASC::Storage::Storage ( HANDLE  handle)
private

Definition at line 160 of file CascHandles.cpp.

Member Function Documentation

◆ GetBuildNumber()

uint32 CASC::Storage::GetBuildNumber ( ) const

Definition at line 242 of file CascHandles.cpp.

◆ GetInstalledLocalesMask()

uint32 CASC::Storage::GetInstalledLocalesMask ( ) const

Definition at line 251 of file CascHandles.cpp.

◆ HasTactKey()

bool CASC::Storage::HasTactKey ( uint64  keyLookup) const

Definition at line 260 of file CascHandles.cpp.

◆ LoadOnlineTactKeys()

bool CASC::Storage::LoadOnlineTactKeys ( )
private

Definition at line 164 of file CascHandles.cpp.

+ Here is the caller graph for this function:

◆ Open()

CASC::Storage * CASC::Storage::Open ( boost::filesystem::path const &  path,
uint32  localeMask,
char const *  product 
)
static

Definition at line 177 of file CascHandles.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OpenFile() [1/2]

CASC::File * CASC::Storage::OpenFile ( char const *  fileName,
uint32  localeMask,
bool  printErrors = false,
bool  zerofillEncryptedParts = false 
) const

Definition at line 265 of file CascHandles.cpp.

+ Here is the call graph for this function:

◆ OpenFile() [2/2]

CASC::File * CASC::Storage::OpenFile ( uint32  fileDataId,
uint32  localeMask,
bool  printErrors = false,
bool  zerofillEncryptedParts = false 
) const

Definition at line 286 of file CascHandles.cpp.

+ Here is the call graph for this function:

◆ OpenRemote()

CASC::Storage * CASC::Storage::OpenRemote ( boost::filesystem::path const &  path,
uint32  localeMask,
char const *  product,
char const *  region 
)
static

Definition at line 204 of file CascHandles.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _handle

HANDLE CASC::Storage::_handle
private

Definition at line 58 of file CascHandles.h.


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