2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Boolean.h *
|
|
|
|
* *
|
|
|
|
* XFX System::Boolean definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _SYSTEM_BOOLEAN_
|
|
|
|
#define _SYSTEM_BOOLEAN_
|
|
|
|
|
|
|
|
#include "Interfaces.h"
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
class String;
|
|
|
|
|
|
|
|
// Represents a Boolean value.
|
|
|
|
struct Boolean : IComparable<Boolean>, IEquatable<Boolean>, Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
bool value;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Boolean();
|
|
|
|
Boolean(const Boolean &obj);
|
|
|
|
Boolean(const bool &obj);
|
|
|
|
|
|
|
|
static const char* TrueString;
|
|
|
|
static const char* FalseString;
|
|
|
|
|
|
|
|
int CompareTo(const Boolean other) const;
|
|
|
|
bool Equals(Object const * const obj) const;
|
|
|
|
bool Equals(const Boolean other) const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static Type GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
static bool Parse(const String& str);
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const String ToString(bool value);
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
operator bool() const;
|
|
|
|
bool operator!=(const Boolean& right) const;
|
|
|
|
bool operator==(const Boolean& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2013-06-02 14:32:43 +02:00
|
|
|
#endif //_SYSTEM_BOOLEAN_
|