Skip to content

Commit

Permalink
Improve decoupling
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 23, 2025
1 parent fc9154c commit 866a512
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cpp/command/command_dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
#include "command_dispatcher.h"
#include <fstream>
#include "command_context.h"
#include "command_executor.h"
#include "command_image_support.h"
#include "command_response.h"
#include "controllers/controller_factory.h"
#include "protobuf/protobuf_util.h"
#include "base/property_handler.h"
#include "shared/s2p_exceptions.h"
Expand Down
11 changes: 10 additions & 1 deletion cpp/command/command_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@

#pragma once

#include "command_executor.h"
#include <spdlog/spdlog.h>
#include "shared/s2p_defs.h"
#include "generated/s2p_interface.pb.h"

class CommandContext;
class CommandExecutor;
class ControllerFactory;

using namespace spdlog;
using namespace s2p_interface;

class CommandDispatcher
{
Expand Down
2 changes: 1 addition & 1 deletion cpp/s2p/s2p_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

#include <filesystem>
#include "command/command_dispatcher.h"
#include "command/command_executor.h"
#include "base/property_handler.h"
#include "buses/bus.h"
#include "s2p_thread.h"

using namespace filesystem;
using namespace s2p_interface;

class S2p
{
Expand Down

0 comments on commit 866a512

Please sign in to comment.