Environment manager base architecture implemented
This commit is contained in:
parent
2019e7db41
commit
9f27ad0af3
30 changed files with 1555 additions and 1 deletions
28
env_manager/include/config/config_file_resolver.hpp
Normal file
28
env_manager/include/config/config_file_resolver.hpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#ifndef ENV_MANAGER_CONFIG_CONFIG_FILE_RESOLVER_H_
|
||||
#define ENV_MANAGER_CONFIG_CONFIG_FILE_RESOLVER_H_
|
||||
|
||||
#include "lua_file_resolver.hpp"
|
||||
|
||||
namespace env_manager
|
||||
{
|
||||
namespace config
|
||||
{
|
||||
|
||||
class ConfigurationFileResolver : public FileResolver
|
||||
{
|
||||
public:
|
||||
explicit ConfigurationFileResolver(
|
||||
const std::vector<std::string>& cfg_files_dirs);
|
||||
|
||||
std::string GetPath(const std::string& basename) const;
|
||||
std::string GetContent(const std::string& basename) const;
|
||||
|
||||
private:
|
||||
std::vector<std::string> _config_files_dirs;
|
||||
|
||||
};
|
||||
|
||||
} // namespace config
|
||||
} // namespace env_manager
|
||||
|
||||
#endif // ENV_MANAGER_CONFIG_CONFIG_FILE_RESOLVER_H_
|
Loading…
Add table
Add a link
Reference in a new issue