22 #include <kvikio/file_utils.hpp>
48 CompatMode parse_compat_mode_str(std::string_view compat_mode_str);
61 bool _is_compat_mode_preferred{
true};
62 bool _is_compat_mode_preferred_for_async{
true};
87 std::
string const& flags,
Store and manage the compatibility mode data associated with a FileHandle.
CompatMode compat_mode_requested() const noexcept
Retrieve the original compatibility mode requested.
bool is_compat_mode_preferred_for_async() const noexcept
Check if the compatibility mode for asynchronous I/O of the associated FileHandle is expected to be C...
CompatMode infer_compat_mode_if_auto(CompatMode compat_mode) noexcept
Functionally identical to defaults::infer_compat_mode_if_auto(CompatMode).
bool is_compat_mode_preferred() const noexcept
Check if the compatibility mode for synchronous I/O of the associated FileHandle is expected to be Co...
CompatModeManager() noexcept=default
Construct an empty compatibility mode manager.
void validate_compat_mode_for_async() const
Determine if asynchronous I/O can be performed or not (throw exceptions) according to the existing co...
Handle of an open file registered with cufile.
CompatMode
I/O compatibility mode.