4#include "../macros.hpp"
5#include "../utility/utility.hpp"
8hi_export_module(hikogui.file.access_mode);
10hi_export
namespace hi {
inline namespace v1 {
39 return static_cast<access_mode>(std::to_underlying(lhs) | std::to_underlying(rhs));
44 return static_cast<access_mode>(std::to_underlying(lhs) & std::to_underlying(rhs));
47hi_export [[nodiscard]]
constexpr bool to_bool(
access_mode const& rhs)
noexcept
49 return to_bool(std::to_underlying(rhs));
access_mode
The mode in which way to open a file.
Definition access_mode.hpp:17
@ truncate
After the file has been opened, truncate it.
@ read_lock
Lock the file for reading, i.e. shared-lock.
@ sequential
Hint that the data should be prefetched.
@ create
Create file if it does not exist, or fail.
@ open
Open file if it exist, or fail.
@ random
Hint the data should not be prefetched.
@ open_for_read_and_write
Default open a file for reading and writing.
@ open_for_read
Default open a file for reading.
@ write_through
Hint that writes should be send directly to disk.
@ write_lock
Lock the file for writing, i.e. exclusive-lock.
@ no_reuse
Hint that the data should not be cached.
@ rename
Allow renaming an open file.
@ read
Allow read access to a file.
@ write
Allow write access to a file.
@ create_directories
Create directory hierarchy, if the file could not be created.
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20