![]() |
IOFormat 1.12.0
|
Hold information about a plugin's version. More...
#include <ioformat/plugin/PluginVersion.h>
Public Member Functions | |
| PluginVersion () | |
| Default constructor. | |
| PluginVersion (uint32_t major, uint32_t minor, uint32_t patch) | |
| Three segment initialisation. | |
| PluginVersion (const std::string &version) | |
| Parse a version string. | |
| bool | operator== (const PluginVersion &other) const |
| Equality operator. | |
| bool | operator!= (const PluginVersion &other) const |
| Inequality operator. | |
| std::string | toString () const |
| The version as a string. | |
| uint32_t | major () const |
| Get the major version number. | |
| uint32_t | minor () const |
| Get the minor version number. | |
| uint32_t | patch () const |
| Get the patch version number. | |
Hold information about a plugin's version.
| ioformat::PluginVersion::PluginVersion | ( | ) |
Default constructor.
All segments will be set to zero.
| ioformat::PluginVersion::PluginVersion | ( | uint32_t | major, |
| uint32_t | minor, | ||
| uint32_t | patch | ||
| ) |
Three segment initialisation.
| major | Major version number. |
| minor | Minor version number. |
| patch | Patch version number. |
| ioformat::PluginVersion::PluginVersion | ( | const std::string & | version | ) |
Parse a version string.
| version | Version string in the format "major.minor.patch". |
| InvalidArgument | if the version string is not in the correct format. |
| std::string ioformat::PluginVersion::toString | ( | ) | const |
The version as a string.