Elaztek Developer Hub
Blamite Game Engine - blam!  00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
Blam::Settings::Paths Namespace Reference

Namespace containing functions for fetching full paths from configuration files. More...

Functions

BLAM std::string GetDefaultEngineDataPath (BlamEngineDataFolder folder)
 Retrieves a default value of a given engine data directory. More...
 
BLAM std::string GetDefaultUserDataPath (BlamUserDataFolder folder)
 Retrieves a default value of a given user data directory. More...
 
BLAM std::string GetEngineDataPath (BlamEngineDataFolder folder)
 Retrieves the configured value of a given engine directory. More...
 
BLAM std::string GetUserDataPath (BlamUserDataFolder folder)
 Retrieves the configured value of a given user directory. More...
 
BLAM BlamUserDataFolder GetUserDataFolderFromString (std::string folder)
 Attempts to convert a string to the equivalent user data folder. More...
 
BLAM BlamEngineDataFolder GetEngineDataFolderFromString (std::string folder)
 Attempts to convert a string to the equivalent engine data folder. More...
 

Detailed Description

Namespace containing functions for fetching full paths from configuration files.

Function Documentation

◆ GetDefaultEngineDataPath()

std::string Blam::Settings::Paths::GetDefaultEngineDataPath ( BlamEngineDataFolder  folder)

Retrieves a default value of a given engine data directory.

Should generally not be used as most paths are configurable, and those paths should be used instead.

Parameters
folder- The engine data folder to retrieve the path for.
Returns
The default path for the specified engine folder.

◆ GetDefaultUserDataPath()

std::string Blam::Settings::Paths::GetDefaultUserDataPath ( BlamUserDataFolder  folder)

Retrieves a default value of a given user data directory.

Should generally not be used as most paths are configurable, and those paths should be used instead.

Parameters
folder- The user data folder to retrieve the path for.
Returns
The default path for the specified user folder.

◆ GetEngineDataFolderFromString()

BlamEngineDataFolder Blam::Settings::Paths::GetEngineDataFolderFromString ( std::string  folder)

Attempts to convert a string to the equivalent engine data folder.

Parameters
folder- The name of the folder to convert to a BlamEngineDataFolder.
Returns
The appropriate BlamEngineDataFolder value. If no match was found, this will return the default DataRoot folder.

◆ GetEngineDataPath()

std::string Blam::Settings::Paths::GetEngineDataPath ( BlamEngineDataFolder  folder)

Retrieves the configured value of a given engine directory.

Parameters
folder- The engine data folder to retrieve the path for.
Returns
The path to the specified engine folder.

◆ GetUserDataFolderFromString()

BlamUserDataFolder Blam::Settings::Paths::GetUserDataFolderFromString ( std::string  folder)

Attempts to convert a string to the equivalent user data folder.

Parameters
folder- The name of the folder to convert to a BlamUserDataFolder.
Returns
The appropriate BlamUserDataFolder value. If no match was found, this will return the default DataRoot folder.

◆ GetUserDataPath()

std::string Blam::Settings::Paths::GetUserDataPath ( BlamUserDataFolder  folder)

Retrieves the configured value of a given user directory.

Parameters
folder- The user data folder to retrieve the path for.
Returns
The path to the specified user folder.