aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alconfig.h
blob: 1eb44405bcae6cd78533bf347c70db4eece113c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ALCONFIG_H
#define ALCONFIG_H

#include <optional>
#include <string>


void ReadALConfig();

bool GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, bool def);

std::optional<std::string> ConfigValueStr(const char *devName, const char *blockName, const char *keyName);
std::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName);
std::optional<unsigned int> ConfigValueUInt(const char *devName, const char *blockName, const char *keyName);
std::optional<float> ConfigValueFloat(const char *devName, const char *blockName, const char *keyName);
std::optional<bool> ConfigValueBool(const char *devName, const char *blockName, const char *keyName);

#endif /* ALCONFIG_H */