TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
RootHandler.cpp File Reference
#include "../CascLib.h"
#include "../CascCommon.h"
+ Include dependency graph for RootHandler.cpp:

Macros

#define __CASCLIB_SELF__
 

Functions

int RootHandler_Insert (TRootHandler *pRootHandler, const char *szFileName, LPBYTE pbEncodingKey)
 
LPBYTE RootHandler_Search (TRootHandler *pRootHandler, struct _TCascSearch *pSearch, PDWORD PtrFileSize, PDWORD PtrLocaleFlags)
 
void RootHandler_EndSearch (TRootHandler *pRootHandler, struct _TCascSearch *pSearch)
 
LPBYTE RootHandler_GetKey (TRootHandler *pRootHandler, const char *szFileName)
 
void RootHandler_Dump (TCascStorage *hs, LPBYTE pbRootHandler, DWORD cbRootHandler, const TCHAR *szNameFormat, const TCHAR *szListFile, int nDumpLevel)
 
void RootHandler_Close (TRootHandler *pRootHandler)
 

Macro Definition Documentation

#define __CASCLIB_SELF__

Function Documentation

void RootHandler_Close ( TRootHandler pRootHandler)
72 {
73  // Check if the root structure is allocated at all
74  if(pRootHandler != NULL)
75  {
76  pRootHandler->Close(pRootHandler);
77  }
78 }
arena_t NULL
Definition: jemalloc_internal.h:624
ROOT_CLOSE Close
Definition: RootHandler.h:73

+ Here is the caller graph for this function:

void RootHandler_Dump ( TCascStorage hs,
LPBYTE  pbRootHandler,
DWORD  cbRootHandler,
const TCHAR szNameFormat,
const TCHAR szListFile,
int  nDumpLevel 
)
54 {
55  TDumpContext * dc;
56 
57  // Only if the ROOT provider suports the dump option
58  if(hs->pRootHandler != NULL && hs->pRootHandler->Dump != NULL)
59  {
60  // Create the dump file
61  dc = CreateDumpContext(hs, szNameFormat);
62  if(dc != NULL)
63  {
64  // Dump the content and close the file
65  hs->pRootHandler->Dump(hs, dc, pbRootHandler, cbRootHandler, szListFile, nDumpLevel);
66  dump_close(dc);
67  }
68  }
69 }
TRootHandler * pRootHandler
Definition: CascCommon.h:223
ROOT_DUMP Dump
Definition: RootHandler.h:72
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: DumpContext.h:21
int dump_close(TDumpContext *dc)
Definition: DumpContext.cpp:136
TDumpContext * CreateDumpContext(TCascStorage *hs, const TCHAR *szNameFormat)
Definition: DumpContext.cpp:56

+ Here is the call graph for this function:

void RootHandler_EndSearch ( TRootHandler pRootHandler,
struct _TCascSearch pSearch 
)
36 {
37  // Check if the root structure is valid at all
38  if(pRootHandler != NULL)
39  {
40  pRootHandler->EndSearch(pRootHandler, pSearch);
41  }
42 }
arena_t NULL
Definition: jemalloc_internal.h:624
ROOT_ENDSEARCH EndSearch
Definition: RootHandler.h:70

+ Here is the caller graph for this function:

LPBYTE RootHandler_GetKey ( TRootHandler pRootHandler,
const char *  szFileName 
)
45 {
46  // Check if the root structure is valid at all
47  if(pRootHandler == NULL)
48  return NULL;
49 
50  return pRootHandler->GetKey(pRootHandler, szFileName);
51 }
ROOT_GETKEY GetKey
Definition: RootHandler.h:71
arena_t NULL
Definition: jemalloc_internal.h:624

+ Here is the caller graph for this function:

int RootHandler_Insert ( TRootHandler pRootHandler,
const char *  szFileName,
LPBYTE  pbEncodingKey 
)
19 {
20  if(pRootHandler == NULL || pRootHandler->Insert == NULL)
21  return ERROR_NOT_SUPPORTED;
22 
23  return pRootHandler->Insert(pRootHandler, szFileName, pbEncodingKey);
24 }
ROOT_INSERT Insert
Definition: RootHandler.h:68
arena_t NULL
Definition: jemalloc_internal.h:624
#define ERROR_NOT_SUPPORTED
Definition: CascPort.h:209

+ Here is the caller graph for this function:

LPBYTE RootHandler_Search ( TRootHandler pRootHandler,
struct _TCascSearch pSearch,
PDWORD  PtrFileSize,
PDWORD  PtrLocaleFlags 
)
27 {
28  // Check if the root structure is valid at all
29  if(pRootHandler == NULL)
30  return NULL;
31 
32  return pRootHandler->Search(pRootHandler, pSearch, PtrFileSize, PtrLocaleFlags);
33 }
arena_t NULL
Definition: jemalloc_internal.h:624
ROOT_SEARCH Search
Definition: RootHandler.h:69

+ Here is the caller graph for this function: