|
@ -18,6 +18,9 @@ namespace storm { |
|
|
/// The patch version of Storm. |
|
|
/// The patch version of Storm. |
|
|
const static unsigned versionPatch; |
|
|
const static unsigned versionPatch; |
|
|
|
|
|
|
|
|
|
|
|
/// The label version of Storm (might be empty). |
|
|
|
|
|
const static std::string versionLabel; |
|
|
|
|
|
|
|
|
/// Flag indicating if the version of Storm is a development version. |
|
|
/// Flag indicating if the version of Storm is a development version. |
|
|
const static bool versionDev; |
|
|
const static bool versionDev; |
|
|
|
|
|
|
|
@ -45,6 +48,9 @@ namespace storm { |
|
|
static std::string shortVersionString() { |
|
|
static std::string shortVersionString() { |
|
|
std::stringstream sstream; |
|
|
std::stringstream sstream; |
|
|
sstream << versionMajor << "." << versionMinor << "." << versionPatch; |
|
|
sstream << versionMajor << "." << versionMinor << "." << versionPatch; |
|
|
|
|
|
if (!versionLabel.empty()) { |
|
|
|
|
|
sstream << "-" << versionLabel; |
|
|
|
|
|
} |
|
|
if (versionDev) { |
|
|
if (versionDev) { |
|
|
sstream << " (dev)"; |
|
|
sstream << " (dev)"; |
|
|
} |
|
|
} |
|
@ -53,10 +59,7 @@ namespace storm { |
|
|
|
|
|
|
|
|
static std::string longVersionString() { |
|
|
static std::string longVersionString() { |
|
|
std::stringstream sstream; |
|
|
std::stringstream sstream; |
|
|
sstream << "Version " << versionMajor << "." << versionMinor << "." << versionPatch; |
|
|
|
|
|
if (versionDev) { |
|
|
|
|
|
sstream << " (dev)"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
sstream << "Version " << shortVersionString(); |
|
|
if (commitsAhead) { |
|
|
if (commitsAhead) { |
|
|
sstream << " (+ " << commitsAhead << " commits)"; |
|
|
sstream << " (+ " << commitsAhead << " commits)"; |
|
|
} |
|
|
} |
|
|