u5e
UnicodeTextC++Library
version.hpp
1 #ifndef U5E_VERSION
2 #define U5E_VERSION
3 
4 /**
5  * \brief main u5e namespace
6  */
7 namespace u5e {
8  /**
9  * \brief introspection over the vesion of the library
10  * both at compile time and at runtime.
11  */
12  namespace version {
13  /**
14  * \brief namespace with compile-time-constant version declaration
15  */
16  namespace compile_time {
17  //@{
18  /**
19  * Compile-time version definition
20  */
21  constexpr int major = 0;
22  constexpr int minor = 0;
23  constexpr int patch = 0;
24  //@}
25  }
26  /**
27  * \brief introspection for run-time version declaration
28  * To test which version of the library are you linking against
29  */
30  class run_time {
31  public:
32  //@{
33  /**
34  * \brief Run-time introspection for library version
35  */
36  static const int major;
37  static const int minor;
38  static const int patch;
39  //@}
40  };
41  }
42 }
43 
44 #endif
main u5e namespace
introspection over the vesion of the library both at compile time and at runtime. ...
Definition: version.hpp:12
introspection for run-time version declaration To test which version of the library are you linking a...
Definition: version.hpp:30
static const int minor
Run-time introspection for library version.
Definition: version.hpp:37
static const int patch
Run-time introspection for library version.
Definition: version.hpp:38
static const int major
Run-time introspection for library version.
Definition: version.hpp:36
namespace with compile-time-constant version declaration
Definition: version.hpp:16