-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test on RequestReplyListener for all Nodes
Signed-off-by: Javier Gil Aviles <[email protected]>
- Loading branch information
Showing
22 changed files
with
1,060 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
sustainml_cpp/include/sustainml_cpp/core/RequestReplyListener.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright 2023 Proyectos y Sistemas de Mantenimiento SL (eProsima). | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
/** | ||
* @file RequestReplyListener.hpp | ||
*/ | ||
|
||
#ifndef SUSTAINMLCPP_CORE_REQUESTREPLEIR_HPP | ||
#define SUSTAINMLCPP_CORE_REQUESTREPLEIR_HPP | ||
|
||
#include <sustainml_cpp/types/types.hpp> | ||
|
||
namespace sustainml { | ||
namespace core { | ||
|
||
/** | ||
* @brief This class implement a virtual function for the configuration of each node. | ||
* Each node will need to inherit it and implement their own. | ||
* End user to implement specific callbacks to certain actions. | ||
* | ||
*/ | ||
class RequestReplyListener{ | ||
|
||
public: | ||
|
||
/** | ||
* @brief Constructor | ||
*/ | ||
RequestReplyListener() | ||
{ | ||
} | ||
|
||
/** | ||
* @brief Destructor | ||
*/ | ||
~RequestReplyListener() | ||
{ | ||
} | ||
|
||
/** | ||
* Virtual method to be called when a configuration request is received. | ||
* | ||
* @param req The request message | ||
* @param res The response message to send | ||
*/ | ||
virtual void on_configuration_request( | ||
types::RequestType& req, | ||
types::ResponseType& res) | ||
{ | ||
} | ||
|
||
}; | ||
|
||
} // namespace core | ||
} // namespace sustainml | ||
|
||
#endif // SUSTAINMLCPP_CORE_REQUESTREPLEIR_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.