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>
|
| FileSystemLayer (const Ogre::String &subdir) |
| Creates a concrete platform-dependent implementation of FileSystemLayer. More...
|
|
const Ogre::String | getConfigFilePath (Ogre::String filename) const |
| Search for the given config file in the user's home path. More...
|
|
const Ogre::String | getWritablePath (const Ogre::String &filename) const |
| Find a path where the given filename can be written to. More...
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More...
|
|
void * | operator new[] (size_t sz) |
|
void | setConfigPaths (const Ogre::StringVector &paths) |
|
void | setHomePath (const Ogre::String &path) |
|
Provides methods to find out where the Ogre config files are stored and where logs and settings files should be written to.
◆ FileSystemLayer()
Ogre::FileSystemLayer::FileSystemLayer |
( |
const Ogre::String & |
subdir | ) |
|
|
inline |
Creates a concrete platform-dependent implementation of FileSystemLayer.
- Parameters
-
subdir | A subdirectory inside the user's path to distinguish between different Ogre releases. |
◆ createDirectory()
static bool Ogre::FileSystemLayer::createDirectory |
( |
const Ogre::String & |
name | ) |
|
|
static |
◆ fileExists()
static bool Ogre::FileSystemLayer::fileExists |
( |
const Ogre::String & |
path | ) |
|
|
static |
Test if the given file exists.
◆ getConfigFilePath()
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.)
- Parameters
-
filename | The config file name (without path) |
- Returns
- The full path to the config file.
References OGRE_BUILD_SUFFIX.
◆ getWritablePath()
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.
- Parameters
-
filename | Name of the file. |
- Returns
- The full path to a writable location for the given filename.
◆ operator delete() [1/3]
◆ operator delete() [2/3]
◆ operator delete() [3/3]
◆ operator delete[]() [1/2]
◆ operator delete[]() [2/2]
◆ operator new() [1/3]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
operator new, with debug line info
◆ operator new() [2/3]
◆ operator new() [3/3]
◆ operator new[]() [1/2]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
array operator new, with debug line info
◆ operator new[]() [2/2]
◆ removeDirectory()
static bool Ogre::FileSystemLayer::removeDirectory |
( |
const Ogre::String & |
name | ) |
|
|
static |
Delete a directory.
Should be empty
◆ removeFile()
static bool Ogre::FileSystemLayer::removeFile |
( |
const Ogre::String & |
path | ) |
|
|
static |
◆ renameFile()
◆ setConfigPaths()
◆ setHomePath()
void Ogre::FileSystemLayer::setHomePath |
( |
const Ogre::String & |
path | ) |
|
|
inline |
The documentation for this class was generated from the following file: