cppthread 1.1.16
C++ Thread Library
Functions
version.cpp File Reference

The version of the cppthread at compile time. More...

#include "cppthread/version.h"
#include <snapdev/poison.h>
Include dependency graph for version.cpp:

Go to the source code of this file.

Functions

int cppthread::get_major_version ()
 Get the major version of the library.
 
int cppthread::get_patch_version ()
 Get the patch version of the library.
 
int cppthread::get_release_version ()
 Get the minor version of the library.
 
char const * cppthread::get_version_string ()
 Get the full version of the library as a string.
 

Detailed Description

This file records the cppthread library version at compile time.

The &#35;define give you the library version at the time you are compiling. The functions allow you to retrieve the version of a dynamically linked library.

Definition in file version.cpp.

Function Documentation

◆ get_major_version()

int cppthread::get_major_version ( )

This function returns the major version of the running library (the one you are linked against at runtime).

Returns
The major version.

Definition at line 82 of file version.cpp.

References CPPTHREAD_VERSION_MAJOR, and cppthread::get_major_version().

Referenced by cppthread::get_major_version().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_patch_version()

int cppthread::get_patch_version ( )

This function returns the patch version of the running library (the one you are linked against at runtime).

Returns
The patch version.

Definition at line 108 of file version.cpp.

References CPPTHREAD_VERSION_PATCH, and cppthread::get_patch_version().

Referenced by cppthread::get_patch_version().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_release_version()

int cppthread::get_release_version ( )

This function returns the minor version of the running library (the one you are linked against at runtime).

Returns
The release version.

Definition at line 95 of file version.cpp.

References CPPTHREAD_VERSION_MINOR, and cppthread::get_release_version().

Referenced by cppthread::get_release_version().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_version_string()

char const * cppthread::get_version_string ( )

This function returns the major, minor, and patch versions of the running library (the one you are linked against at runtime) in the form of a string.

The build version is not made available. In most cases we change the build version only to run a new build, so not code will have changed (some documentation and non-code files may changed between build versions; but the code will work exactly the same way.)

Returns
The library version.

Definition at line 127 of file version.cpp.

References CPPTHREAD_VERSION_STRING, and cppthread::get_version_string().

Referenced by cppthread::get_version_string().

Here is the call graph for this function:
Here is the caller graph for this function:

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.