This is the documentation for Enlighten.
class Geo GeoFileManager
class Geo::GeoFileManager
└>Geo::GeoSingleton< GeoFileManager >
The file manager deals with locating resources given a path and a filename.
Paths can be relative to the current executable or absolute.
Functions
Name | Description |
|---|---|
Destructor clears singleton pointer. | |
Add a directory to the path. | |
Constructor initialises singleton pointer. | |
Returns a pointer to the singleton instance. | |
Returns true if the singleton is available. | |
Empty path of all entries. | |
Removes a directory from the path, if it has already been added. | |
Try to find a file. | |
Setup the singleton instance. | |
Release the singleton instance. |
Variables
Name | Description |
|---|---|
tClass * m_Singleton = NULL | Pointer to the singleton instance or NULL if not started. |
Geo::GeoSingleton< tClass >::~GeoSingleton
protected: ~GeoSingleton()
Destructor clears singleton pointer.
void Geo::GeoFileManager::AddToPath
public: void AddToPath
(
const char * directory,
bool searchFirst
)
Add a directory to the path.
'searchFirst' specifies whether this directory should be searched before the existing paths, otherwise it will be searched after them.
Geo::GeoSingleton< tClass >::GeoSingleton
protected: GeoSingleton()
Constructor initialises singleton pointer.