class Geo GeoFileManager

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

Name

Description

~GeoSingleton()

Destructor clears singleton pointer.

AddToPath(const char *, bool)

Add a directory to the path.

GeoSingleton()

Constructor initialises singleton pointer.

Get()

Returns a pointer to the singleton instance.

IsAvailable()

Returns true if the singleton is available.

PurgePath()

Empty path of all entries.

RemoveFromPath(const char *)

Removes a directory from the path, if it has already been added.

SearchInPath(const char *, Geo::GeoFileString &)

Try to find a file.

Start()

Setup the singleton instance.

Stop()

Release the singleton instance.

Variables

Name

Description

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.



tClass * Geo::GeoSingleton< tClass >::Get