iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
service_hash.hpp
Go to the documentation of this file.
1
// Copyright (c) 2024 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_SERVICE_HASH_HPP
14
#define IOX2_SERVICE_HASH_HPP
15
16
#include "
iox2/internal/iceoryx2.hpp
"
17
18
namespace
iox2
{
20
class
ServiceHash
{
21
public
:
23
static
auto
max_number_of_characters
() -> uint64_t;
24
26
auto
c_str
() const -> const
char
*;
27
28
private:
29
explicit
ServiceHash
(const
iox2
::bb::StaticString<IOX2_SERVICE_HASH_LENGTH>& value);
30
31
template <
ServiceType
>
32
friend class
PortFactoryEvent
;
33
template <
ServiceType
, typename, typename>
34
friend class
PortFactoryPublishSubscribe
;
35
template <
ServiceType
, typename, typename, typename, typename>
36
friend class
PortFactoryRequestResponse
;
37
template <
ServiceType
, typename>
38
friend class
PortFactoryBlackboard
;
39
40
iox2
::bb::StaticString<IOX2_SERVICE_HASH_LENGTH> m_value;
41
};
42
43
}
// namespace iox2
44
45
#endif
iox2::PortFactoryBlackboard
Represents the port factory of a [Service] with [MessagingPattern::Blackboard].
Definition
port_factory_blackboard.hpp:36
iox2::PortFactoryEvent
Represents the port factory of a [Service] with [MessagingPattern::Event].
Definition
port_factory_event.hpp:35
iox2::PortFactoryPublishSubscribe
Definition
port_factory_publish_subscribe.hpp:38
iox2::PortFactoryRequestResponse
Definition
port_factory_request_response.hpp:42
iox2::ServiceHash
Represents the unique if of a [Service].
Definition
service_hash.hpp:20
iox2::ServiceHash::c_str
auto c_str() const -> const char *
Returns the string value of the [ServiceHash].
iox2::ServiceHash::max_number_of_characters
static auto max_number_of_characters() -> uint64_t
Returns the maximum string length of a [ServiceHash].
iceoryx2.hpp
iox2
Definition
active_request.hpp:26
iox2::ServiceType
ServiceType
Definition
service_type.hpp:21
iox2
service_hash.hpp
Generated by
1.9.8