mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
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.
38 lines
853 B
C++
38 lines
853 B
C++
#ifndef _SYSTEM_DOUBLE_
|
|
#define _SYSTEM_DOUBLE_
|
|
|
|
#include <System/Interfaces.h>
|
|
#include <System/Object.h>
|
|
|
|
namespace System
|
|
{
|
|
// Represents a double precision floating point value.
|
|
struct Double : public IComparable<Double>, public IEquatable<Double>, virtual Object
|
|
{
|
|
private:
|
|
double value;
|
|
|
|
public:
|
|
static const double Epsilon;
|
|
static const double MaxValue;
|
|
static const double MinValue;
|
|
static const double NaN;
|
|
static const double NegativeInfinity;
|
|
static const double PositiveInfinity;
|
|
|
|
Double(double d);
|
|
|
|
int CompareTo(Double other);
|
|
bool Equals(Double other);
|
|
static double Parse(char* str);
|
|
char* ToString();
|
|
|
|
bool operator !=(double right);
|
|
bool operator !=(Double right);
|
|
bool operator ==(double right);
|
|
bool operator ==(Double right);
|
|
};
|
|
}
|
|
|
|
#endif //_SYSTEM_DOUBLE_
|