diff options
Diffstat (limited to 'daemon/src/config.h')
-rw-r--r-- | daemon/src/config.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/daemon/src/config.h b/daemon/src/config.h new file mode 100644 index 0000000..a3ec0af --- /dev/null +++ b/daemon/src/config.h @@ -0,0 +1,33 @@ +#pragma once + +#include "types.h" + +#include "connection_manager.h" + +#include <string> + +namespace midi_router +{ + +class Config_Loader +{ +public: + Config_Loader(std::string url); + + Device_Map const & + get_device_map() const; + + Route_Table const & + compile_route_table(Connection_Manager const & cm); + + void + print_route_table() const; + +private: + std::string m_file_contents; + Device_Map m_device_map {}; + Route_Table m_route_table {}; +}; + +} // namespace midi_router + |