alconfig.h 996 B

12345678910111213141516171819202122232425
  1. #ifndef ALCONFIG_H
  2. #define ALCONFIG_H
  3. #include <optional>
  4. #include <string>
  5. #include <string_view>
  6. void ReadALConfig();
  7. bool GetConfigValueBool(const std::string_view devName, const std::string_view blockName,
  8. const std::string_view keyName, bool def);
  9. std::optional<std::string> ConfigValueStr(const std::string_view devName,
  10. const std::string_view blockName, const std::string_view keyName);
  11. std::optional<int> ConfigValueInt(const std::string_view devName, const std::string_view blockName,
  12. const std::string_view keyName);
  13. std::optional<unsigned int> ConfigValueUInt(const std::string_view devName,
  14. const std::string_view blockName, const std::string_view keyName);
  15. std::optional<float> ConfigValueFloat(const std::string_view devName,
  16. const std::string_view blockName, const std::string_view keyName);
  17. std::optional<bool> ConfigValueBool(const std::string_view devName,
  18. const std::string_view blockName, const std::string_view keyName);
  19. #endif /* ALCONFIG_H */