mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
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()
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
/*****************************************************************************
|
|
* SByte.h *
|
|
* *
|
|
* XFX System::SByte definition file *
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
*****************************************************************************/
|
|
#ifndef _SYSTEM_SBYTE_
|
|
#define _SYSTEM_SBYTE_
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
namespace System
|
|
{
|
|
class String;
|
|
|
|
// Represents a signed 8-bit integer.
|
|
struct SByte : IComparable<SByte>, IEquatable<SByte>, Object
|
|
{
|
|
private:
|
|
sbyte value;
|
|
|
|
public:
|
|
static const sbyte MaxValue;
|
|
static const sbyte MinValue;
|
|
|
|
SByte();
|
|
SByte(const SByte &obj);
|
|
SByte(const sbyte &obj);
|
|
|
|
int CompareTo(const SByte other) const;
|
|
bool Equals(Object const * const obj) const;
|
|
bool Equals(const SByte other) const;
|
|
int GetHashCode() const;
|
|
int GetType() const;
|
|
const String& ToString() const;
|
|
static const String& ToString(const sbyte value);
|
|
static bool TryParse(const String& str, out sbyte* value);
|
|
|
|
operator sbyte() const;
|
|
bool operator==(const SByte& right) const;
|
|
//bool operator==(const sbyte& right) const;
|
|
bool operator!=(const SByte& right) const;
|
|
//bool operator!=(const sbyte& right) const;
|
|
};
|
|
}
|
|
|
|
#endif //_SYSTEM_SBYTE_
|