stumpless 2.2.0
Loading...
Searching...
No Matches
Version.hpp
Go to the documentation of this file.
1#ifndef __VERSION_HPP
2#define __VERSION_HPP
3
4#include <stumpless/version.h>
5#include <string>
6#include <stumpless/config.h>
7
8namespace stumpless {
9
13 class Version {
14 public:
15
16 static const char *CURRENT_VERSION;
17
18 struct stumpless_version equivalent;
19
20 Version( int major, int minor, int patch );
21 Version( struct stumpless_version *equivalent );
22 Version( struct stumpless_version equivalent );
23 static Version GetCurrent( void );
36 int Compare( Version& version );
37 std::string ToString( void );
38 };
39
40}
41
42#endif
Describes this version of Stumpless.
Definition Version.hpp:13
static Version GetCurrent(void)
int Compare(Version &version)
Compares this Version with another one according to semantic versioning rules.
static const char * CURRENT_VERSION
Definition Version.hpp:16
std::string ToString(void)
Version(struct stumpless_version equivalent)
Version(int major, int minor, int patch)
struct stumpless_version equivalent
Definition Version.hpp:18
Version(struct stumpless_version *equivalent)
Definition AddressFailure.hpp:7