iceoryx2
C++ Language 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
18#include "iox2/bb/file_path.hpp"
20
21namespace iox2 {
22namespace bb {
23namespace detail {
26 return false;
27}
28} // namespace detail
29
31class 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> {
39 using Parent::Parent;
40};
41} // namespace bb
42} // namespace iox2
43
44#endif // IOX2_BB_PATH_HPP
#define IOX2_MAYBE_UNUSED
IOX2_MAYBE_UNUSED adds the [[gnu::unused]] attribute when it is available for the current compiler or...
Represents a path to a file or a directory.
Definition path.hpp:34
The SemanticString is a string which has an inner syntax and restrictions to valid 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
auto file_path_does_contain_invalid_characters(const bb::StaticString< platform::IOX2_MAX_PATH_LENGTH > &value) noexcept -> bool
Definition file_path.hpp:54
constexpr uint64_t IOX2_MAX_PATH_LENGTH
Definition file_path.hpp:27