ReplyHeader.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @file RequestHeader.hpp
  16. *
  17. */
  18. #ifndef REPLYHEADER_HPP
  19. #define REPLYHEADER_HPP
  20. #include <fastrtps/rtps/common/SampleIdentity.h>
  21. #include <fastdds/dds/builtin/common/Types.hpp>
  22. namespace eprosima {
  23. namespace fastcdr {
  24. class Cdr;
  25. } // fastcdr
  26. namespace fastdds {
  27. namespace dds {
  28. namespace rpc {
  29. struct ReplyHeader
  30. {
  31. fastrtps::rtps::SampleIdentity relatedRequestId;
  32. RemoteExceptionCode_t remoteEx;
  33. RTPS_DllAPI static size_t getCdrSerializedSize(
  34. const ReplyHeader& data,
  35. size_t current_alignment = 0);
  36. RTPS_DllAPI void serialize(
  37. eprosima::fastcdr::Cdr &cdr) const;
  38. RTPS_DllAPI void deserialize(
  39. eprosima::fastcdr::Cdr &cdr);
  40. RTPS_DllAPI static bool isKeyDefined()
  41. {
  42. return false;
  43. }
  44. };
  45. } // namespace rpc
  46. } // namespace dds
  47. } // namespace fastdds
  48. } // namespace eprosima
  49. #endif // REPLYHEADER_HPP