CppWAMP
C++11 client library for the WAMP protocol
version.hpp
Go to the documentation of this file.
1 /*------------------------------------------------------------------------------
2  Copyright Butterfly Energy Systems 2014-2015, 2022.
3  Distributed under the Boost Software License, Version 1.0.
4  http://www.boost.org/LICENSE_1_0.txt
5 ------------------------------------------------------------------------------*/
6 
7 #ifndef CPPWAMP_VERSION_HPP
8 #define CPPWAMP_VERSION_HPP
9 
10 #include <string>
11 #include "api.hpp"
12 
13 //------------------------------------------------------------------------------
16 //------------------------------------------------------------------------------
17 
19 #define CPPWAMP_MAJOR_VERSION 0
20 
22 #define CPPWAMP_MINOR_VERSION 10
23 
25 #define CPPWAMP_PATCH_VERSION 0
26 
28 #define CPPWAMP_VERSION \
29  (CPPWAMP_MAJOR_VERSION * 10000 + \
30  CPPWAMP_MINOR_VERSION * 100 + \
31  CPPWAMP_PATCH_VERSION)
32 
33 namespace wamp
34 {
35 
36 //------------------------------------------------------------------------------
42 //------------------------------------------------------------------------------
43 struct CPPWAMP_API Version
44 {
46  int major;
47 
49  int minor;
50 
52  int patch;
53 
56  static Version parts();
57 
59  static int integer();
60 
62  static std::string toString();
63 
65  static std::string agentString();
66 };
67 
68 } // namespace wamp
69 
70 #ifndef CPPWAMP_COMPILED_LIB
71 #include "./internal/version.ipp"
72 #endif
73 
74 #endif // CPPWAMP_VERSION_HPP
wamp::Version::patch
int patch
Patch version for backwards-compatible bug fixes.
Definition: version.hpp:52
wamp::Version
Bundles the major, minor, and patch version numbers.
Definition: version.hpp:43
api.hpp
Defines macros related to exporting/importing APIs.
wamp::Version::minor
int minor
Minor version with functionality added in a backwards-compatible manner.
Definition: version.hpp:49
wamp::Version::major
int major
Major version with incompatible API changes.
Definition: version.hpp:46
wamp
Definition: anyhandler.hpp:36
wamp::TypeId::integer
@ integer
For Variant::Int.