2018-01-11 07:56:54 -08:00
|
|
|
#ifndef ALCONFIG_H
|
|
|
|
#define ALCONFIG_H
|
|
|
|
|
2019-06-30 16:15:15 -07:00
|
|
|
#include <string>
|
|
|
|
|
2019-06-30 12:00:10 -07:00
|
|
|
#include "aloptional.h"
|
2018-10-28 17:14:32 -07:00
|
|
|
|
2019-06-10 21:45:33 -07:00
|
|
|
void ReadALConfig();
|
2018-01-11 07:56:54 -08:00
|
|
|
|
2022-04-16 03:53:54 -07:00
|
|
|
bool GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, bool def);
|
2018-01-11 07:56:54 -08:00
|
|
|
|
2019-06-30 16:15:15 -07:00
|
|
|
al::optional<std::string> ConfigValueStr(const char *devName, const char *blockName, const char *keyName);
|
2019-06-30 12:00:10 -07:00
|
|
|
al::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName);
|
2019-06-30 13:04:23 -07:00
|
|
|
al::optional<unsigned int> ConfigValueUInt(const char *devName, const char *blockName, const char *keyName);
|
2019-06-30 16:38:25 -07:00
|
|
|
al::optional<float> ConfigValueFloat(const char *devName, const char *blockName, const char *keyName);
|
|
|
|
al::optional<bool> ConfigValueBool(const char *devName, const char *blockName, const char *keyName);
|
2018-01-11 07:56:54 -08:00
|
|
|
|
|
|
|
#endif /* ALCONFIG_H */
|