1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 e7a47c8ed9 Revamped the List class so that it can (properly) handle pointers as well
Added 'ValueTypes' Single and Double
Added some components in the new System::Net namespace
Added the Console class, which can be used to output text to the screen
Updated a bunch of structs to include the IComparable and IEquatable interfaces, and inheritance from Object to allow better interoperability between container classes and other types
Replaced all exception handling code with a report to stdout.txt - this will, I hope, eventually be reversed, but as of yet, there is no support for exceptions.

BEWARE! Even though all libraries correctly compile, you cannot use any class/structure that inherits from a template class, because stupid G++ wants to include exception handling for each template.
2011-11-07 01:29:50 +00:00

87 lines
2.0 KiB
C++

/****************************************************************
* Enums.h *
* Defines enumerations used in the System namespace *
* *
* Enumerations are defined inside structs to prevent *
* namespace pollution, and easier distinction. *
****************************************************************/
#ifndef _SYSTEM_ENUMS_
#define _SYSTEM_ENUMS_
namespace System
{
// Specifies whether a System::DateTime object represents a local time, a Coordinated Universal Time (UTC), or is
// not specified as either local time or UTC.
struct DateTimeKind
{
enum type
{
Local = 2,
Unspecified = 0,
Utc = 1
};
};
// Specifies the day of the week.
struct DayOfWeek
{
enum type
{
Friday = 5,
Monday = 1,
Saturday = 6,
Sunday = 0,
Thursday = 4,
Tuesday = 2,
Wednesday = 3
};
};
// Identifies the operating system, or platform, supported by an assembly.
struct PlatformID
{
enum type
{
MacOSX = 6,
Unix = 4,
Win32S = 0,
Win32Windows = 1,
WinCE = 3,
Xbox = 5
};
};
// Specifies the culture, case, and sort rules to be used by certain overloads
// of the String::Compare(String,String) and String::Equals(System.Object) methods.
struct StringComparison
{
enum type
{
CurrentCulture,
CurrentCultureIgnoreCase,
InvariantCulture,
InvariantCultureIgnoreCase,
Ordinal,
OrdinalIgnoreCase
};
};
// Specifies whether applicable Overload:String::Split method overloads include or omit empty substrings from the return value.
struct StringSplitOptions
{
enum type
{
None,
RemoveEmptyEntries
};
};
typedef DateTimeKind::type DateTimeKind_t;
typedef DayOfWeek::type DayOfWeek_t;
typedef PlatformID::type PlatformID_t;
typedef StringComparison::type StringComparison_t;
typedef StringSplitOptions::type StringSplitOptions_t;
}
#endif //_SYSTEM_ENUMS_