From c5c195ff5318f00d544c0fbceb133abcc4ba7a5a Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Wed, 23 Jul 2025 22:33:05 +0200 Subject: MVP --- daemon/src/config.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 daemon/src/config.h (limited to 'daemon/src/config.h') 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 + +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 + -- cgit v1.2.3