xtd 0.2.0
Loading...
Searching...
No Matches
file_access.h
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.h"
6
8namespace xtd {
10 namespace io {
15 enum class file_access {
17 read = 0b1,
19 write = 0b10,
21 read_write = 0b11,
22 };
23 }
24}
25
26
28flags_attribute_(xtd::io, file_access);
29
30template<> struct xtd::enum_register<xtd::io::file_access> {
31 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::io::file_access> {{xtd::io::file_access::read, L"read"}, {xtd::io::file_access::write, L"write"}, {xtd::io::file_access::read_write, L"read_write"}};}
32};
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
file_access
Defines constants for read, write, or read/write access to a file. This enumeration has a flags attri...
Definition file_access.h:15
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
@ read_write
The file is a read_write file. The file is part of the operating read_write or is used exclusively by...
@ read
Read access to the file. Data can be read from the file. Combine with Write for read/write access.
@ write
Write access to the file. Data can be written to the file. Combine with Read for read/write access.
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38