xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
io
file_access.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../enum.hpp
"
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
28
flags_attribute_
(
xtd::io
, file_access);
29
30
template
<>
struct
xtd::enum_register
<
xtd
::
io::file_access
> {
31
static
auto
values
() 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
};
enum.hpp
Contains enum_ and enum_ut_ keywords.
flags_attribute_
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition
flags_attribute.hpp:34
xtd::enum_collection
std::vector< std::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.hpp:24
xtd::io::file_access
file_access
Defines constants for read, write, or read/write access to a file. This enumeration has a flags attri...
Definition
file_access.hpp:15
xtd::io::file_access::read_write
@ read_write
The file is a read_write file. The file is part of the operating read_write or is used exclusively by...
Definition
file_access.hpp:21
xtd::io::file_access::read
@ read
Read access to the file. Data can be read from the file. Combine with Write for read/write access.
Definition
file_access.hpp:17
xtd::io::file_access::write
@ write
Write access to the file. Data can be written to the file. Combine with Read for read/write access.
Definition
file_access.hpp:19
xtd::io
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition
binary_reader.hpp:17
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.