ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <base_file_manager.h>

Collaboration diagram for Wintermute::BaseFileManager:

List of all members.

Public Member Functions

bool cleanup ()
bool closeFile (Common::SeekableReadStream *File)
bool hasFile (const Common::String &filename)
int listMatchingPackageMembers (Common::ArchiveMemberList &list, const Common::String &pattern)
int listMatchingFiles (Common::StringArray &list, const Common::String &pattern)
Common::SeekableReadStreamopenFile (const Common::String &filename, bool absPathWarning=true, bool keepTrackOf=true)
Common::WriteStreamopenFileForWrite (const Common::String &filename)
bytereadWholeFile (const Common::String &filename, uint32 *size=nullptr, bool mustExist=true)
uint32 getPackageVersion (const Common::String &filename)
 BaseFileManager (Common::Language lang, bool detectionMode=false)
virtual ~BaseFileManager ()
bool registerPackages (const Common::FSList &fslist)

Static Public Member Functions

static BaseFileManagergetEngineInstance ()

Private Types


Private Member Functions

bool reloadPaths ()
bool initPaths ()
bool addPath (TPathType type, const Common::FSNode &path)
bool registerPackages ()
void initResources ()
Common::SeekableReadStreamopenFileRaw (const Common::String &filename)
Common::WriteStreamopenFileForWriteRaw (const Common::String &filename)
Common::SeekableReadStreamopenPkgFile (const Common::String &filename)
bool registerPackage (Common::FSNode package, const Common::String &filename="", bool searchSignature=false)

Private Attributes

Common::FSList _packagePaths
bool _detectionMode
Common::SearchSet _packages
< Common::SeekableReadStream * > 
Common::Language _language
< Common::String, uint32

Detailed Description

Definition at line 40 of file base_file_manager.h.

Member Enumeration Documentation


Definition at line 59 of file base_file_manager.h.

Constructor & Destructor Documentation

Wintermute::BaseFileManager::BaseFileManager ( Common::Language  lang,
bool  detectionMode = false 

Definition at line 58 of file base_file_manager.cpp.

Wintermute::BaseFileManager::~BaseFileManager (  )  [virtual]

Definition at line 68 of file base_file_manager.cpp.

Member Function Documentation

bool Wintermute::BaseFileManager::addPath ( TPathType  type,
const Common::FSNode path 
) [private]

Definition at line 130 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::cleanup (  ) 

Definition at line 74 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::closeFile ( Common::SeekableReadStream File  ) 

Definition at line 448 of file base_file_manager.cpp.

BaseFileManager * Wintermute::BaseFileManager::getEngineInstance (  )  [static]

Definition at line 515 of file base_file_manager.cpp.

uint32 Wintermute::BaseFileManager::getPackageVersion ( const Common::String filename  ) 

Definition at line 366 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::hasFile ( const Common::String filename  ) 

Definition at line 375 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::initPaths (  )  [private]

Definition at line 159 of file base_file_manager.cpp.

void Wintermute::BaseFileManager::initResources (  )  [private]

Definition at line 333 of file base_file_manager.cpp.

int Wintermute::BaseFileManager::listMatchingFiles ( Common::StringArray list,
const Common::String pattern 

Definition at line 409 of file base_file_manager.cpp.

int Wintermute::BaseFileManager::listMatchingPackageMembers ( Common::ArchiveMemberList list,
const Common::String pattern 

Definition at line 404 of file base_file_manager.cpp.

Common::SeekableReadStream * Wintermute::BaseFileManager::openFile ( const Common::String filename,
bool  absPathWarning = true,
bool  keepTrackOf = true 

Definition at line 422 of file base_file_manager.cpp.

Common::WriteStream * Wintermute::BaseFileManager::openFileForWrite ( const Common::String filename  ) 

Definition at line 437 of file base_file_manager.cpp.

Common::WriteStream * Wintermute::BaseFileManager::openFileForWriteRaw ( const Common::String filename  )  [private]

Definition at line 503 of file base_file_manager.cpp.

Common::SeekableReadStream * Wintermute::BaseFileManager::openFileRaw ( const Common::String filename  )  [private]

Definition at line 461 of file base_file_manager.cpp.

Common::SeekableReadStream * Wintermute::BaseFileManager::openPkgFile ( const Common::String filename  )  [private]

Definition at line 346 of file base_file_manager.cpp.

byte * Wintermute::BaseFileManager::readWholeFile ( const Common::String filename,
uint32 size = nullptr,
bool  mustExist = true 

Definition at line 95 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::registerPackage ( Common::FSNode  package,
const Common::String filename = "",
bool  searchSignature = false 
) [private]

Definition at line 325 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::registerPackages (  )  [private]

Definition at line 195 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::registerPackages ( const Common::FSList fslist  ) 

Definition at line 182 of file base_file_manager.cpp.

bool Wintermute::BaseFileManager::reloadPaths (  )  [private]

Definition at line 150 of file base_file_manager.cpp.

Member Data Documentation

Definition at line 73 of file base_file_manager.h.

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

Generated on Sat Sep 26 2020 05:04:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge