1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 81af66d336 Code Audit
Replaced all copyright symbols with (c) to improve cross-platform
reading
Added classes to XFX::Audio namespace
Added and updated classes in XFX::Graphics namespace
Updated event function signature
Replaced const char* ToString() with const String& ToString()
2013-06-02 14:32:43 +02:00

45 lines
1.1 KiB
C++

/*****************************************************************************
* Boolean.h *
* *
* XFX System::Boolean definition file *
* Copyright (c) XFX Team. All Rights Reserved *
*****************************************************************************/
#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;
int GetType() const;
static bool Parse(const String& str);
const String& ToString() const;
static const String& ToString(bool value);
operator bool() const;
bool operator!=(const Boolean& right) const;
bool operator==(const Boolean& right) const;
};
}
#endif //_SYSTEM_BOOLEAN_