Skip to content

Commit

Permalink
feat: add configuration parser instance to agent class
Browse files Browse the repository at this point in the history
  • Loading branch information
jr0me committed Jul 19, 2024
1 parent 164e5a9 commit ae11476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ add_subdirectory(configuration_parser)

find_package(Boost REQUIRED COMPONENTS asio)

target_link_libraries(agent PRIVATE ${Boost_LIBRARIES})
target_link_libraries(agent PUBLIC ConfigurationParser PRIVATE ${Boost_LIBRARIES})

if(BUILD_TESTS)
add_subdirectory(tests)
Expand Down
2 changes: 2 additions & 0 deletions src/agent/include/agent.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <task_manager.hpp>
#include <configuration_parser.hpp>

#include <queue>
#include <string>
Expand All @@ -15,4 +16,5 @@ class Agent
std::queue<std::string> m_messageQueue;

TaskManager m_taskManager;
configuration::ConfigurationParser m_configurationParser;
};

0 comments on commit ae11476

Please sign in to comment.