TrinityCore
Loading...
Searching...
No Matches
FileLoader Class Reference

#include <loadlib.h>

+ Inheritance diagram for FileLoader:

Public Member Functions

virtual bool prepareLoadedData ()
 
uint8GetData ()
 
uint32 GetDataSize ()
 
 FileLoader ()
 
 ~FileLoader ()
 
bool loadFile (std::string const &fileName, bool log=true)
 
virtual void free ()
 
virtual bool prepareLoadedData ()
 
uint8GetData ()
 
uint32 GetDataSize ()
 
 FileLoader ()
 
 ~FileLoader ()
 
bool loadFile (char *filename, bool log=true)
 
virtual void free ()
 

Public Attributes

file_MVERversion
 

Private Attributes

uint8data
 
uint32 data_size
 

Detailed Description

Definition at line 48 of file loadlib.h.

Constructor & Destructor Documentation

◆ FileLoader() [1/2]

FileLoader::FileLoader ( )

Definition at line 28 of file loadlib.cpp.

◆ ~FileLoader() [1/2]

FileLoader::~FileLoader ( )

Definition at line 35 of file loadlib.cpp.

+ Here is the call graph for this function:

◆ FileLoader() [2/2]

FileLoader::FileLoader ( )

◆ ~FileLoader() [2/2]

FileLoader::~FileLoader ( )

Member Function Documentation

◆ free() [1/2]

void FileLoader::free ( )
virtual

Reimplemented in ADT_file, and WDT_file.

Definition at line 76 of file loadlib.cpp.

+ Here is the caller graph for this function:

◆ free() [2/2]

virtual void FileLoader::free ( )
virtual

Reimplemented in ADT_file, and WDT_file.

◆ GetData() [1/2]

uint8 * FileLoader::GetData ( )
inline

Definition at line 53 of file loadlib.h.

+ Here is the caller graph for this function:

◆ GetData() [2/2]

uint8 * FileLoader::GetData ( )
inline

Definition at line 45 of file loadlib.h.

◆ GetDataSize() [1/2]

uint32 FileLoader::GetDataSize ( )
inline

Definition at line 54 of file loadlib.h.

◆ GetDataSize() [2/2]

uint32 FileLoader::GetDataSize ( )
inline

Definition at line 46 of file loadlib.h.

◆ loadFile() [1/2]

bool FileLoader::loadFile ( char *  filename,
bool  log = true 
)

◆ loadFile() [2/2]

bool FileLoader::loadFile ( std::string const &  fileName,
bool  log = true 
)

Definition at line 40 of file loadlib.cpp.

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

◆ prepareLoadedData() [1/2]

bool FileLoader::prepareLoadedData ( )
virtual

Reimplemented in ADT_file, and WDT_file.

Definition at line 65 of file loadlib.cpp.

+ Here is the caller graph for this function:

◆ prepareLoadedData() [2/2]

virtual bool FileLoader::prepareLoadedData ( )
virtual

Reimplemented in ADT_file, and WDT_file.

Member Data Documentation

◆ data

uint8 * FileLoader::data
private

Definition at line 49 of file loadlib.h.

◆ data_size

uint32 FileLoader::data_size
private

Definition at line 50 of file loadlib.h.

◆ version

file_MVER * FileLoader::version

Definition at line 56 of file loadlib.h.


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