![]() |
OGRE 2.3.3
Object-Oriented Graphics Rendering Engine
|
Provides methods to find out where the Ogre config files are stored and where logs and settings files should be written to. More...
#include <OgreFileSystemLayer.h>
Public Member Functions | |
| FileSystemLayer (const Ogre::String &subdir) | |
| Creates a concrete platform-dependent implementation of FileSystemLayer. | |
| const Ogre::String | getConfigFilePath (Ogre::String filename) const |
| Search for the given config file in the user's home path. | |
| const Ogre::String | getWritablePath (const Ogre::String &filename) const |
| Find a path where the given filename can be written to. | |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info | |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new | |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
| void | setConfigPaths (const Ogre::StringVector &paths) |
| void | setHomePath (const Ogre::String &path) |
Static Public Member Functions | |
| static bool | createDirectory (const Ogre::String &name) |
| Create a directory. | |
| static bool | fileExists (const Ogre::String &path) |
| Test if the given file exists. | |
| static bool | removeDirectory (const Ogre::String &name) |
| Delete a directory. | |
| static bool | removeFile (const Ogre::String &path) |
| Delete a file. | |
| static bool | renameFile (const Ogre::String &oldpath, const Ogre::String &newpath) |
| Rename a file. | |
Provides methods to find out where the Ogre config files are stored and where logs and settings files should be written to.
|
inline |
Creates a concrete platform-dependent implementation of FileSystemLayer.
| subdir | A subdirectory inside the user's path to distinguish between different Ogre releases. |
|
static |
Create a directory.
|
static |
Test if the given file exists.
Referenced by getConfigFilePath().
|
inline |
Search for the given config file in the user's home path.
If it can't be found there, the function falls back to the system-wide install path for Ogre config files. (Usually the same place where the SampleBrowser resides, or a special config path above that path.)
| filename | The config file name (without path) |
References fileExists(), getWritablePath(), and OGRE_BUILD_SUFFIX.
|
inline |
Find a path where the given filename can be written to.
This path will usually be in the user's home directory. This function should be used for any output like logs and graphics settings.
| filename | Name of the file. |
Referenced by getConfigFilePath().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
static |
Delete a directory.
Should be empty
|
static |
Delete a file.
|
static |
Rename a file.
|
inline |
|
inline |