ADTF
|
Wrapper class to work with POD type tVersion. More...
#include <versiontype.h>
Public Types | |
typedef tVersion::value_type | value_type |
Common value type of version numbers. | |
Public Member Functions | |
cVersion (tVersion sVersion) | |
Constructor. | |
cVersion & | SetMajor (value_type i_nMajor) |
Set major number of the version. | |
cVersion & | SetMinor (value_type i_nMinor) |
Set minor number of the version. | |
cVersion & | SetPatch (value_type i_nPatch) |
Set patch number of the version. | |
cVersion & | SetTweak (value_type i_nTweak) |
Set tweak number of the version. | |
value_type | GetMajor () const |
Get major number of the version. | |
value_type | GetMinor () const |
Get minor number of the version. | |
value_type | GetPatch () const |
Get patch number of the version. | |
value_type | GetTweak () const |
Get tweak number of the version. | |
const tVersion & | GetVersion () const |
Get entire version info. | |
tResult | FromString (const cString &i_strVersion) |
Create the version object from a string. | |
cString | ToString () const |
Create the string representation of the currently held version information. | |
Private Attributes | |
tVersion | m_sVersion |
version type to wrap | |
Wrapper class to work with POD type tVersion.
Definition at line 29 of file versiontype.h.
typedef tVersion::value_type value_type |
Common value type of version numbers.
Definition at line 32 of file versiontype.h.
Constructor.
[in] | sVersion | The version information to use this wrapper with. |
Referenced by SetMajor(), SetMinor(), SetPatch(), and SetTweak().
Create the version object from a string.
[in] | i_strVersion | String representation of the version. Must have format "major[.minor[.patch[.tweak]]]" |
ERR_NOERROR | Everything went fine, version information created from string |
ERR_UNKNOWN_FORMAT | String representation of the version could not be recognized |
value_type GetMajor | ( | ) | const |
Get major number of the version.
value_type GetMinor | ( | ) | const |
Get minor number of the version.
value_type GetPatch | ( | ) | const |
Get patch number of the version.
value_type GetTweak | ( | ) | const |
Get tweak number of the version.
const tVersion & GetVersion | ( | ) | const |
Get entire version info.
cVersion & SetMajor | ( | value_type | i_nMajor | ) |
Set major number of the version.
[in] | i_nMajor | The major number |
References cVersion().
cVersion & SetMinor | ( | value_type | i_nMinor | ) |
Set minor number of the version.
[in] | i_nMinor | The minor number |
References cVersion().
cVersion & SetPatch | ( | value_type | i_nPatch | ) |
Set patch number of the version.
[in] | i_nPatch | The patch number |
References cVersion().
cVersion & SetTweak | ( | value_type | i_nTweak | ) |
Set tweak number of the version.
[in] | i_nTweak | The tweak number |
References cVersion().
cString ToString | ( | ) | const |
Create the string representation of the currently held version information.
|
private |
version type to wrap
Definition at line 116 of file versiontype.h.