13#include <unordered_map>
43 std::string
get(
const std::string& key,
const std::string& defaultValue =
"")
const;
50 bool has(
const std::string& key)
const;
59 std::string envFilePath;
60 std::unordered_map<std::string, std::string> config;
63 std::string findEnvFile();
std::string get(const std::string &key, const std::string &defaultValue="") const
Get a configuration value.
static ConfigLoader & getInstance()
Get the singleton instance of ConfigLoader.
bool has(const std::string &key) const
Check if a key exists in the configuration.
ConfigLoader(const std::string &customPath)
Construct a ConfigLoader with a custom .env file path.
ConfigLoader()
Construct a ConfigLoader with default .env file locations.
Framework Namespace.
Definition agent.h:18