[22722] Support interfaces for RPC generated code#5622
Merged
MiguelCompany merged 18 commits intofeature/rpc/mainfrom Feb 10, 2025
Merged
[22722] Support interfaces for RPC generated code#5622MiguelCompany merged 18 commits intofeature/rpc/mainfrom
MiguelCompany merged 18 commits intofeature/rpc/mainfrom
Conversation
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Carlosespicur
approved these changes
Feb 4, 2025
mcheiva
reviewed
Feb 5, 2025
mcheiva
reviewed
Feb 5, 2025
mcheiva
reviewed
Feb 5, 2025
mcheiva
reviewed
Feb 5, 2025
mcheiva
reviewed
Feb 5, 2025
…lledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
…Exception` Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Member
Author
@mcheiva I think I addressed all your comments. Could you re-review? |
mcheiva
approved these changes
Feb 7, 2025
mcheiva
left a comment
There was a problem hiding this comment.
We reviewed your answers to our comments, and it looks good! :)
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
79c9aac to
a3d1b28
Compare
Carlosespicur
suggested changes
Feb 10, 2025
Carlosespicur
approved these changes
Feb 10, 2025
MiguelCompany
added a commit
that referenced
this pull request
Feb 12, 2025
* Refs #22722. Add RpcException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcTimeoutException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcBrokenPipeException class. * Refs #22722. Add RpcOperationError class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for exceptions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcInputFeedCancelledException. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcFuture template. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Rename `RpcInputFeedCancelledException` -> `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. `RpcServerWriter` operations can throw `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientReader` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientWriter` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Avoid DSO export warning on Windows Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for interfaces. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add missing argument on doxygen documentation. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany
added a commit
that referenced
this pull request
Mar 5, 2025
* Refs #22722. Add RpcException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcTimeoutException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcBrokenPipeException class. * Refs #22722. Add RpcOperationError class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for exceptions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcInputFeedCancelledException. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcFuture template. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Rename `RpcInputFeedCancelledException` -> `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. `RpcServerWriter` operations can throw `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientReader` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientWriter` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Avoid DSO export warning on Windows Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for interfaces. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add missing argument on doxygen documentation. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany
added a commit
that referenced
this pull request
Mar 18, 2025
* Refs #22722. Add RpcException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcTimeoutException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcBrokenPipeException class. * Refs #22722. Add RpcOperationError class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for exceptions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcInputFeedCancelledException. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcFuture template. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Rename `RpcInputFeedCancelledException` -> `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. `RpcServerWriter` operations can throw `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientReader` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientWriter` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Avoid DSO export warning on Windows Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for interfaces. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add missing argument on doxygen documentation. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany
added a commit
that referenced
this pull request
Mar 19, 2025
* Support interfaces for RPC generated code (#5622) * Refs #22722. Add RpcException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcTimeoutException class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcBrokenPipeException class. * Refs #22722. Add RpcOperationError class. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for exceptions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientReader template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcServerWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcClientWriter template interface. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcInputFeedCancelledException. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add RpcFuture template. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Rename `RpcInputFeedCancelledException` -> `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. `RpcServerWriter` operations can throw `RpcFeedCancelledException` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientReader` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Improve documentation of `RpcClientWriter` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Avoid DSO export warning on Windows Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add utility include for interfaces. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22722. Add missing argument on doxygen documentation. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Add RPCDDS internal API (#5638) * Refs #22682: Add public interfaces of RPC Entities Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add RequestInfo class Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add ServiceTypeSupport interface Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add Requester/Replier parameter classes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add private headers and implement RPC methods Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Expose Requester/Replier endpoint getters to public API Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add public methods for deleting requester/replier entities Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Allow calling get_statuscondition method on constant entities Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Refactor blackbox tests Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Avoid sample filtering on request topic Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix segFault error due to deleting endpoints manually Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix TCPRequester params Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Enable type() method for const DataReader objects Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add unit tests for Requester/Replier parameters validation Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add unit tests for DomainParticipant public API methods Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix test errors. Add service/participant checks and avoid inconsistent statuses when unregister types methods fail Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Update versions.md Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes. Remove RequesterParams/ReplierParams classes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes. Unify parameters in Requester/Replier take/send methods Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix RequesterImpl::send_request related_sample_identity assignment Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix typos Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Uncrustify Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Avoid creating unnecesary RequestReplyContentFilter instances Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Add suggested changes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes. Add return_load method to Requester/Replier public API Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes. Blackbox tests classes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes. Update send_reply signature. Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix blackbox tests Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix notation errors in Requester/Replier Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Fix memory leaks in RequestReplyContentFilterFactory Signed-off-by: Carlosespicur <carlosespicur@proton.me> --------- Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Rename constant to `RPC_STATUS_CODE_OK` Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Add definitions for remote exceptions (#5698) * Refs #22917. Add `RemoteExceptionCode_t` enumeration. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Add `RpcRemomteException`. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Add remote exceptions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Uncrustify. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Add new exceptions to convenience header. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Document where the enumeration comes from. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Add blackbox test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Remove Dll API from exceptions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Add test that captures exceptions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Apply review suggestions. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22917. Fix typo. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Remove unnecessary validations in Requester and Replier QoS (#5710) Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Remove const in DDS endpoints getters Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682: Apply suggested changes Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Refs #22682. Apply suggestions from review. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #22682. Properly apply suggestion. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> Signed-off-by: Carlosespicur <carlosespicur@proton.me> Co-authored-by: Carlos Espinoza Curto <148376273+Carlosespicur@users.noreply.github.com> Co-authored-by: Carlosespicur <carlosespicur@proton.me>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This adds the generic interfaces that the code generated by Fast DDS Gen for RPC interfaces will use.
Contributor Checklist
versions.mdfile (if applicable).Reviewer Checklist