soprano/version.h File Reference
#include "soprano_export.h"
Go to the source code of this file.
|
Namespaces |
namespace | Soprano |
Defines |
#define | SOPRANO_VERSION_STRING "2.0.99" |
| Soprano version as string at compile time.
|
#define | SOPRANO_VERSION_MAJOR 2 |
| The major Soprano version number at compile time.
|
#define | SOPRANO_VERSION_MINOR 0 |
| The minor Soprano version number at compile time.
|
#define | SOPRANO_VERSION_RELEASE 99 |
| The Soprano release version number at compile time.
|
#define | SOPRANO_MAKE_VERSION(a, b, c) (((a) << 16) | ((b) << 8) | (c)) |
| Create a unique number from the major, minor and release number of a Soprano version.
|
#define | SOPRANO_VERSION SOPRANO_MAKE_VERSION(SOPRANO_VERSION_MAJOR,SOPRANO_VERSION_MINOR,SOPRANO_VERSION_RELEASE) |
| Soprano Version as a unique number at compile time
|
#define | SOPRANO_IS_VERSION(a, b, c) ( SOPRANO_VERSION >= SOPRANO_MAKE_VERSION(a,b,c) ) |
| Check if the Soprano version matches a certain version or is higher.
|
Functions |
SOPRANO_EXPORT unsigned int | Soprano::versionMajor () |
| Returns the major number of Soprano's version, e.g. 1 for Soprano 1.0.2.
|
SOPRANO_EXPORT unsigned int | Soprano::versionMinor () |
| Returns the minor number of Soprano's version, e.g. 0 for Soprano 1.0.2.
|
SOPRANO_EXPORT unsigned int | Soprano::versionRelease () |
| Returns the release of Soprano's version, e.g. 2 for Soprano 1.0.2.
|
SOPRANO_EXPORT const char * | Soprano::versionString () |
| Returns the Soprano version as string, e.g. "1.0.2".
|
Define Documentation
#define SOPRANO_VERSION_STRING "2.0.99" |
#define SOPRANO_VERSION_MAJOR 2 |
The major Soprano version number at compile time.
Definition at line 31 of file version.h.
#define SOPRANO_VERSION_MINOR 0 |
The minor Soprano version number at compile time.
Definition at line 34 of file version.h.
#define SOPRANO_VERSION_RELEASE 99 |
The Soprano release version number at compile time.
Definition at line 37 of file version.h.
#define SOPRANO_MAKE_VERSION |
( |
a, |
|
|
b, |
|
|
c |
|
) |
(((a) << 16) | ((b) << 8) | (c)) |
Create a unique number from the major, minor and release number of a Soprano version.
This function can be used for preprocessing. For version information at runtime use the version methods in the Soprano namespace.
Definition at line 45 of file version.h.
#define SOPRANO_VERSION SOPRANO_MAKE_VERSION(SOPRANO_VERSION_MAJOR,SOPRANO_VERSION_MINOR,SOPRANO_VERSION_RELEASE) |
Soprano Version as a unique number at compile time
This macro calculates the Soprano version into a number. It is mainly used through SOPRANO_IS_VERSION in preprocessing. For version information at runtime use the version methods in the Soprano namespace.
Definition at line 54 of file version.h.
#define SOPRANO_IS_VERSION |
( |
a, |
|
|
b, |
|
|
c |
|
) |
( SOPRANO_VERSION >= SOPRANO_MAKE_VERSION(a,b,c) ) |
Check if the Soprano version matches a certain version or is higher.
This macro is typically used to compile conditionally a part of code:
#if SOPRANO_IS_VERSION(2,1)
#else
#endif
For version information at runtime use the version methods in the Soprano namespace.
Definition at line 72 of file version.h.