Skip to content

Commit

Permalink
Make the DdsPipeConfiguration required
Browse files Browse the repository at this point in the history
Signed-off-by: tempate <[email protected]>
  • Loading branch information
Tempate committed Oct 24, 2023
1 parent 65d4f1a commit a2cf1d6
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ std::shared_ptr<DdsPipe> create_pipe(
discovery_database,
payload_pool,
participant_database,
thread_pool
);
thread_pool);

return pipe;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ std::shared_ptr<DdsPipe> create_pipe(
discovery_database,
payload_pool,
participant_database,
thread_pool
);
thread_pool);

return pipe;
}

Expand Down
5 changes: 3 additions & 2 deletions fastddsspy_tool/src/cpp/tool/Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Backend::Backend(
ddspipe::core::DdsPipeConfiguration ddspipe_configuration;

pipe_ = std::make_unique<ddspipe::core::DdsPipe>(
ddspipe_configuration,
configuration.ddspipe_configuration,
discovery_database_,
payload_pool_,
participant_database_,
Expand All @@ -80,7 +80,8 @@ Backend::~Backend()
pipe_->disable();
}

utils::ReturnCode Backend::reload_configuration(const yaml::Configuration& new_configuration)
utils::ReturnCode Backend::reload_configuration(
const yaml::Configuration& new_configuration)
{
return pipe_->reload_configuration(new_configuration.ddspipe_configuration);
}
Expand Down
3 changes: 2 additions & 1 deletion fastddsspy_tool/src/cpp/tool/Backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class Backend

~Backend();

utils::ReturnCode reload_configuration(const yaml::Configuration& new_configuration);
utils::ReturnCode reload_configuration(
const yaml::Configuration& new_configuration);

std::shared_ptr<eprosima::spy::participants::SpyModel> model() const noexcept;

Expand Down
3 changes: 2 additions & 1 deletion fastddsspy_tool/src/cpp/tool/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ void Controller::one_shot_run(
run_command_(input_.parse_as_command(args));
}

utils::ReturnCode Controller::reload_configuration(const yaml::Configuration& new_configuration)
utils::ReturnCode Controller::reload_configuration(
const yaml::Configuration& new_configuration)
{
return backend_.reload_configuration(new_configuration);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@
#include <cpp_utils/memory/Heritable.hpp>
#include <cpp_utils/time/time_utils.hpp>

#include <ddspipe_core/configuration/DdsPipeConfiguration.hpp>
#include <ddspipe_core/configuration/IConfiguration.hpp>
#include <ddspipe_core/types/topic/filter/IFilterTopic.hpp>
#include <ddspipe_core/types/topic/dds/DistributedTopic.hpp>
<<<<<<< HEAD
#include <ddspipe_core/configuration/DdsPipeConfiguration.hpp>
#include <ddspipe_core/configuration/IConfiguration.hpp>
=======
>>>>>>> 4c906f4 (Make the DdsPipeConfiguration required)

#include <ddspipe_participants/configuration/SimpleParticipantConfiguration.hpp>
#include <ddspipe_participants/configuration/ParticipantConfiguration.hpp>
Expand All @@ -29,6 +34,8 @@
#include <ddspipe_yaml/YamlReader.hpp>

#include <fastddsspy_participants/configuration/SpyParticipantConfiguration.hpp>
#include <fastddsspy_participants/types/EndpointInfo.hpp>
#include <fastddsspy_participants/types/ParticipantInfo.hpp>

#include <fastddsspy_yaml/library/library_dll.h>

Expand Down
3 changes: 3 additions & 0 deletions fastddsspy_yaml/src/cpp/YamlReaderConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ void Configuration::load_configuration_(
WildcardDdsFilterTopic rpc_request_topic, rpc_response_topic;
rpc_request_topic.topic_name.set_value("rq/*");
rpc_response_topic.topic_name.set_value("rr/*");
<<<<<<< HEAD

=======
>>>>>>> 4c906f4 (Make the DdsPipeConfiguration required)
ddspipe_configuration.blocklist.insert(
utils::Heritable<WildcardDdsFilterTopic>::make_heritable(rpc_request_topic));
ddspipe_configuration.blocklist.insert(
Expand Down

0 comments on commit a2cf1d6

Please sign in to comment.