iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
header_request_response.hpp
Go to the documentation of this file.
1
// Copyright (c) 2025 Contributors to the Eclipse Foundation
2
//
3
// See the NOTICE file(s) distributed with this work for additional
4
// information regarding copyright ownership.
5
//
6
// This program and the accompanying materials are made available under the
7
// terms of the Apache Software License 2.0 which is available at
8
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9
// which is available at https://opensource.org/licenses/MIT.
10
//
11
// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13
#ifndef IOX2_HEADER_REQUEST_RESPONSE_HPP
14
#define IOX2_HEADER_REQUEST_RESPONSE_HPP
15
16
#include "
iox2/unique_port_id.hpp
"
17
18
namespace
iox2
{
20
class
RequestHeader
{
21
public
:
22
RequestHeader
(
const
RequestHeader
&) =
delete
;
23
RequestHeader
(
RequestHeader
&& rhs)
noexcept
;
24
auto
operator=
(
const
RequestHeader
&) ->
RequestHeader
& =
delete
;
25
auto
operator=
(
RequestHeader
&& rhs)
noexcept
->
RequestHeader
&;
26
~RequestHeader
();
27
29
auto
client_port_id
() ->
UniqueClientId
;
30
31
private
:
32
template
<ServiceType,
typename
,
typename
,
typename
,
typename
>
33
friend
class
ActiveRequest
;
34
template
<ServiceType,
typename
,
typename
,
typename
,
typename
>
35
friend
class
PendingResponse
;
36
template
<ServiceType,
typename
,
typename
,
typename
,
typename
>
37
friend
class
RequestMut
;
38
39
explicit
RequestHeader
(iox2_request_header_h handle);
40
void
drop();
41
42
iox2_request_header_h m_handle =
nullptr
;
43
};
44
46
class
ResponseHeader
{
47
public
:
48
ResponseHeader
(
const
ResponseHeader
&) =
delete
;
49
ResponseHeader
(
ResponseHeader
&& rhs)
noexcept
;
50
auto
operator=
(
const
ResponseHeader
&) ->
ResponseHeader
& =
delete
;
51
auto
operator=
(
ResponseHeader
&& rhs)
noexcept
->
ResponseHeader
&;
52
~ResponseHeader
();
53
55
auto
server_port_id
() ->
UniqueServerId
;
56
57
private
:
58
template
<ServiceType,
typename
,
typename
>
59
friend
class
Response
;
60
template
<ServiceType,
typename
,
typename
>
61
friend
class
ResponseMut
;
62
63
explicit
ResponseHeader
(iox2_response_header_h handle);
64
void
drop();
65
66
iox2_response_header_h m_handle =
nullptr
;
67
};
68
}
// namespace iox2
69
#endif
iox2::ActiveRequest
Definition
active_request.hpp:36
iox2::PendingResponse
Definition
pending_response.hpp:39
iox2::RequestHeader
Request header used by [MessagingPattern::RequestResponse].
Definition
header_request_response.hpp:20
iox2::RequestHeader::RequestHeader
RequestHeader(const RequestHeader &)=delete
iox2::RequestHeader::client_port_id
auto client_port_id() -> UniqueClientId
Returns the [UniqueClientId] of the source [Client].
iox2::RequestHeader::~RequestHeader
~RequestHeader()
iox2::RequestHeader::RequestHeader
RequestHeader(RequestHeader &&rhs) noexcept
iox2::RequestHeader::operator=
auto operator=(RequestHeader &&rhs) noexcept -> RequestHeader &
iox2::RequestHeader::operator=
auto operator=(const RequestHeader &) -> RequestHeader &=delete
iox2::RequestMut
Definition
request_mut.hpp:38
iox2::ResponseHeader
Response header used by [MessagingPattern::RequestResponse].
Definition
header_request_response.hpp:46
iox2::ResponseHeader::ResponseHeader
ResponseHeader(ResponseHeader &&rhs) noexcept
iox2::ResponseHeader::server_port_id
auto server_port_id() -> UniqueServerId
Returns the [UniqueServerId] of the source [Server].
iox2::ResponseHeader::operator=
auto operator=(const ResponseHeader &) -> ResponseHeader &=delete
iox2::ResponseHeader::operator=
auto operator=(ResponseHeader &&rhs) noexcept -> ResponseHeader &
iox2::ResponseHeader::~ResponseHeader
~ResponseHeader()
iox2::ResponseHeader::ResponseHeader
ResponseHeader(const ResponseHeader &)=delete
iox2::ResponseMut
Definition
response_mut.hpp:38
iox2::Response
Definition
response.hpp:28
iox2::UniqueClientId
The system-wide unique id of a [Client].
Definition
unique_port_id.hpp:127
iox2::UniqueServerId
The system-wide unique id of a [Server].
Definition
unique_port_id.hpp:153
iox2
Definition
active_request.hpp:26
unique_port_id.hpp
iox2
header_request_response.hpp
Generated by
1.9.8