TrinityCore
Loading...
Searching...
No Matches
CASC::Storage Class Reference

#include <CascHandles.h>

Public Member Functions

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

Static Public Member Functions

static Storage * Open (boost::filesystem::path const &path, uint32 localeMask, char const *product)
 
static Storage * OpenRemote (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 178 of file CascHandles.cpp.

References _handle.

◆ Storage()

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

Definition at line 166 of file CascHandles.cpp.

Member Function Documentation

◆ GetBuildNumber()

uint32 CASC::Storage::GetBuildNumber ( ) const

Definition at line 251 of file CascHandles.cpp.

References _handle.

◆ GetInstalledLocalesMask()

uint32 CASC::Storage::GetInstalledLocalesMask ( ) const

Definition at line 260 of file CascHandles.cpp.

References _handle.

◆ HasTactKey()

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

Definition at line 269 of file CascHandles.cpp.

References _handle.

◆ LoadOnlineTactKeys()

bool CASC::Storage::LoadOnlineTactKeys ( )
private

Definition at line 170 of file CascHandles.cpp.

References _handle.

Referenced by Open(), and OpenRemote().

◆ Open()

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

◆ OpenFile() [1/2]

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

Definition at line 274 of file CascHandles.cpp.

References _handle, and CASC::HumanReadableCASCError().

◆ OpenFile() [2/2]

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

Definition at line 295 of file CascHandles.cpp.

References _handle, and CASC::HumanReadableCASCError().

◆ OpenRemote()

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

Member Data Documentation

◆ _handle

HANDLE CASC::Storage::_handle
private

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