aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alconfig.h
blob: e7daac28ef93782245375f4ad93259835f2c4b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ALCONFIG_H
#define ALCONFIG_H

#include <optional>
#include <string>
#include <string_view>


void ReadALConfig();

bool GetConfigValueBool(const std::string_view devName, const std::string_view blockName,
    const std::string_view keyName, bool def);

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

#endif /* ALCONFIG_H */