FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
FIFE::DirectoryProvider Class Reference

#include <directoryprovider.h>

Inheritance diagram for FIFE::DirectoryProvider:
Inheritance graph
Collaboration diagram for FIFE::DirectoryProvider:
Collaboration graph

List of all members.

Public Member Functions

virtual bool isReadable (const std::string &path) const
virtual VFSSourcecreateSource (const std::string &path) const
- Public Member Functions inherited from FIFE::VFSSourceProvider
const std::string & getName () const
void setVFS (VFS *vfs)

Detailed Description

Provider for OS directories.

Definition at line 42 of file directoryprovider.h.


Member Function Documentation

FIFE::VFSSource * FIFE::DirectoryProvider::createSource ( const std::string &  path) const
virtual

Create a new instance of a VFSSource initialized with the given directory

Parameters:
filethe directory to open
Returns:
the new VFSSource

Implements FIFE::VFSSourceProvider.

Definition at line 42 of file directoryprovider.cpp.

References isReadable().

bool FIFE::DirectoryProvider::isReadable ( const std::string &  path) const
virtual

Check if a given directory is readable for this VFSSource. Directory sources must be denoted by a trailing '/', otherwise VFS will consider the source to be a file, and unreadable asa a directory.

Parameters:
filethe filename to check
Returns:
true if readable, false otherwise

Implements FIFE::VFSSourceProvider.

Definition at line 38 of file directoryprovider.cpp.

References FIFE::VFS::isDirectory().

Referenced by createSource().

Here is the caller graph for this function:


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