WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
core::GameDatabase Class Referenceabstract

#include <GameDatabase.h>

Inheritance diagram for core::GameDatabase:
[legend]
Collaboration diagram for core::GameDatabase:
[legend]

Public Member Functions

 GameDatabase ()
 
bool initFromDBD (const std::string &dbdDir, const std::string &buildVersion)
 
bool initFromDBD (const std::string &dbdDir, const std::string &buildVersion, const std::vector< std::string > &tableNames)
 
void setFastMode ()
 
void setCachePath (const std::string &path)
 
void setDbdBaseUrl (const std::string &url)
 
void setManifestUrl (const std::string &url)
 
bool downloadAndParseManifest ()
 
int getFileDataIdForTable (const std::string &tableName) const
 
virtual ~GameDatabase ()
 
virtual core::TableStructurecreateTableStructure ()=0
 
virtual core::FieldStructurecreateFieldStructure ()=0
 
virtual void readSpecificTableAttributesFromDBD (const core::DBDVersionDef &, core::TableStructure *)=0
 
virtual void readSpecificFieldAttributesFromDBD (const core::DBDVersionField &, const core::DBDColumnDef &, core::FieldStructure *)=0
 
virtual void setFieldPos (core::FieldStructure *, int pos)=0
 
virtual std::string getLayoutHashForTable (const std::string &tableName)
 

Protected Member Functions

core::TableStructurebuildTableStructure (const std::string &tableName)
 

Private Attributes

std::string m_dbdDir
 
core::DBDBuild m_build
 
bool m_fastMode
 
std::string m_cachePath
 
std::string m_dbdBaseUrl
 
std::string m_manifestUrl
 
std::unordered_map< std::string, int > m_tableFileDataIds
 

Detailed Description

Definition at line 49 of file GameDatabase.h.

Constructor & Destructor Documentation

◆ GameDatabase()

core::GameDatabase::GameDatabase ( )

Definition at line 22 of file GameDatabase.cpp.

◆ ~GameDatabase()

core::GameDatabase::~GameDatabase ( )
virtual

Definition at line 18 of file GameDatabase.cpp.

Member Function Documentation

◆ buildTableStructure()

core::TableStructure * core::GameDatabase::buildTableStructure ( const std::string &  tableName)
protected

Definition at line 74 of file GameDatabase.cpp.

Here is the call graph for this function:

◆ createFieldStructure()

virtual core::FieldStructure * core::GameDatabase::createFieldStructure ( )
pure virtual

Implemented in wow::WoWDatabase.

◆ createTableStructure()

virtual core::TableStructure * core::GameDatabase::createTableStructure ( )
pure virtual

Implemented in wow::WoWDatabase.

◆ downloadAndParseManifest()

bool core::GameDatabase::downloadAndParseManifest ( )

Definition at line 26 of file GameDatabase.cpp.

Here is the call graph for this function:

◆ getFileDataIdForTable()

int core::GameDatabase::getFileDataIdForTable ( const std::string &  tableName) const

Definition at line 66 of file GameDatabase.cpp.

◆ getLayoutHashForTable()

virtual std::string core::GameDatabase::getLayoutHashForTable ( const std::string &  tableName)
inlinevirtual

Reimplemented in wow::WoWDatabase.

Definition at line 81 of file GameDatabase.h.

◆ initFromDBD() [1/2]

bool core::GameDatabase::initFromDBD ( const std::string &  dbdDir,
const std::string &  buildVersion 
)

Definition at line 181 of file GameDatabase.cpp.

◆ initFromDBD() [2/2]

bool core::GameDatabase::initFromDBD ( const std::string &  dbdDir,
const std::string &  buildVersion,
const std::vector< std::string > &  tableNames 
)

Definition at line 186 of file GameDatabase.cpp.

Here is the call graph for this function:

◆ readSpecificFieldAttributesFromDBD()

virtual void core::GameDatabase::readSpecificFieldAttributesFromDBD ( const core::DBDVersionField ,
const core::DBDColumnDef ,
core::FieldStructure  
)
pure virtual

Implemented in wow::WoWDatabase.

◆ readSpecificTableAttributesFromDBD()

virtual void core::GameDatabase::readSpecificTableAttributesFromDBD ( const core::DBDVersionDef ,
core::TableStructure  
)
pure virtual

Implemented in wow::WoWDatabase.

◆ setCachePath()

void core::GameDatabase::setCachePath ( const std::string &  path)
inline

Definition at line 59 of file GameDatabase.h.

◆ setDbdBaseUrl()

void core::GameDatabase::setDbdBaseUrl ( const std::string &  url)
inline

Definition at line 60 of file GameDatabase.h.

◆ setFastMode()

void core::GameDatabase::setFastMode ( )
inline

Definition at line 58 of file GameDatabase.h.

◆ setFieldPos()

virtual void core::GameDatabase::setFieldPos ( core::FieldStructure ,
int  pos 
)
pure virtual

Implemented in wow::WoWDatabase.

◆ setManifestUrl()

void core::GameDatabase::setManifestUrl ( const std::string &  url)
inline

Definition at line 61 of file GameDatabase.h.

Member Data Documentation

◆ m_build

core::DBDBuild core::GameDatabase::m_build
private

Definition at line 91 of file GameDatabase.h.

◆ m_cachePath

std::string core::GameDatabase::m_cachePath
private

Definition at line 94 of file GameDatabase.h.

◆ m_dbdBaseUrl

std::string core::GameDatabase::m_dbdBaseUrl
private

Definition at line 95 of file GameDatabase.h.

◆ m_dbdDir

std::string core::GameDatabase::m_dbdDir
private

Definition at line 90 of file GameDatabase.h.

◆ m_fastMode

bool core::GameDatabase::m_fastMode
private

Definition at line 93 of file GameDatabase.h.

◆ m_manifestUrl

std::string core::GameDatabase::m_manifestUrl
private

Definition at line 96 of file GameDatabase.h.

◆ m_tableFileDataIds

std::unordered_map<std::string, int> core::GameDatabase::m_tableFileDataIds
private

Definition at line 97 of file GameDatabase.h.


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