Iguana 0.0.0
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
ConfigFileReader.h
1#pragma once
2
3#include "Object.h"
4#include <deque>
5
6namespace iguana {
7
9 class ConfigFileReader : public Object
10 {
11
12 public:
13
15 ConfigFileReader(std::string_view name = "config");
16
22 static std::string GetConfigInstallationPrefix();
23
26 void AddDirectory(std::string const& dir);
27
30 void AddFile(std::string const& name);
31
34 void PrintDirectories(Logger::Level const level = Logger::info);
35
43 std::string FindFile(std::string const& name);
44
49 static std::string ConvertAlgoNameToConfigName(std::string_view algo_name, std::string_view ext = "yaml");
50
51 protected:
52
54 std::deque<std::string> m_directories;
55
57 std::deque<std::string> m_files;
58 };
59}
Configuration file manager.
static std::string GetConfigInstallationPrefix()
ConfigFileReader(std::string_view name="config")
std::deque< std::string > m_directories
Stack of directories to search for a file.
std::deque< std::string > m_files
Stack of file names to parse.
void PrintDirectories(Logger::Level const level=Logger::info)
void AddDirectory(std::string const &dir)
static std::string ConvertAlgoNameToConfigName(std::string_view algo_name, std::string_view ext="yaml")
void AddFile(std::string const &name)
std::string FindFile(std::string const &name)
A named object with a Logger instance.
Definition Object.h:12
General, top-level namespace for algorithms and infrastructure. For algorithms and bindings,...
Definition Algorithm.h:14