xtd 0.2.0
file_permissions.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_permissions {
24  none = 0,
26  owner_read = 0400,
28  owner_write = 0200,
30  owner_execute = 0100,
34  group_read = 040,
36  group_write = 020,
38  group_execute = 010,
40  group_all = group_read | group_write | group_execute,
42  others_read = 04,
44  others_write = 02,
46  others_execute = 01,
48  others_all = others_read | others_write | others_execute,
52  set_uid = 04000,
54  set_gid = 02000,
56  sticky_bit = 01000,
58  mask = all | set_uid | set_gid | sticky_bit,
60  unknown = 0xFFF,
61  };
62  }
63 }
64 
67 
68 template<> struct xtd::enum_register<xtd::io::file_permissions> {
70 };
Other ueers has read permission.
Other ueers has execute/search permission.
Implementation-defined meaning, but POSIX XSI specifies that when set on a directory, only file owners may delete files even if the directory is writeable to others (used with /tmp).
The file&#39;s ueer group has execute/search permission.
File owner has read permission.
Other ueers has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::o...
Set user ID to file owner user ID on execution.
All users have read, write, and execute/search permissions. Equivalent to xtd::io::file_permissions::...
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
The file&#39;s ueer group has read permission.
The file&#39;s ueer group has write permission.
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 type of drive is unknown.
File owner has execute/search permission.
Set group ID to file&#39;s user group ID on execution.
File owner has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::ow...
All valid permission bits. Equivalent to xtd::io::file_permissions::all | xtd::io::file_permissions::...
No permission bits are set.
File owner has write permission.
The file&#39;s ueer group has read, write and execute/search permission. Equivalent to xtd::io::file_perm...
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: flags_attribute.h:34
file_permissions
Provides permissions for files and directories.
Definition: file_permissions.h:22
Other ueers has write permission.
Provides the registration struct for enumerations.
Definition: enum_register.h:36