#include <package.h>
Inheritance diagram for Package:


Public Types | |
| enum | FILEFLAG { FILEFLAG_NORMAL = 0x00000000, FILEFLAG_BZIP2_COMPRESSED = 0x00000001 } |
| File flags for package manager. More... | |
Public Member Functions | |
| Package (Directory *pkParent, const std::string &rstrFile, FileManager *pkManager) | |
| virtual | ~Package () |
| File * | GetBaseFile () |
| bool | Parse (bool bRecurse=true) |
| const std::string & | GetName () const |
| const std::string & | GetFullPath () |
| void | AttachNode (Directory *pkDirectory) |
| void | DetachNode (Directory *pkDirectory) |
| File * | GetByName (const std::string &rstrName, bool bRecurse=true) |
| Directory * | GetDirectoryByName (const std::string &rstrName) |
| void | GetFiles (std::vector< File * > *pvpkFiles) const |
| const std::vector< Directory * > & | GetDirectories () const |
| Directory * | GetParentDirectory () |
| bool | IsPackage () const |
| bool | IsParsed () const |
| void | PrintHierarchy (int iDepth) |
| void | SetFileManager (FileManager *pkManager) |
| bool | Load (const std::string &rstrFilename, unsigned int uiFlags=0, bool bForceReload=false, bool bSearchFileSystem=false) |
| bool | Load (File *pkFile, unsigned int uiFlags=0, bool bForceReload=false) |
Protected Member Functions | |
| virtual bool | LoadNode (unsigned int uiFlags) |
| void | ReadCluster (Directory *pkDirectory) |
Protected Attributes | |
| HashTable< FileTemplate > * | m_pkFiles |
| std::vector< Directory * > | m_vpkDirectories |
| Directory * | m_pkParent |
| std::string | m_strName |
| std::string | m_strFullPath |
| bool | m_bIsParsed |
| bool | m_bIsPackage |
| File * | m_pkFile |
| bool | m_bLoaded |
| bool | m_bKeepFile |
| FileManager * | m_pkFileManager |
|
|
File flags for package manager.
|
|
||||||||||||||||
|
Open and parse package file. You can also put in a directory in the normal file system and it will be recursivly parsed |
|
|
Deallocate hierarchy |
|
|
Main loader method. Called by LoadableEntity to load object if file was opened successfully
Implements LoadableEntity. |
|
|
Read cluster data from file. Recursive.
|
|
|
Get package file ptr
|
|
|
Parse directory in native file system
|
|
|
|
|
|
|
|
|
Attach a directory
|
|
|
Detach a directory
|
|
||||||||||||
|
Search hierarchy for file
|
|
|
Search hierarchy for directory
|
|
|
Get all files (must be deallocated when finished using)
|
|
|
Get vector of all directories
|
|
|
|
|
|
Query if we are a package or directory
|
|
|
|
|
|
Print hierarchy
|
|
|
Set new file manager object
|
|
||||||||||||||||||||
|
Load resource
|
|
||||||||||||||||
|
Load resource
|
|
|
Files in this directory |
|
|
Subdirectories |
|
|
Parent directory |
|
|
Name of this directory |
|
|
Full path |
|
|
Parsed flag |
|
|
Package flag |
|
|
|
Flag indicating node is loaded |
|
|
Flag to block file deletion on load completion |
|
|
File manager |
1.3.5