Represents a version number. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...
Public Member Functions | |
ASPOSECPP_SHARED_API | Version (int major, int minor, int build, int revision) |
Constructs an instance that represent the specified major, minor, build and revsion values. More... | |
ASPOSECPP_SHARED_API | Version (int major, int minor, int build) |
Constructs an instance that represent the specified major, minor and build values. More... | |
ASPOSECPP_SHARED_API | Version (int major, int minor) |
Constructs an instance that represent the specified major and values. More... | |
ASPOSECPP_SHARED_API | Version (const String &version) |
Constructs an instance that represent the version number represented as a string. More... | |
ASPOSECPP_SHARED_API | Version () |
Constructs an instance that represents version number 0.0.-1.-1. More... | |
ASPOSECPP_SHARED_API int | get_Major () const |
Returns the major version. More... | |
ASPOSECPP_SHARED_API int | get_Minor () const |
Returns the minor version. More... | |
ASPOSECPP_SHARED_API int | get_Build () const |
Returns the build number. More... | |
ASPOSECPP_SHARED_API int | get_Revision () const |
Returns the revision number. More... | |
ASPOSECPP_SHARED_API int16_t | get_MajorRevision () const |
Returns the high 16-bit value of the revision number. More... | |
ASPOSECPP_SHARED_API int16_t | get_MinorRevision () const |
Returns the low 16-bit value of the revision number. More... | |
ASPOSECPP_SHARED_API int | CompareTo (const Version &ver) const |
Compares the versions represented by the current object and the specified object. More... | |
ASPOSECPP_SHARED_API int | GetHashCode () const |
Returns a hash code for the current object. More... | |
ASPOSECPP_SHARED_API bool | Equals (const Version &ver) const |
Determines if the version numbers represented by the current and the specified objects are equal. More... | |
ASPOSECPP_SHARED_API String | ToString () const |
Returns the string representation of the version number represented by the current object. More... | |
ASPOSECPP_SHARED_API String | ToString (int fieldCount) const |
Returns the string representation of the specified number of sections of version number represented by the current object. More... | |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API Version | Parse (const String &input) |
Converts the string representation of a version number into equivalent instance of Version class. More... | |
Friends | |
ASPOSECPP_SHARED_API bool | operator== (const Version &lhs, const Version &rhs) |
Determines if the version numbers represented by the specified Version objects are equal. More... | |
ASPOSECPP_SHARED_API bool | operator!= (const Version &lhs, const Version &rhs) |
Determines if the version numbers represented by the specified Version objects are not equal. More... | |
ASPOSECPP_SHARED_API bool | operator< (const Version &lhs, const Version &rhs) |
Determines the relation between the version numbers represented by the specified Version objects. More... | |
ASPOSECPP_SHARED_API bool | operator<= (const Version &lhs, const Version &rhs) |
Determines the relation between the version numbers represented by the specified Version objects. More... | |
ASPOSECPP_SHARED_API bool | operator> (const Version &lhs, const Version &rhs) |
Determines the relation between the version numbers represented by the specified Version objects. More... | |
ASPOSECPP_SHARED_API bool | operator>= (const Version &lhs, const Version &rhs) |
Determines the relation between the version numbers represented by the specified Version objects. More... | |
Represents a version number. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
ASPOSECPP_SHARED_API System::Version::Version | ( | int | major, |
int | minor, | ||
int | build, | ||
int | revision | ||
) |
Constructs an instance that represent the specified major, minor, build and revsion values.
major | The major version number |
minor | The minor version numebr |
build | The build number |
revision | The revision number |
ASPOSECPP_SHARED_API System::Version::Version | ( | int | major, |
int | minor, | ||
int | build | ||
) |
Constructs an instance that represent the specified major, minor and build values.
major | The major version number |
minor | The minor version numebr |
build | The build number |
ASPOSECPP_SHARED_API System::Version::Version | ( | int | major, |
int | minor | ||
) |
Constructs an instance that represent the specified major and values.
major | The major version number |
minor | The minor version numebr |
ASPOSECPP_SHARED_API System::Version::Version | ( | const String & | version | ) |
Constructs an instance that represent the version number represented as a string.
version | The string containing a version number |
ASPOSECPP_SHARED_API System::Version::Version | ( | ) |
Constructs an instance that represents version number 0.0.-1.-1.
ASPOSECPP_SHARED_API int System::Version::CompareTo | ( | const Version & | ver | ) | const |
Compares the versions represented by the current object and the specified object.
ver | A Version object to compare with the current object |
ver
; 0 if the version numbers are equal; 1 if the version number represented by the current object is greater than the value represented by ver
ASPOSECPP_SHARED_API bool System::Version::Equals | ( | const Version & | ver | ) | const |
Determines if the version numbers represented by the current and the specified objects are equal.
ver | A Version object to compare the current object with |
ASPOSECPP_SHARED_API int System::Version::get_Build | ( | ) | const |
Returns the build number.
ASPOSECPP_SHARED_API int System::Version::get_Major | ( | ) | const |
Returns the major version.
ASPOSECPP_SHARED_API int16_t System::Version::get_MajorRevision | ( | ) | const |
Returns the high 16-bit value of the revision number.
ASPOSECPP_SHARED_API int System::Version::get_Minor | ( | ) | const |
Returns the minor version.
ASPOSECPP_SHARED_API int16_t System::Version::get_MinorRevision | ( | ) | const |
Returns the low 16-bit value of the revision number.
ASPOSECPP_SHARED_API int System::Version::get_Revision | ( | ) | const |
Returns the revision number.
ASPOSECPP_SHARED_API int System::Version::GetHashCode | ( | ) | const |
Returns a hash code for the current object.
ASPOSECPP_SHARED_API String System::Version::ToString | ( | ) | const |
Returns the string representation of the version number represented by the current object.
ASPOSECPP_SHARED_API String System::Version::ToString | ( | int | fieldCount | ) | const |
Returns the string representation of the specified number of sections of version number represented by the current object.
fieldCount | The number of sections of the version number to include in the string representation returned |
Determines if the version numbers represented by the specified Version objects are not equal.
lhs | The first comparand |
rhs | The second comparand |
lhs
and rhs
are not equal, otherwise - false Determines the relation between the version numbers represented by the specified Version objects.
lhs | The first comparand |
rhs | The second comparand |
lhs
is less than the version number represented rh
, otherwise - false Determines the relation between the version numbers represented by the specified Version objects.
lhs | The first comparand |
rhs | The second comparand |
lhs
is less than or equal to the version number represented rh
, otherwise - false Determines if the version numbers represented by the specified Version objects are equal.
lhs | The first comparand |
rhs | The second comparand |
lhs
and rhs
are equal, otherwise - false Determines the relation between the version numbers represented by the specified Version objects.
lhs | The first comparand |
rhs | The second comparand |
lhs
is greater than the version number represented rh
, otherwise - false Determines the relation between the version numbers represented by the specified Version objects.
lhs | The first comparand |
rhs | The second comparand |
lhs
is greater than or equal to the version number represented rh
, otherwise - false