#include <H3D/INIFile.h>
#include <fstream>
Go to the source code of this file.
Defines |
| #define | GET4(ENV, GROUP, VAR, DEFAULT) |
| #define | GET_ENV_INI_DEFAULT(ENV, PATH, GROUP, VAR, DEFAULT) |
| #define | GET_INT(GROUP, VAR, DEFAULT) |
| #define | GET_BOOL(GROUP, VAR, DEFAULT) |
Functions |
| string | GET_ENV_INI_DEFAULT_FILE (INIFile &ini_file, const string &ENV, const string &DISPLAY_PATH, const string &COMMON_PATH, const string &GROUP, const string &VAR) |
Detailed Description
Based on H3DViewer's Envini.h file, found at https://www.h3dapi.org:8090/H3DAPI/trunk/H3DAPI/H3DViewer/src/Envini.h
Define Documentation
| #define GET4 |
( |
|
ENV, |
|
|
|
GROUP, |
|
|
|
VAR, |
|
|
|
DEFAULT | |
|
) |
| | |
Value:( getenv(ENV) ? \
string(getenv(ENV)) : \
( ini_file.hasOption(GROUP,VAR) ? \
ini_file.get( GROUP, VAR ) : \
DEFAULT ) )
| #define GET_BOOL |
( |
|
GROUP, |
|
|
|
VAR, |
|
|
|
DEFAULT | |
|
) |
| | |
Value:( ini_file.hasOption(GROUP,VAR) ? \
ini_file.getBoolean( GROUP, VAR ) : \
DEFAULT )
| #define GET_ENV_INI_DEFAULT |
( |
|
ENV, |
|
|
|
PATH, |
|
|
|
GROUP, |
|
|
|
VAR, |
|
|
|
DEFAULT | |
|
) |
| | |
Value:( getenv(ENV) ? \
string(getenv(ENV)) : \
( ini_file.hasOption(GROUP,VAR) ? \
PATH + ini_file.get( GROUP, VAR ) : \
DEFAULT ) )
| #define GET_INT |
( |
|
GROUP, |
|
|
|
VAR, |
|
|
|
DEFAULT | |
|
) |
| | |
Value:( ini_file.hasOption(GROUP,VAR) ? \
atoi(ini_file.get( GROUP, VAR ).c_str()) : \
DEFAULT )
Function Documentation
| string GET_ENV_INI_DEFAULT_FILE |
( |
INIFile & |
ini_file, |
|
|
const string & |
ENV, |
|
|
const string & |
DISPLAY_PATH, |
|
|
const string & |
COMMON_PATH, |
|
|
const string & |
GROUP, |
|
|
const string & |
VAR | |
|
) |
| | [inline] |