iceoryx
2
C++ Bindings
Loading...
Searching...
No Matches
path.hpp
Go to the documentation of this file.
1
// Copyright (c) 2023 by Apex.AI Inc. All rights reserved.
2
// Copyright (c) 2025 Contributors to the Eclipse Foundation
3
//
4
// See the NOTICE file(s) distributed with this work for additional
5
// information regarding copyright ownership.
6
//
7
// This program and the accompanying materials are made available under the
8
// terms of the Apache Software License 2.0 which is available at
9
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
10
// which is available at https://opensource.org/licenses/MIT.
11
//
12
// SPDX-License-Identifier: Apache-2.0 OR MIT
13
14
#ifndef IOX2_BB_PATH_HPP
15
#define IOX2_BB_PATH_HPP
16
17
#include "
iox2/bb/detail/attributes.hpp
"
18
#include "
iox2/bb/file_path.hpp
"
19
#include "
iox2/bb/semantic_string.hpp
"
20
21
namespace
iox2
{
22
namespace
bb
{
23
namespace
detail
{
24
inline
auto
path_does_contain_invalid_content
(
25
const
bb::StaticString<platform::IOX2_MAX_PATH_LENGTH>
& value
IOX2_MAYBE_UNUSED
)
noexcept
->
bool
{
26
return
false
;
27
}
28
}
// namespace detail
29
31
class
Path
:
public
SemanticString
<Path,
32
platform::IOX2_MAX_PATH_LENGTH,
33
detail::path_does_contain_invalid_content,
34
detail::file_path_does_contain_invalid_characters> {
35
using
Parent =
SemanticString
<
Path
,
36
platform::IOX2_MAX_PATH_LENGTH
,
37
detail::path_does_contain_invalid_content
,
38
detail::file_path_does_contain_invalid_characters
>;
39
using
Parent::Parent;
40
};
41
}
// namespace bb
42
}
// namespace iox2
43
44
#endif
// IOX2_BB_PATH_HPP
attributes.hpp
IOX2_MAYBE_UNUSED
#define IOX2_MAYBE_UNUSED
IOX2_MAYBE_UNUSED adds the [[gnu::unused]] attribute when it is available for the current compiler or...
Definition
attributes.hpp:84
iox2::bb::Path
Represents a path to a file or a directory.
Definition
path.hpp:34
iox2::bb::SemanticString< Path, platform::IOX2_MAX_PATH_LENGTH, detail::path_does_contain_invalid_content, detail::file_path_does_contain_invalid_characters >::SemanticString
SemanticString(const bb::StaticString< N > &value) noexcept
iox2::bb::StaticString
Definition
static_string.hpp:81
file_path.hpp
iox2::bb::detail
Definition
attributes.hpp:19
iox2::bb::detail::path_does_contain_invalid_content
auto path_does_contain_invalid_content(const bb::StaticString< platform::IOX2_MAX_PATH_LENGTH > &value IOX2_MAYBE_UNUSED) noexcept -> bool
Definition
path.hpp:24
iox2::bb::detail::file_path_does_contain_invalid_characters
auto file_path_does_contain_invalid_characters(const bb::StaticString< platform::IOX2_MAX_PATH_LENGTH > &value) noexcept -> bool
Definition
file_path.hpp:54
iox2::bb::platform::IOX2_MAX_PATH_LENGTH
constexpr uint64_t IOX2_MAX_PATH_LENGTH
Definition
file_path.hpp:27
iox2::bb
Definition
enum_translation.hpp:56
iox2
Definition
active_request.hpp:31
semantic_string.hpp
iox2
bb
path.hpp
Generated by
1.15.0