|
Jpp
debug
the software that should make you happy
|
Auxiliary data structure for general purpose version number. More...
#include <JVersion.hh>
Public Types | |
| typedef unsigned int | version_type |
| Type definition of [sub-]versions. More... | |
Public Member Functions | |
| JVersion () | |
| Default constructor. More... | |
| JVersion (const version_type major, const version_type minor, const version_type patch) | |
| Constructor. More... | |
| JVersion (const std::string &version) | |
| Constructor. More... | |
| version_type | getMajorVersion () const |
| Get major version. More... | |
| version_type | getMinorVersion () const |
| Get minor version. More... | |
| version_type | getPatchVersion () const |
| Get patch version. More... | |
| bool | less (const JVersion &version) const |
| Compare version. More... | |
| std::string | toString () const |
| Convert version to string. More... | |
Static Public Attributes | |
| static const char | SEPARATOR = '.' |
| Separator between [sub-]versions. More... | |
Protected Attributes | |
| version_type | majorVersion |
| major version More... | |
| version_type | minorVersion |
| minor version More... | |
| version_type | patchVersion |
| patch version More... | |
Friends | |
| std::istream & | operator>> (std::istream &in, JVersion &object) |
| Read version from input stream. More... | |
| std::ostream & | operator<< (std::ostream &out, const JVersion &object) |
| Write version to output stream. More... | |
Auxiliary data structure for general purpose version number.
A version consists of a major, minor and patch number.
The I/O format is <major>.<minor>.<patch>.
Definition at line 28 of file Jeep/JVersion.hh.
| typedef unsigned int JEEP::JVersion::version_type |
Type definition of [sub-]versions.
Definition at line 34 of file Jeep/JVersion.hh.
|
inline |
|
inline |
Constructor.
| major | major version |
| minor | minor version |
| patch | patch version |
Definition at line 60 of file Jeep/JVersion.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Compare version.
| version | version |
Definition at line 124 of file Jeep/JVersion.hh.
|
inline |
|
friend |
Read version from input stream.
| in | input stream |
| object | version |
Definition at line 166 of file Jeep/JVersion.hh.
|
friend |
Write version to output stream.
| out | output stream |
| object | version |
Definition at line 201 of file Jeep/JVersion.hh.
|
static |
Separator between [sub-]versions.
Definition at line 40 of file Jeep/JVersion.hh.
|
protected |
major version
Definition at line 211 of file Jeep/JVersion.hh.
|
protected |
minor version
Definition at line 212 of file Jeep/JVersion.hh.
|
protected |
patch version
Definition at line 213 of file Jeep/JVersion.hh.