The Config struct Speicherung von Konfigurationsdaten.
More...
#include <xconfig.h>
|
| static void | set_current_dir (const std::string &dirname) |
| | set_current_dir setze Namen des aktuellen Datenverzeichnisses More...
|
| |
| static std::string | get_current_dir (bool flag=true) |
| | get_current_dir gebe aktuelles Datenverzeichnis More...
|
| |
| static std::string | get_current_file (const std::string &fname) |
| | get_current_file gebe vollständigen Pfad zu einer Datei More...
|
| |
| static std::string | get_current_file (const char *fname, const char *ext) |
| | get_current_file gebe vollständigen Pfad zu einer Datei kann mit der Compiler-Variablen func genutzt werden More...
|
| |
The Config struct Speicherung von Konfigurationsdaten.
Definition at line 11 of file xconfig.h.
◆ get_current_dir()
| static std::string nmx::settings::Config::get_current_dir |
( |
bool |
flag = true | ) |
|
|
inlinestatic |
get_current_dir gebe aktuelles Datenverzeichnis
- Parameters
-
| flag | wenn false ohne Pfad (optional) |
- Returns
- der Name des aktuelles Datenverzeichnisses
Definition at line 39 of file xconfig.h.
◆ get_current_file() [1/2]
| static std::string nmx::settings::Config::get_current_file |
( |
const std::string & |
fname | ) |
|
|
inlinestatic |
get_current_file gebe vollständigen Pfad zu einer Datei
- Parameters
-
- Returns
- vollständigen Pfad zu einer Datei
Definition at line 48 of file xconfig.h.
◆ get_current_file() [2/2]
| static std::string nmx::settings::Config::get_current_file |
( |
const char * |
fname, |
|
|
const char * |
ext |
|
) |
| |
|
inlinestatic |
get_current_file gebe vollständigen Pfad zu einer Datei kann mit der Compiler-Variablen func genutzt werden
- Parameters
-
| fname | Name der Datei ohne Dateiendung |
| ext | Dateiendung |
- Returns
- vollständigen Pfad zu einer Datei
Definition at line 59 of file xconfig.h.
◆ set_current_dir()
| static void nmx::settings::Config::set_current_dir |
( |
const std::string & |
dirname | ) |
|
|
inlinestatic |
set_current_dir setze Namen des aktuellen Datenverzeichnisses
- Parameters
-
Definition at line 30 of file xconfig.h.
◆ data_directory
| const std::string nmx::settings::Config::data_directory = home_directory + "/data" |
|
inlinestatic |
◆ home_directory
| const std::string nmx::settings::Config::home_directory = "." |
|
inlinestatic |
The documentation for this struct was generated from the following file: