Gel2D - The free/open source game creation suite

Static Public Member Functions
gel::GelDir Class Reference

File directory manager. More...

#include <gelDir.h>

List of all members.

Static Public Member Functions

static bool createDir (const GelString &name)
 Creates a directory.
static bool createPath (const GelString &name)
 Creates a directory path.
static bool removeDir (const GelString &name)
 Removes the specified directory.
static bool removePath (const GelString &name)
 Removes the specified directory path.
static bool setCurDir (const GelString &name)
 Changes the current working directory.
static GelString getCurDir ()
 Gets the current working directory.
static GelString getAppDir ()
 Gets the directory containing the application executable.
static GelString getAppFilePath ()
 Gets the path of the application executable.
static GelString getAppFileName ()
 Gets the filename of the application executable.

Detailed Description

File directory manager.


Member Function Documentation

static bool gel::GelDir::createDir ( const GelString name) [static]

Creates a directory.

Parameters:
name: The name of the directory to create.
Returns:
True if the operation was successful, else false.
static bool gel::GelDir::createPath ( const GelString name) [static]

Creates a directory path.

This function will also create all parent directories necessary to create the requested directory.

Parameters:
name: The name of the directory to create.
Returns:
True if the operation was successful, else false.
static bool gel::GelDir::removeDir ( const GelString name) [static]

Removes the specified directory.

Parameters:
name: The directory to remove.
Returns:
True if the operation was successful, else false.
static bool gel::GelDir::removePath ( const GelString name) [static]

Removes the specified directory path.

Parameters:
name: The directory path to remove.
Returns:
True if the operation was successful, else false.
static bool gel::GelDir::setCurDir ( const GelString name) [static]

Changes the current working directory.

Parameters:
name: The directory.
Returns:
True if the operation was successful, else false.
static GelString gel::GelDir::getCurDir ( ) [static]

Gets the current working directory.

Returns:
The current working directory.
static GelString gel::GelDir::getAppDir ( ) [static]

Gets the directory containing the application executable.

Returns:
The directory containing the application executable.
static GelString gel::GelDir::getAppFilePath ( ) [static]

Gets the path of the application executable.

Returns:
The path of the application executable.
static GelString gel::GelDir::getAppFileName ( ) [static]

Gets the filename of the application executable.

Returns:
The filename of the application executable.

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