Manak  2.0.0
version.hpp
Go to the documentation of this file.
1 
7 #ifndef MANAK_UTIL_VERSION_HPP_INCLUDED
8 #define MANAK_UTIL_VERSION_HPP_INCLUDED
9 
10 #include <iostream>
11 #include <string>
12 #include <sstream>
13 
15 #define __MANAK_VERSION_MAJOR 2
16 #define __MANAK_VERSION_MINOR 0
17 #define __MANAK_VERSION_PATCH 0
18 #define __MANAK_VERSION_NAME "Unit Testing and Benchmarking"
19 
20 namespace manak
21 {
22 
24 inline std::string GetVersionInfo()
25 {
26  std::stringstream stream;
27  stream << "Manak C++ Benchmarking Library" << std::endl;
28  stream << "version " << __MANAK_VERSION_MAJOR << "." << __MANAK_VERSION_MINOR;
29  stream << "." << __MANAK_VERSION_PATCH << std::endl;
30  stream << __MANAK_VERSION_NAME;
31  return stream.str();
32 }
33 
34 }; // namespace manak
35 
36 
37 #endif // MANAK_UTIL_VERSION_HPP_INCLUDED
#define __MANAK_VERSION_MAJOR
Declare version.
Definition: version.hpp:15
std::string GetVersionInfo()
Returns the version information in string.
Definition: version.hpp:24
#define __MANAK_VERSION_NAME
Definition: version.hpp:18
#define __MANAK_VERSION_MINOR
Definition: version.hpp:16
#define __MANAK_VERSION_PATCH
Definition: version.hpp:17