xtd 0.2.0
file_access.h
Go to the documentation of this file.
1 #pragma once
5 #include "../enum.h"
6 
8 namespace xtd {
10  namespace io {
15  enum class file_access {
17  read = 0b1,
19  write = 0b10,
21  read_write = 0b11,
22  };
23  }
24 }
25 
26 
29 
30 template<> 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 };
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The xtd::io namespace contains types that allow reading and writing to files and data streams...
Definition: binary_reader.h:16
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
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
The file is a read_write file. The file is part of the operating read_write or is used exclusively by...
Read access to the file. Data can be read from the file. Combine with Write for read/write access...
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: flags_attribute.h:34
Write access to the file. Data can be written to the file. Combine with Read for read/write access...
Provides the registration struct for enumerations.
Definition: enum_register.h:36