#ifndef MONROUTER_VERSION_HPP #define MONROUTER_VERSION_HPP #include /** * \author cpellegrino */ namespace monrouter { namespace version { const static char major[] = "0"; const static char minor[] = "1"; #ifdef SVN_REVISION const static char svn_rev[] = SVN_REVISION; #ifndef VERSION # define VERSION SVN_REVISION #endif #else const static char svn_rev[] = "undef"; #ifndef VERSION # define VERSION "undef" #endif #endif #ifdef BUILD_DATE const static char build_date[] = BUILD_DATE; #else const static char build_date[] = "undef"; #endif const static std::string separator("-"); inline std::string v() { return major + std::string(".") + minor + separator + svn_rev + separator + build_date; } } // ns version } // ns monrouter #endif // MONROUTER_VERSION_HPP