Content


NTL
Core
Version3

Version3


Describes 3-component(major version, minor version, build number) version information.

You can find more information in comments below.

struct Version3
{
    int Major;
    int Minor;
    int Build;

    Version3(); // Construct with 0.0.0 version
    Version3(const int major, const int minor, const int build); // Construct with specified version
    Version3(const Version3&) = default;
    Version3(Version3&&) = default;
    Version3 &operator=(const Version3&) = default;
    Version3 &operator=(Version3&&) = default;

    bool operator==(const Version3 &other) const; // Compare if it equals to another version
    bool operator!=(const Version3 &other) const; // Compare if it doesn't equal to another version
    bool operator>(const Version3 &other) const; // Check if it greater than another one
    bool operator<(const Version3 &other) const; // Check if it less than another one
    bool operator>=(const Version3 &other) const; // Check if it greater or equal to another one
    bool operator<=(const Version3 &other) const; // Check if it less or equal to another one
};
Namespace: nitisa
Include: Nitisa/Core/Version3.h