CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
file_mode.h
1
2#pragma once
3
4#include <system/details/enum_meta_info.h>
5
6namespace System { namespace IO {
7
9enum class FileMode
10{
12 CreateNew = 1,
14 Create = 2,
16 Open = 3,
18 OpenOrCreate = 4,
20 Truncate = 5,
22 Append = 6
23};
24
25}} // namespace System::IO
26
27template<>
28struct EnumMetaInfo<System::IO::FileMode>
29{
30 static ASPOSECPP_SHARED_API const std::array<std::pair<System::IO::FileMode, const char16_t*>, 6>& values();
31};
FileMode
Specifies how a file should be opened.
Definition: file_mode.h:10
@ CreateNew
Create a new file. If the file already exists, an exception is thrown.
@ OpenOrCreate
Open an existing file or create a new one if it does not exist.
@ Create
Create a new file. If the file already exists, it is overwritten.
@ Truncate
Open an existing file and truncate it so that it is empty. If the file does not exist,...
@ Open
Open an existing file. If the file does not exist, an exception is thrown.
Definition: db_command.h:9