diff options
author | Eddy Pedroni <epedroni@pm.me> | 2025-07-23 22:33:05 +0200 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2025-07-23 22:33:05 +0200 |
commit | c5c195ff5318f00d544c0fbceb133abcc4ba7a5a (patch) | |
tree | 1c7a3e646f6eb72d748dd606fe9e8e12175b39bd /daemon/src/config.h | |
parent | 41f95375a65a3f67a75258680d6d8b03bb4d678b (diff) |
MVP
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 + |