iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
iox2::bb::FileName Class Reference

Represents a single file name. It is not allowed to contain any path elements like "./some_file" or "path/to/file". Just a plain old simple "my_file.bla". More...

#include <file_name.hpp>

Inheritance diagram for iox2::bb::FileName:
iox2::bb::SemanticString< FileName, platform::IOX2_MAX_FILENAME_LENGTH, detail::file_name_does_contain_invalid_content, detail::file_name_does_contain_invalid_characters >

Additional Inherited Members

- Public Member Functions inherited from iox2::bb::SemanticString< FileName, platform::IOX2_MAX_FILENAME_LENGTH, detail::file_name_does_contain_invalid_content, detail::file_name_does_contain_invalid_characters >
constexpr auto size () const noexcept -> uint64_t
 Returns the number of characters.
 
constexpr auto as_string () const noexcept -> const bb::StaticString< Capacity > &
 Returns a const reference to the underlying string. It is const and shall not be modified to guarantee the contract that a SemanticString contains always a valid value.
 
auto append (const T &value) noexcept -> bb::Expected< void, SemanticStringError >
 Appends another string to the SemanticString. If the value contains invalid characters or the result would end up in invalid content it fails.
 
auto insert (uint64_t pos, const T &str, uint64_t count) noexcept -> bb::Expected< void, SemanticStringError >
 Inserts another string into the SemanticString. If the value contains invalid characters or the result would end up in invalid content it fails.
 
auto operator== (const SemanticString &rhs) const noexcept -> bool
 checks if another SemanticString is equal to this string
 
auto operator== (const T &rhs) const noexcept -> bb::RequireStaticStringOrCharArray< T, bool >
 checks if another string or char array is equal to this string
 
auto operator!= (const SemanticString &rhs) const noexcept -> bool
 checks if another SemanticString is not equal to this string
 
auto operator!= (const T &rhs) const noexcept -> bb::RequireStaticStringOrCharArray< T, bool >
 checks if another string or char array is not equal to this string
 
auto operator<= (const SemanticString &rhs) const noexcept -> bool
 checks if another SemanticString is less than or equal this string
 
auto operator<= (const T &rhs) const noexcept -> bb::RequireStaticStringOrCharArray< T, bool >
 checks if another string or char array is less than or equal this string
 
auto operator< (const SemanticString &rhs) const noexcept -> bool
 checks if another SemanticString is less than this string
 
auto operator< (const T &rhs) const noexcept -> bb::RequireStaticStringOrCharArray< T, bool >
 checks if another string or char array is less than this string
 
auto operator>= (const SemanticString &rhs) const noexcept -> bool
 checks if another SemanticString is greater than or equal this string
 
auto operator>= (const T &rhs) const noexcept -> bb::RequireStaticStringOrCharArray< T, bool >
 checks if another string or char array is greater than or equal this string
 
auto operator> (const SemanticString &rhs) const noexcept -> bool
 checks if another SemanticString is greater than this string
 
auto operator> (const T &rhs) const noexcept -> bb::RequireStaticStringOrCharArray< T, bool >
 checks if another string or char array is greater than this string
 
- Static Public Member Functions inherited from iox2::bb::SemanticString< FileName, platform::IOX2_MAX_FILENAME_LENGTH, detail::file_name_does_contain_invalid_content, detail::file_name_does_contain_invalid_characters >
static auto create (const char(&value)[N]) noexcept -> bb::Expected< FileName, SemanticStringError >
 Creates a new SemanticString from the provided string literal. If the value contains invalid characters or invalid content the expected returns an error describing the cause.
 
static auto create (const bb::StaticString< N > &value) noexcept -> bb::Expected< FileName, SemanticStringError >
 Creates a new SemanticString from the provided string. If the value contains invalid characters or invalid content the expected returns an error describing the cause.
 
static constexpr auto capacity () noexcept -> uint64_t
 Returns the capacity of the string.
 
- Protected Member Functions inherited from iox2::bb::SemanticString< FileName, platform::IOX2_MAX_FILENAME_LENGTH, detail::file_name_does_contain_invalid_content, detail::file_name_does_contain_invalid_characters >
 SemanticString (const bb::StaticString< N > &value) noexcept
 

Detailed Description

Represents a single file name. It is not allowed to contain any path elements like "./some_file" or "path/to/file". Just a plain old simple "my_file.bla".

Definition at line 40 of file file_name.hpp.


The documentation for this class was generated from the following file: