Data structure representing a legacy configuration file.
More...
#include <config.h>
|
| ConfigFile (std::string _filename) |
| Prepares a new legacy configuration file. More...
|
|
std::string | GetString (std::string option) |
| Retrieves a string option from a configuration file. More...
|
|
bool | GetBoolean (std::string option) |
| Retrieves a boolean option from a configuration file. More...
|
|
int | GetInt (std::string option) |
| Retrieves an integer option from a configuration file. More...
|
|
float | GetFloat (std::string option) |
| Retrieves a float option from a configuration file. More...
|
|
Data structure representing a legacy configuration file.
- Deprecated:
- Only for legacy compatiability. Will be removed soon.
◆ ConfigFile()
Blam::Config::ConfigFile::ConfigFile |
( |
std::string |
_filename | ) |
|
Prepares a new legacy configuration file.
- Parameters
-
_filename | - The new configuration filename. |
- Deprecated:
- Only for legacy compatiability. Will be removed soon.
◆ GetBoolean()
bool Blam::Config::ConfigFile::GetBoolean |
( |
std::string |
option | ) |
|
Retrieves a boolean option from a configuration file.
- Parameters
-
option | - The name of the option. |
- Returns
- The boolean value of the option.
- Deprecated:
- Only for legacy compatiability. Will be removed soon.
◆ GetFloat()
float Blam::Config::ConfigFile::GetFloat |
( |
std::string |
option | ) |
|
Retrieves a float option from a configuration file.
- Parameters
-
option | - The name of the option. |
- Returns
- The float value of the option.
- Deprecated:
- Only for legacy compatiability. Will be removed soon.
◆ GetInt()
int Blam::Config::ConfigFile::GetInt |
( |
std::string |
option | ) |
|
Retrieves an integer option from a configuration file.
- Parameters
-
option | - The name of the option. |
- Returns
- The integer value of the option.
- Deprecated:
- Only for legacy compatiability. Will be removed soon.
◆ GetString()
std::string Blam::Config::ConfigFile::GetString |
( |
std::string |
option | ) |
|
Retrieves a string option from a configuration file.
- Parameters
-
option | - The name of the option. |
- Returns
- The string value of the option.
- Deprecated:
- Only for legacy compatiability. Will be removed soon.
◆ filename
std::string Blam::Config::ConfigFile::filename |
The legacy configuration file name.
The documentation for this struct was generated from the following files: