From a2f37a1bbdff9ac4efa6ffdd368ef8e865355b7e Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 28 Aug 2012 23:39:42 +0200 Subject: [PATCH] Add version number as a static member (libver) of Util::Config. --- lib/config.cpp | 1 + lib/config.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/config.cpp b/lib/config.cpp index 99b1503a..09361779 100644 --- a/lib/config.cpp +++ b/lib/config.cpp @@ -23,6 +23,7 @@ #include bool Util::Config::is_active = false; +std::string Util::Config::libver = PACKAGE_VERSION; /// Creates a new configuration manager. Util::Config::Config(std::string cmd, std::string version){ diff --git a/lib/config.h b/lib/config.h index 4ae72c40..099c9685 100644 --- a/lib/config.h +++ b/lib/config.h @@ -16,6 +16,7 @@ namespace Util{ static void signal_handler(int signum); public: //variables + static std::string libver; ///< Version number of the library as a string. static bool is_active; ///< Set to true by activate(), set to false by the signal handler. //functions Config(std::string cmd, std::string version);