1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 1bf933432b List class now works.
TextureCollection is broken because it can somehow not resolve Texture as template argument for the List it uses.
Added missing BinaryWriter and TextWriter classes to System::IO namespace
Modified BinaryReader
Added PacketReader and PacketWriter classes to XFX::Net namespace
2011-03-10 22:55:43 +00:00

116 lines
2.2 KiB
C++

#ifndef _SYSTEM_IO_ENUMS_
#define _SYSTEM_IO_ENUMS_
namespace System
{
namespace IO
{
/// <summary>
/// Defines constants for read, write, or read/write access to a file.
/// </summary>
struct FileAccess
{
enum type
{
Read = 1,
ReadWrite = 3,
Write = 2
};
};
/// <summary>
/// Provides attributes for files and directories.
/// </summary>
struct FileAttributes
{
enum type
{
Archive = 32,
Compressed = 2048,
Device = 64,
Directory = 16,
Encrypted = 16384,
Hidden = 2,
Normal = 128,
NotContentIndexed = 8192,
Offline = 4096,
ReadOnly = 1,
ReparsePoint = 1024,
SparseFile = 512,
System = 4,
Temporary = 256
};
};
/// <summary>
/// Specifies how the operating system should open a file.
/// </summary>
struct FileMode
{
enum type
{
Append = 6,
Create = 2,
CreateNew = 1,
Open = 3,
OpenOrCreate = 4,
Truncate = 5
};
};
/// <summary>
/// Represents additional options for creating a FileStream object.
/// </summary>
struct FileOptions
{
enum type
{
Asynchronous = 0x40000000,
DeleteOnClose = 0x4000000,
Encrypted = 0x4000,
None = 0,
RandomAccess = 0x10000000,
SequentialScan = 0x8000000,
WriteThrough = -2147483648
};
};
/// <summary>
/// Contains constants for controlling the kind of access other System.IO.FileStream objects can have to the same
/// file.
/// </summary>
struct FileShare
{
enum type
{
None = 0,
Read = 1,
ReadWrite = 3,
Write = 2
};
};
/// <summary>
/// Provides the fields that represent reference points in streams for seeking.
/// </summary>
struct SeekOrigin
{
enum type
{
Begin,
Current,
End
};
};
typedef FileAccess::type FileAccess_t;
typedef FileAttributes::type FileAttributes_t;
typedef FileMode::type FileMode_t;
typedef FileOptions::type FileOptions_t;
typedef FileShare::type FileShare_t;
typedef SeekOrigin::type SeekOrigin_t;
}
}
#endif //_SYSTEM_IO_ENUMS_