2018-05-09 20:48:18 +10:00
|
|
|
#ifndef ALCONFIG_H
|
|
|
|
|
#define ALCONFIG_H
|
|
|
|
|
|
2024-06-30 14:35:57 -05:00
|
|
|
#include <optional>
|
2021-01-26 13:01:35 -06:00
|
|
|
#include <string>
|
2024-06-30 14:35:57 -05:00
|
|
|
#include <string_view>
|
2021-01-26 13:01:35 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
void ReadALConfig();
|
2018-05-09 20:48:18 +10:00
|
|
|
|
2024-06-30 14:35:57 -05:00
|
|
|
bool GetConfigValueBool(const std::string_view devName, const std::string_view blockName,
|
|
|
|
|
const std::string_view keyName, bool def);
|
2018-05-09 20:48:18 +10:00
|
|
|
|
2024-06-30 14:35:57 -05:00
|
|
|
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);
|
2018-05-09 20:48:18 +10:00
|
|
|
|
|
|
|
|
#endif /* ALCONFIG_H */
|