|
iceoryx2
C++ Language Bindings
|
Classes | |
| struct | ExtractIntoType |
| Helper struct to get the actual destination type 'T' for 'into' with an additional indirection like 'into<Lossy<T>>'. More... | |
| struct | ExtractIntoType< Lossy< T > > |
| Helper struct to get the actual destination type 'T' for 'into<Lossy<T>>'. More... | |
| class | RawByteStorage |
| struct | SourceLocation |
| class | StaticFunction |
| class | StaticFunction< Capacity, Signature< ReturnType, Args... > > |
| A static alternative of std::function which is fixed size. More... | |
Typedefs | |
| template<typename ReturnType , typename... Args> | |
| using | Signature = ReturnType(Args...) |
| template<uint64_t N> | |
| using | CharArray = char[N] |
Enumerations | |
| enum class | RelativePathComponents : uint8_t { Reject , Accept } |
Functions | |
| template<typename T > | |
| void | iox2_discard_result_impl (T &&) noexcept |
| template<uint64_t StringCapacity> | |
| auto | is_valid_path_entry (const bb::StaticString< StringCapacity > &name, RelativePathComponents relative_path_components) noexcept -> bool |
| checks if the given string is a valid path entry. A path entry is the string between two path separators. | |
| template<uint64_t StringCapacity> | |
| auto | is_valid_file_name (const bb::StaticString< StringCapacity > &name) noexcept -> bool |
| checks if the given string is a valid filename. It must fulfill the requirements of a valid path entry (see, isValidPathEntry) and is not allowed to contain relative path components | |
| template<uint64_t StringCapacity> | |
| auto | does_end_with_path_separator (const bb::StaticString< StringCapacity > &name) noexcept -> bool |
| returns true if the provided name ends with a path separator, otherwise false | |
| template<uint64_t StringCapacity> | |
| auto | is_valid_path_to_file (const StaticString< StringCapacity > &name) noexcept -> bool |
| verifies if the given string is a valid path to a file | |
| template<uint64_t StringCapacity> | |
| auto | is_valid_path_to_directory (const StaticString< StringCapacity > &name) noexcept -> bool |
| returns true if the provided name is a valid path, otherwise false | |
| template<uint64_t Capacity, typename T > | |
| void | swap (StaticFunction< Capacity, T > &left, StaticFunction< Capacity, T > &right) noexcept |
| swap two static functions | |
| template<uint64_t N> | |
| auto | get_size (const StaticString< N > &data) -> uint64_t |
| template<uint64_t N> | |
| auto | get_size (const CharArray< N > &data) -> uint64_t |
| template<uint64_t N> | |
| auto | get_data (const StaticString< N > &data) -> const char * |
| template<uint64_t N> | |
| auto | get_data (const CharArray< N > &data) -> const char * |
| auto | file_name_does_contain_invalid_characters (const bb::StaticString< platform::IOX2_MAX_FILENAME_LENGTH > &value) noexcept -> bool |
| auto | file_name_does_contain_invalid_content (const bb::StaticString< platform::IOX2_MAX_FILENAME_LENGTH > &value) noexcept -> bool |
| auto | file_path_does_contain_invalid_characters (const bb::StaticString< platform::IOX2_MAX_PATH_LENGTH > &value) noexcept -> bool |
| auto | file_path_does_contain_invalid_content (const bb::StaticString< platform::IOX2_MAX_PATH_LENGTH > &value) noexcept -> bool |
| auto | path_does_contain_invalid_content (const bb::StaticString< platform::IOX2_MAX_PATH_LENGTH > &value IOX2_MAYBE_UNUSED) noexcept -> bool |
Variables | |
| constexpr char | ASCII_A { 'a' } |
| constexpr char | ASCII_Z { 'z' } |
| constexpr char | ASCII_CAPITAL_A { 'A' } |
| constexpr char | ASCII_CAPITAL_Z { 'Z' } |
| constexpr char | ASCII_0 { '0' } |
| constexpr char | ASCII_9 { '9' } |
| constexpr char | ASCII_DASH { '-' } |
| constexpr char | ASCII_DOT { '.' } |
| constexpr char | ASCII_COLON { ':' } |
| constexpr char | ASCII_UNDERSCORE { '_' } |
| using iox2::bb::detail::CharArray = typedef char[N] |
Definition at line 28 of file string_internal.hpp.
| using iox2::bb::detail::Signature = typedef ReturnType(Args...) |
Definition at line 27 of file static_function.hpp.
|
strong |
| Enumerator | |
|---|---|
| Reject | |
| Accept | |
Definition at line 50 of file path_and_file_verifier.hpp.
|
inlinenoexcept |
returns true if the provided name ends with a path separator, otherwise false
| [in] | name | the string which may contain a path separator at the end |
Definition at line 222 of file path_and_file_verifier.hpp.
References iox2::bb::platform::IOX2_PATH_SEPARATORS.
Referenced by is_valid_path_to_file().
|
inlinenoexcept |
Definition at line 53 of file file_name.hpp.
References ASCII_0, ASCII_9, ASCII_A, ASCII_CAPITAL_A, ASCII_CAPITAL_Z, ASCII_COLON, ASCII_DASH, ASCII_DOT, ASCII_UNDERSCORE, and ASCII_Z.
|
inlinenoexcept |
Definition at line 72 of file file_name.hpp.
|
inlinenoexcept |
Definition at line 54 of file file_path.hpp.
References ASCII_0, ASCII_9, ASCII_A, ASCII_CAPITAL_A, ASCII_CAPITAL_Z, ASCII_COLON, ASCII_DASH, ASCII_DOT, ASCII_UNDERSCORE, ASCII_Z, and iox2::bb::platform::IOX2_PATH_SEPARATORS.
|
inlinenoexcept |
Definition at line 83 of file file_path.hpp.
References is_valid_path_to_file().
| auto iox2::bb::detail::get_data | ( | const CharArray< N > & | data | ) | -> const char* |
Definition at line 46 of file string_internal.hpp.
| auto iox2::bb::detail::get_data | ( | const StaticString< N > & | data | ) | -> const char* |
Definition at line 41 of file string_internal.hpp.
| auto iox2::bb::detail::get_size | ( | const CharArray< N > & | data | ) | -> uint64_t |
Definition at line 36 of file string_internal.hpp.
| auto iox2::bb::detail::get_size | ( | const StaticString< N > & | data | ) | -> uint64_t |
Definition at line 31 of file string_internal.hpp.
Referenced by iox2::bb::SemanticString< Child, Capacity, DoesContainInvalidContentCall, DoesContainInvalidCharacterCall >::append().
|
inlinenoexcept |
We use this as an alternative to "static_cast<void>(someVar)" to signal the compiler an unused variable. "static_cast" produces an useless-cast warning on gcc and this approach solves it cleanly.
Definition at line 26 of file attributes.hpp.
|
inlinenoexcept |
checks if the given string is a valid filename. It must fulfill the requirements of a valid path entry (see, isValidPathEntry) and is not allowed to contain relative path components
| [in] | name | the string to verify |
Definition at line 132 of file path_and_file_verifier.hpp.
References is_valid_path_entry(), and Reject.
Referenced by is_valid_path_to_directory(), and is_valid_path_to_file().
|
inlinenoexcept |
checks if the given string is a valid path entry. A path entry is the string between two path separators.
Sometimes it is also possible that a certain file character is supported by the filesystem itself but not by the platforms SDK. One example are files which end with a dot like "myFile." which are supported by ntfs but not by the Windows SDK.
| [in] | name | the path entry in question |
| [in] | relativePathComponents | are relative path components are allowed for this path entry |
Definition at line 90 of file path_and_file_verifier.hpp.
References Accept, ASCII_0, ASCII_9, ASCII_A, ASCII_CAPITAL_A, ASCII_CAPITAL_Z, ASCII_COLON, ASCII_DASH, ASCII_DOT, ASCII_UNDERSCORE, ASCII_Z, and iox2::bb::StaticString< N >::from_utf8_unchecked().
Referenced by is_valid_file_name(), and is_valid_path_to_directory().
|
inlinenoexcept |
returns true if the provided name is a valid path, otherwise false
| [in] | name | the string to verify |
Definition at line 173 of file path_and_file_verifier.hpp.
References Accept, iox2::bb::StaticString< N >::from_utf8_unchecked(), iox2::bb::platform::IOX2_PATH_SEPARATORS, is_valid_file_name(), and is_valid_path_entry().
Referenced by is_valid_path_to_file().
|
inlinenoexcept |
verifies if the given string is a valid path to a file
| [in] | name | the string to verify |
Definition at line 142 of file path_and_file_verifier.hpp.
References does_end_with_path_separator(), iox2::bb::platform::IOX2_PATH_SEPARATORS, is_valid_file_name(), and is_valid_path_to_directory().
Referenced by file_path_does_contain_invalid_content().
|
inlinenoexcept |
|
inlinenoexcept |
swap two static functions
| f | the first function to swap with g |
| g | the second function to swap with f |
Definition at line 339 of file static_function.hpp.
References swap().
Referenced by swap().
|
constexpr |
Definition at line 42 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 43 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 38 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 40 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 41 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 46 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 44 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 45 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 47 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().
|
constexpr |
Definition at line 39 of file path_and_file_verifier.hpp.
Referenced by file_name_does_contain_invalid_characters(), file_path_does_contain_invalid_characters(), and is_valid_path_entry().