nx_metadata_sdk
1.0
Metadata SDK
nx_kit
src
ini_config_c.h
Go to the documentation of this file.
1
// Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3
#pragma once
4
55
#if !defined(__cplusplus)
56
#include <stdbool.h>
57
#endif // !defined(__cplusplus)
58
59
#if defined(__cplusplus)
60
extern
"C"
{
61
#endif
62
63
#define NX_INI_FLAG(DEFAULT, PARAM, DESCR) bool PARAM
64
#define NX_INI_INT(DEFAULT, PARAM, DESCR) int PARAM
65
#define NX_INI_STRING(DEFAULT, PARAM, DESCR) const char* PARAM
66
#define NX_INI_FLOAT(DEFAULT, PARAM, DESCR) float PARAM
67
68
struct
Ini NX_INI_STRUCT;
//< Ini struct definition: expands using the macros defined above.
69
70
#undef NX_INI_FLAG
71
#undef NX_INI_INT
72
#undef NX_INI_STRING
73
#undef NX_INI_FLOAT
74
75
enum
NxIniOutput { NX_INI_OUTPUT_NONE, NX_INI_OUTPUT_STDOUT, NX_INI_OUTPUT_STDERR };
76
77
#if !defined(NX_KIT_C_API)
78
#define NX_KIT_C_API
79
#endif
80
81
NX_KIT_C_API
extern
struct
Ini
ini
;
//< Declaration of Ini instance global variable.
82
83
// See the documentation of the respective methods of class IniConfig in "ini_config.h".
84
NX_KIT_C_API
bool
nx_ini_isEnabled(
void
);
85
NX_KIT_C_API
void
nx_ini_setOutput(
enum
NxIniOutput output);
86
NX_KIT_C_API
void
nx_ini_reload(
void
);
87
NX_KIT_C_API
const
char
* nx_ini_iniFile(
void
);
88
NX_KIT_C_API
void
nx_ini_setIniFilesDir(
const
char
* value);
89
NX_KIT_C_API
const
char
* nx_ini_iniFilesDir(
void
);
90
NX_KIT_C_API
const
char
* nx_ini_iniFilePath(
void
);
91
92
#if defined(__cplusplus)
93
}
// extern "C"
94
#endif
ini
static TestIni & ini()
Definition:
ini_config_ut.cpp:69
Generated by
1.8.14