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
17
18namespace iox2 {
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>
35 template <ServiceType, typename, typename, typename, typename>
37 template <ServiceType, typename>
39
40 iox2::bb::StaticString<IOX2_SERVICE_HASH_LENGTH> m_value;
41};
42
43} // namespace iox2
44
45#endif
Represents the port factory of a [Service] with [MessagingPattern::Blackboard].
Represents the port factory of a [Service] with [MessagingPattern::Event].
Represents the unique if of a [Service].
auto c_str() const -> const char *
Returns the string value of the [ServiceHash].
static auto max_number_of_characters() -> uint64_t
Returns the maximum string length of a [ServiceHash].