-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[22317] Service feature implementation on CPP #63
base: test/service_node_listener
Are you sure you want to change the base?
Conversation
61eac3f
to
e4d1e33
Compare
e4d1e33
to
233010d
Compare
233010d
to
eea063a
Compare
@@ -0,0 +1,164 @@ | |||
// Copyright 2023 Proyectos y Sistemas de Mantenimiento SL (eProsima). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Copyright 2023 Proyectos y Sistemas de Mantenimiento SL (eProsima). | |
// Copyright 2025 Proyectos y Sistemas de Mantenimiento SL (eProsima). |
matched_ = status.current_count; | ||
std::cout << "Subscriber matched." << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing, and pls remove the std::cout
Applies elsewhere
// Non-valid option | ||
else | ||
{ | ||
std::cout << status.current_count_change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a EPROSIMA_LOG_ERROR
if so
types::ResponseType res; | ||
res = in; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these lines are not needed. Would apply in the OrchestratorNode too
|
||
{ | ||
std::lock_guard<std::mutex> lock(this->mtx_); | ||
this->res_ = res; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not so intutitive that the new operator =
in RequestType
and ResponseType
takes a RequestTypeImpl*
or ResponseTypeImpl*
. It should take a RequestTypeImpl
(not a pointer) . Please, change that and this line should be
this->res_ = *sample_in
Same suggestion applies for the OrchestratorNode
Signed-off-by: Javier Gil Aviles <[email protected]>
Signed-off-by: Javier Gil Aviles <[email protected]>
eea063a
to
fe4b668
Compare
Signed-off-by: Javier Gil Aviles <[email protected]>
27d80e6
to
0cd2a24
Compare
This PR implements all filea needed for the feature service on sustainml_cpp.
Depend on the PR #62