Wrapper class to work with POD type tVersion.
More...
Wrapper class to work with POD type tVersion.
Definition at line 29 of file versiontype.h.
◆ cVersion()
Constructor.
- Parameters
-
[in] | sVersion | The version information to use this wrapper with. |
◆ FromString()
Create the version object from a string.
- Parameters
-
[in] | i_strVersion | String representation of the version. Must have format "major[.minor[.patch[.tweak]]]" |
- Returns
- Standard error type
- Return values
-
ERR_NOERROR | Everything went fine, version information created from string |
ERR_UNKNOWN_FORMAT | String representation of the version could not be recognized |
◆ GetMajor()
Get major number of the version.
- Returns
- Major number
◆ GetMinor()
Get minor number of the version.
- Returns
- Minor number
◆ GetPatch()
Get patch number of the version.
- Returns
- Patch number
◆ GetTweak()
Get tweak number of the version.
- Returns
- Tweak number
◆ GetVersion()
Get entire version info.
- Returns
- Wrapped version object
◆ SetMajor()
Set major number of the version.
- Parameters
-
[in] | i_nMajor | The major number |
- Returns
- *this
◆ SetMinor()
Set minor number of the version.
- Parameters
-
[in] | i_nMinor | The minor number |
- Returns
- *this
◆ SetPatch()
Set patch number of the version.
- Parameters
-
[in] | i_nPatch | The patch number |
- Returns
- *this
◆ SetTweak()
Set tweak number of the version.
- Parameters
-
[in] | i_nTweak | The tweak number |
- Returns
- *this
◆ ToString()
Create the string representation of the currently held version information.
- Returns
- String representation of the version in format "major.minor.patch.tweak"