|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Abstract base for game data folder backends (CASC, loose files, etc.). More...
#include <GameFolder.h>
Public Member Functions | |
| GameFolder (std::string path) | |
| virtual | ~GameFolder () |
| virtual void | init ()=0 |
| virtual void | initFromListfile (const std::string &file)=0 |
| virtual void | addCustomFiles (const std::string &path, bool bypassOriginalFiles)=0 |
| std::string | getFullPathForFile (const std::string &file) |
| void | getFilesForFolder (std::vector< GameFile * > &fileNames, const std::string &folderPath, const std::string &extension="") |
| void | getFilteredFiles (std::set< GameFile * > &dest, const std::string &filter) |
| GameFile * | getFile (const std::string &filename) |
| virtual GameFile * | getFile (int id)=0 |
| virtual bool | openFile (std::string file, void **result)=0 |
| virtual bool | openFile (int id, void **result)=0 |
| virtual std::string | version ()=0 |
| virtual int | majorVersion ()=0 |
| virtual std::string | locale ()=0 |
| virtual bool | setConfig (GameConfig config)=0 |
| virtual std::vector< GameConfig > | configsFound ()=0 |
| virtual int | lastError ()=0 |
| virtual void | onChildAdded (GameFile *) override |
| virtual void | onChildRemoved (GameFile *) override |
| const std::string & | path () const |
| void | setProgressCallback (ProgressCallback cb) |
Public Member Functions inherited from Container< GameFile > | |
| Container () | |
| virtual | ~Container () |
| virtual bool | addChild (GameFile *child) |
| virtual bool | removeChild (GameFile *child) |
| void | removeAllChildren () |
| int | removeAllChildrenOfType () |
| unsigned int | nbChildren () const |
| bool | findChildComponent (Component *child, bool recursive=false) |
| Component * | getChild (unsigned int index) |
| const Component * | getChild (unsigned int index) const |
| iterator | begin () |
| iterator | end () |
Public Member Functions inherited from Component | |
| Component () | |
| virtual | ~Component () |
| virtual bool | addChild (Component *) |
| Add a child component to this node. | |
| virtual bool | removeChild (Component *) |
| Remove a child component from this node. | |
| void | setParentComponent (Component *) |
| Set the parent of this component. | |
| virtual void | onParentSet (Component *) |
| Called after the parent has been set; override for custom logic. | |
| const Component * | parent () const |
| Get the parent component (const). | |
| Component * | parent () |
| Get the parent component. | |
| template<class DataType > | |
| const DataType * | firstParentOfType () |
| Walk up the parent chain and return the first ancestor of the given type. | |
| void | ref () |
| Increment the reference counter. | |
| void | unref () |
| Decrement the reference counter; deletes this when it reaches zero. | |
| void | setName (const std::string &name) |
| std::string | name () const |
| virtual void | onNameChanged () |
| void | print (int l_depth=0) |
| virtual void | doPrint () |
| void | copy (const Component &component, bool) |
Protected Attributes | |
| ProgressCallback | m_progressCallback |
Private Attributes | |
| std::map< std::string, GameFile * > | m_nameMap |
| std::string | m_path |
Additional Inherited Members | |
Public Types inherited from Container< GameFile > | |
| typedef std::unordered_set< GameFile * >::iterator | iterator |
Abstract base for game data folder backends (CASC, loose files, etc.).
Manages a collection of GameFile children and provides name- and ID-based lookup, filtering, and iteration.
Definition at line 27 of file GameFolder.h.
|
explicit |
Definition at line 6 of file GameFolder.cpp.
|
inlinevirtual |
Definition at line 32 of file GameFolder.h.
|
pure virtual |
Implemented in wow::WoWFolder.
|
pure virtual |
Implemented in wow::WoWFolder.
| GameFile * core::GameFolder::getFile | ( | const std::string & | filename | ) |
|
pure virtual |
Implemented in wow::WoWFolder.
| void core::GameFolder::getFilesForFolder | ( | std::vector< GameFile * > & | fileNames, |
| const std::string & | folderPath, | ||
| const std::string & | extension = "" |
||
| ) |
| void core::GameFolder::getFilteredFiles | ( | std::set< GameFile * > & | dest, |
| const std::string & | filter | ||
| ) |
Definition at line 35 of file GameFolder.cpp.
| std::string core::GameFolder::getFullPathForFile | ( | const std::string & | file | ) |
|
pure virtual |
Implemented in wow::WoWFolder.
|
pure virtual |
Implemented in wow::WoWFolder.
|
pure virtual |
Implemented in wow::WoWFolder.
|
pure virtual |
Implemented in wow::WoWFolder.
|
pure virtual |
Implemented in wow::WoWFolder.
|
overridevirtual |
Reimplemented from Container< GameFile >.
Reimplemented in wow::WoWFolder.
Definition at line 74 of file GameFolder.cpp.
|
overridevirtual |
Reimplemented from Container< GameFile >.
Reimplemented in wow::WoWFolder.
Definition at line 79 of file GameFolder.cpp.
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 64 of file GameFolder.h.
|
pure virtual |
Implemented in wow::WoWFolder.
|
inline |
Definition at line 66 of file GameFolder.h.
|
pure virtual |
Implemented in wow::WoWFolder.
|
private |
Definition at line 72 of file GameFolder.h.
|
private |
Definition at line 73 of file GameFolder.h.
|
protected |
Definition at line 69 of file GameFolder.h.