CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
file_options.h
1
2#pragma once
3
4#include <cstdint>
5#include <system/enum_helpers.h>
6#include <system/details/enum_meta_info.h>
7#include <limits>
8
9namespace System { namespace IO {
10
12enum class FileOptions {
14 None = 0,
16 Encrypted = 0x4000,
18 DeleteOnClose = 0x4000000,
20 SequentialScan = 0x8000000,
22 RandomAccess = 0x10000000,
24 Asynchronous = 0x40000000,
26 WriteThrough = (std::numeric_limits<int32_t>::min)(), // 0x80000000
27};
28
31DECLARE_ENUM_OPERATORS(System::IO::FileOptions);
33DECLARE_USING_GLOBAL_OPERATORS
35}} // namespace System::IO
36
38DECLARE_USING_ENUM_OPERATORS(System::IO);
39
40template<>
41struct EnumMetaInfo<System::IO::FileOptions>
42{
43 typedef void Flags;
44 static ASPOSECPP_SHARED_API const std::array<std::pair<System::IO::FileOptions, const char16_t*>, 7>& values();
45};
Definition: fwd.h:38
FileOptions
Represents advanced options for creating FileStream object.
Definition: file_options.h:12
@ DeleteOnClose
The file should be automatically deleted when it is not in use anymore.
@ RandomAccess
The file is accessed randomly.
@ Asynchronous
The file can be used for asynchronous I/O operations. NOT IMPLEMENTED.
@ WriteThrough
All writes should go directly to the disk bypassing any intermediate cache.
@ SequentialScan
The file shoud be accesses sequentially.
@ Encrypted
The filesystem entity is encrypted.
Definition: db_command.h:9