2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Version.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX Version definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _SYSTEM_VERSION_
|
|
|
|
|
#define _SYSTEM_VERSION_
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
#include "Interfaces.h"
|
2011-11-07 01:29:50 +00:00
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
|
namespace System
|
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
// Represents the version number for a common language runtime assembly.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
class Version : public IComparable<Version>, public IEquatable<Version>, public Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
2011-11-07 01:29:50 +00:00
|
|
|
|
const int Build;
|
|
|
|
|
const int Major;
|
|
|
|
|
const int Minor;
|
|
|
|
|
const int Revision;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
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);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
Version(const Version &obj);
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
Version Clone() const;
|
|
|
|
|
int CompareTo(const Version value) const;
|
|
|
|
|
bool Equals(const Version obj) const;
|
|
|
|
|
int GetHashCode() const;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
int GetType() const;
|
2012-03-29 22:02:43 +00:00
|
|
|
|
const char* ToString() const;
|
|
|
|
|
const char* ToString(const int fieldCount) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-03-29 22:02:43 +00: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;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_SYSTEM_VERSION_
|