8 #ifndef META_OCEAN_BASE_VERSION_H
9 #define META_OCEAN_BASE_VERSION_H
15 #define OCEAN_VERSION_MAJOR 1
18 #define OCEAN_VERSION_MINOR 0
21 #define OCEAN_VERSION_PATCH 1
24 #define OCEAN_VERSION_IS_DEVELEOPMENT_BRANCH 1
27 #define OCEAN_VERSIONIZE(major, minor, patch, isDevelopmentBranch) (major * 1000000 + minor * 1000 + patch) * 2 + (isDevelopmentBranch != 0 ? 1 : 0)
30 #define OCEAN_VERSION OCEAN_VERSIONIZE(OCEAN_VERSION_MAJOR, OCEAN_VERSION_MINOR, OCEAN_VERSION_PATCH, OCEAN_VERSION_IS_DEVELEOPMENT_BRANCH);
47 static constexpr
unsigned int major();
53 static constexpr
unsigned int minor();
59 static constexpr
unsigned int patch();
71 static constexpr
unsigned int version();
82 return OCEAN_VERSION_MAJOR;
87 return OCEAN_VERSION_MINOR;
92 return OCEAN_VERSION_PATCH;
97 return OCEAN_VERSION_IS_DEVELEOPMENT_BRANCH != 0;
102 return OCEAN_VERSION;
static std::string toAString(const char value)
Converts a value to a string with 8bit character.
This class provides version numbers for Ocean.
Definition: Version.h:40
static constexpr unsigned int version()
Returns the major version number of Ocean.
Definition: Version.h:100
static constexpr unsigned int major()
Returns the major version number of Ocean.
Definition: Version.h:80
static std::string versionString()
Returns the version number of Ocean as string.
Definition: Version.h:105
static constexpr bool isDevelopmentBranch()
Returns the major version number of Ocean.
Definition: Version.h:95
static constexpr unsigned int patch()
Returns the major version number of Ocean.
Definition: Version.h:90
static constexpr unsigned int minor()
Returns the major version number of Ocean.
Definition: Version.h:85
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15