xtd 0.2.0
file_attributes.h
Go to the documentation of this file.
1 #pragma once
5 #include "../enum.h"
6 
8 namespace 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 
57 
58 template<> struct xtd::enum_register<xtd::io::file_attributes> {
60 };
The file is a directory.
The file is hidden, and thus is not included in an ordinary directory listing.
The file is temporary. File systems attempt to keep all of the data in memory for quicker access rath...
The file is normal and has no other attributes set. This attribute is valid only if used alone...
file_attributes
Provides attributes for files and directories.
Definition: file_attributes.h:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The file is a system file. The file is part of the operating system or is used exclusively by the ope...
The xtd::io namespace contains types that allow reading and writing to files and data streams...
Definition: binary_reader.h:16
Exposes static methods for creating, moving, and enumerating through directories and subdirectories...
Definition: directory.h:97
The file or directory is encrypted. For a file, this means that all data in the file is encrypted...
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
The file is compressed.
The file&#39;s archive status. Applications use this attribute to mark files for backup or removal...
The file is offline. The data of the file is not immediately available.
Reserved for future use.
The file will not be indexed by the operating system&#39;s content indexing service.
The file is a sparse file. Sparse files are typically large files whose data are mostly zeros...
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: flags_attribute.h:34
Provides the registration struct for enumerations.
Definition: enum_register.h:36
The file contains a reparse point, which is a block of user-defined data associated with a file or a ...