#include <Version.h>
List of all members.
Public Types |
| enum | Part {
None = 0,
Major = 1,
Minor = 2,
Revision = 4,
Build = 8,
All = 0xf
} |
| enum | Order { MajorMinorRevisionBuild,
MajorMinorBuildRevision
} |
Public Member Functions |
| | Version (void) |
| | Version (unsigned major, unsigned minor) |
| | Version (unsigned major, unsigned minor, unsigned revision) |
| | Version (unsigned major, unsigned minor, unsigned revision, unsigned build) |
| | Version (const string_type &version, Order order=MajorMinorRevisionBuild, Part parts=All) |
| | Version (const Version &rhs) |
| Version & | operator= (const Version &rhs) |
| void | swap (Version &rhs) |
| string_type | ToString (Part parts=Part(Major|Minor), Order order=MajorMinorRevisionBuild) const |
| Version & | FromString (const string_type &version, Order order=MajorMinorRevisionBuild, Part parts=All) |
| bool | operator== (const Version &rhs) const |
| bool | operator!= (const Version &rhs) const |
| bool | operator<= (const Version &rhs) const |
| bool | operator>= (const Version &rhs) const |
| bool | operator< (const Version &rhs) const |
| bool | operator> (const Version &rhs) const |
Public Attributes |
| unsigned | major |
| unsigned | minor |
| unsigned | revision |
| unsigned | build |
Member Enumeration Documentation
- Enumerator:
| MajorMinorRevisionBuild |
|
| MajorMinorBuildRevision |
|
- Enumerator:
| None |
|
| Major |
|
| Minor |
|
| Revision |
|
| Build |
|
| All |
|
Constructor & Destructor Documentation
| cl7::Version::Version |
( |
void |
|
) |
|
Default constructor. Creates an object representing version 1.0.
| cl7::Version::Version |
( |
unsigned |
major, |
|
|
unsigned |
minor | |
|
) |
| | |
| cl7::Version::Version |
( |
unsigned |
major, |
|
|
unsigned |
minor, |
|
|
unsigned |
revision | |
|
) |
| | |
| cl7::Version::Version |
( |
unsigned |
major, |
|
|
unsigned |
minor, |
|
|
unsigned |
revision, |
|
|
unsigned |
build | |
|
) |
| | |
| cl7::Version::Version |
( |
const string_type & |
version, |
|
|
Order |
order = MajorMinorRevisionBuild, |
|
|
Part |
parts = All | |
|
) |
| | |
| cl7::Version::Version |
( |
const Version & |
rhs |
) |
|
Member Function Documentation
Extracts the version from a string.
| bool cl7::Version::operator!= |
( |
const Version & |
rhs |
) |
const |
| bool cl7::Version::operator< |
( |
const Version & |
rhs |
) |
const |
| bool cl7::Version::operator<= |
( |
const Version & |
rhs |
) |
const |
Copy assignment operator.
| bool cl7::Version::operator== |
( |
const Version & |
rhs |
) |
const |
| bool cl7::Version::operator> |
( |
const Version & |
rhs |
) |
const |
| bool cl7::Version::operator>= |
( |
const Version & |
rhs |
) |
const |
| void cl7::Version::swap |
( |
Version & |
rhs |
) |
|
Represents the version as a string.
Member Data Documentation
(Optional) The build number.
The major part (or release version).
The minor part (or beta version).
(Optional) The revision number (or debug version).
The documentation for this class was generated from the following files: