2011-11-07 01:29:50 +00:00
|
|
|
#ifndef _SYSTEM_BOOLEAN_
|
|
|
|
#define _SYSTEM_BOOLEAN_
|
|
|
|
|
|
|
|
#include "Interfaces.h"
|
2011-05-02 17:33:24 +00:00
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
struct Boolean : public IComparable<Boolean>, public IEquatable<Boolean>, virtual Object
|
2011-05-02 17:33:24 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
bool value;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Boolean(const bool &obj); // Copy constructor
|
|
|
|
|
|
|
|
static const char* True;
|
|
|
|
static const char* False;
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
int CompareTo(Boolean other);
|
|
|
|
bool Equals(Boolean other);
|
|
|
|
bool Parse(char* str);
|
2011-05-02 17:33:24 +00:00
|
|
|
char* ToString();
|
|
|
|
static char* ToString(bool value);
|
|
|
|
|
|
|
|
bool operator!=(bool right);
|
|
|
|
bool operator!=(Boolean right);
|
|
|
|
bool operator==(bool right);
|
|
|
|
bool operator==(Boolean right);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_BOOLEAN_
|