xtd 0.2.0
Loading...
Searching...
No Matches
file_attributes.h
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.h"
6
8namespace xtd {
10 namespace io {
22 enum class file_attributes {
24 read_only = 0x0001,
26 hidden = 0x0002,
28 system = 0x0004,
30 directory = 0x0010,
32 archive = 0x0020,
34 device = 0x0040,
36 normal = 0x0080,
38 temporary = 0x0100,
40 sparse_file = 0x0200,
42 reparse_point = 0x0400,
44 compressed = 0x0800,
46 offline = 0x1000,
48 not_content_indexed = 0x2000,
50 encrypted = 0x4000
51 };
52 }
53}
54
56flags_attribute_(xtd::io, file_attributes);
57
58template<> struct xtd::enum_register<xtd::io::file_attributes> {
60};
Exposes static methods for creating, moving, and enumerating through directories and subdirectories....
Definition directory.h:99
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
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_attributes
Provides attributes for files and directories.
Definition file_attributes.h:22
@ offline
The file is offline. The data of the file is not immediately available.
@ compressed
The file is compressed.
@ encrypted
The file or directory is encrypted. For a file, this means that all data in the file is encrypted....
@ system
The file is a system file. The file is part of the operating system or is used exclusively by the ope...
@ directory
The file is a directory.
@ hidden
The file is hidden, and thus is not included in an ordinary directory listing.
@ sparse_file
The file is a sparse file. Sparse files are typically large files whose data are mostly zeros.
@ reparse_point
The file contains a reparse point, which is a block of user-defined data associated with a file or a ...
@ archive
The file's archive status. Applications use this attribute to mark files for backup or removal.
@ device
Reserved for future use.
@ not_content_indexed
The file will not be indexed by the operating system's content indexing service.
@ read_only
The file is read-only.
@ temporary
The file is temporary. File systems attempt to keep all of the data in memory for quicker access rath...
@ normal
The file is normal and has no other attributes set. This attribute is valid only if used alone.
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:36