CppWAMP
C++11 client library for the WAMP protocol
wamp::Version Struct Reference

Bundles the major, minor, and patch version numbers. More...

#include <cppwamp/version.hpp>

Static Public Member Functions

static Version parts ()
 Obtains the current version of the library as major/minor/patch parts.
 
static int integer ()
 Obtains an integer representation of the library's current version. More...
 
static std::string toString ()
 Obtains the library's current version as a string. More...
 
static std::string agentString ()
 Obtains the agent string sent in HELLO messages. More...
 

Public Attributes

int major
 Major version with incompatible API changes.
 
int minor
 Minor version with functionality added in a backwards-compatible manner.
 
int patch
 Patch version for backwards-compatible bug fixes.
 

Detailed Description

Bundles the major, minor, and patch version numbers.

See also
CPPWAMP_MAJOR_VERSION
CPPWAMP_MINOR_VERSION
CPPWAMP_PATCH_VERSION
CPPWAMP_VERSION

Member Function Documentation

◆ integer()

int wamp::Version::integer ( )
static

Obtains an integer representation of the library's current version.

The integer version number is computed as:

(MAJOR*10000) + (MINOR*100) + PATCH

◆ toString()

std::string wamp::Version::toString ( )
static

Obtains the library's current version as a string.

The string representation is formatted as:

MAJOR.MINOR.PATCH

without any zero padding.

◆ agentString()

std::string wamp::Version::agentString ( )
static

Obtains the agent string sent in HELLO messages.

The agent string is formatted as:

cppwamp-MAJOR.MINOR.PATCH

without any zero padding.


The documentation for this struct was generated from the following files: