2021-04-28 12:43:51 +08:00
|
|
|
#ifndef ALCONFIG_H
|
|
|
|
#define ALCONFIG_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "aloptional.h"
|
|
|
|
|
|
|
|
void ReadALConfig();
|
|
|
|
|
2022-04-25 12:02:45 +08:00
|
|
|
bool GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, bool def);
|
2021-04-28 12:43:51 +08:00
|
|
|
|
|
|
|
al::optional<std::string> ConfigValueStr(const char *devName, const char *blockName, const char *keyName);
|
|
|
|
al::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName);
|
|
|
|
al::optional<unsigned int> ConfigValueUInt(const char *devName, const char *blockName, const char *keyName);
|
|
|
|
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);
|
|
|
|
|
|
|
|
#endif /* ALCONFIG_H */
|