Add version number as a static member (libver) of Util::Config.

This commit is contained in:
Thulinma 2012-08-28 23:39:42 +02:00
parent 3ec56cf675
commit a2f37a1bbd
2 changed files with 2 additions and 0 deletions

View file

@ -23,6 +23,7 @@
#include <fstream> #include <fstream>
bool Util::Config::is_active = false; bool Util::Config::is_active = false;
std::string Util::Config::libver = PACKAGE_VERSION;
/// Creates a new configuration manager. /// Creates a new configuration manager.
Util::Config::Config(std::string cmd, std::string version){ Util::Config::Config(std::string cmd, std::string version){

View file

@ -16,6 +16,7 @@ namespace Util{
static void signal_handler(int signum); static void signal_handler(int signum);
public: public:
//variables //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. static bool is_active; ///< Set to true by activate(), set to false by the signal handler.
//functions //functions
Config(std::string cmd, std::string version); Config(std::string cmd, std::string version);