Inviwo
0.9.10.1
Inviwo documentation
|
Parses a version string "Major.Minor.Patch.Build" and allow versions to be compared. Try to follow semantic versioning: http://semver.org/ A nuanced picture, i.e. reasons why you do not necessarily need to follow semantic versioning: "Why Semantic Versioning Isn't": https://gist.github.com/jashkenas/cbd2b088e20279ae2c8e. More...
#include <version.h>
Public Member Functions | |
Version (std::string versionString) | |
Parses the version. Defaults to version 1.0.0.0. More... | |
Version (const char *versionString) | |
Version (unsigned int major=1, unsigned int minor=0, unsigned int patch=0, unsigned int build=0) | |
bool | semanticVersionEqual (const Version &other) const |
Public Attributes | |
unsigned int | major = 1 |
Increases when you make incompatible API changes. | |
unsigned int | minor |
Increases when you add functionality in a backwards-compatible manner. More... | |
unsigned int | patch = 0 |
Increases when you make backwards-compatible bug fixes. | |
unsigned int | build = 0 |
Version metadata. | |
Parses a version string "Major.Minor.Patch.Build" and allow versions to be compared. Try to follow semantic versioning: http://semver.org/ A nuanced picture, i.e. reasons why you do not necessarily need to follow semantic versioning: "Why Semantic Versioning Isn't": https://gist.github.com/jashkenas/cbd2b088e20279ae2c8e.
Major and minor versions are used during equal comparison since API changes should not exist in patch and build version changes (unless major version is zero).
inviwo::Version::Version | ( | std::string | versionString | ) |
Parses the version. Defaults to version 1.0.0.0.
versionString | Dot separated version string "Major.Minor.Patch.Build" |
bool inviwo::Version::semanticVersionEqual | ( | const Version & | other | ) | const |
Major version >= 1: Return true if major and minor versions are equal, false otherwise. Major version < 1: Return true if major, minor and patch versions are equal, false otherwise.
unsigned int inviwo::Version::minor |
Increases when you add functionality in a backwards-compatible manner.