2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Version.h *
|
|
|
|
* *
|
2013-06-12 19:21:00 +02:00
|
|
|
* XFX System::Version definition file *
|
2013-06-02 14:32:43 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _SYSTEM_VERSION_
|
|
|
|
#define _SYSTEM_VERSION_
|
|
|
|
|
|
|
|
#include "Interfaces.h"
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents the version number for a common language runtime assembly.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class Version : public IComparable<Version>, public IEquatable<Version>, public Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
const int Build;
|
|
|
|
const int Major;
|
|
|
|
const int Minor;
|
|
|
|
const int Revision;
|
|
|
|
|
|
|
|
Version(const int major, const int minor);
|
|
|
|
Version(const int major, const int minor, const int build);
|
|
|
|
Version(const int major, const int minor, const int build, const int revision);
|
|
|
|
Version(const Version &obj);
|
|
|
|
|
|
|
|
Version Clone() const;
|
|
|
|
int CompareTo(const Version value) const;
|
|
|
|
bool Equals(Object const * const obj) const;
|
|
|
|
bool Equals(const Version obj) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
|
|
|
const String ToString() const;
|
|
|
|
const String ToString(const int fieldCount) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator !=(const Version& other) const;
|
|
|
|
bool operator <(const Version& other) const;
|
|
|
|
bool operator <=(const Version& other) const;
|
|
|
|
bool operator ==(const Version& other) const;
|
|
|
|
bool operator >(const Version& other) const;
|
|
|
|
bool operator >=(const Version& other) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_VERSION_
|