1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#pragma once
#include "../Common.h"
namespace Death { namespace IO {
//###==##====#=====--==~--~=~- --- -- - - - -
/**
@brief Defines constants for read, write, or read/write access to a file, supports a bitwise combination of its member values
*/
enum struct FileAccess {
None = 0,
/** @brief Read access to the file */
Read = 0x01,
/** @brief Write access to the file */
Write = 0x02,
/** @brief Read and write access to the file */
ReadWrite = Read | Write,
/** @brief Access to the file should be exclusive (not shared) */
Exclusive = 0x10,
/** @brief A child process can inherit this handle */
InheritHandle = 0x20,
/** @brief Indicates that the file is to be accessed sequentially from beginning to end */
Sequential = 0x40
};
DEATH_ENUM_FLAGS(FileAccess);
}}
|