2
* This file is part of Soprano Project.
4
* Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
16
* You should have received a copy of the GNU Library General Public License
17
* along with this library; see the file COPYING.LIB. If not, write to
18
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
* Boston, MA 02110-1301, USA.
22
#ifndef _SOPRANO_VERSION_H_
23
#define _SOPRANO_VERSION_H_
25
#include "soprano_export.h"
27
/// @brief Soprano version as string at compile time.
28
#define SOPRANO_VERSION_STRING "${CMAKE_SOPRANO_VERSION_STRING}"
30
/// @brief The major Soprano version number at compile time
31
#define SOPRANO_VERSION_MAJOR ${CMAKE_SOPRANO_VERSION_MAJOR}
33
/// @brief The minor Soprano version number at compile time
34
#define SOPRANO_VERSION_MINOR ${CMAKE_SOPRANO_VERSION_MINOR}
36
/// @brief The Soprano release version number at compile time
37
#define SOPRANO_VERSION_RELEASE ${CMAKE_SOPRANO_VERSION_RELEASE}
41
* @brief Returns the major number of Soprano's version, e.g.
42
* 1 for %Soprano 1.0.2.
43
* @return the major version number at runtime.
45
SOPRANO_EXPORT unsigned int versionMajor();
48
* @brief Returns the minor number of Soprano's version, e.g.
49
* 0 for %Soprano 1.0.2.
50
* @return the minor version number at runtime.
52
SOPRANO_EXPORT unsigned int versionMinor();
55
* @brief Returns the release of Soprano's version, e.g.
56
* 2 for %Soprano 1.0.2.
57
* @return the release number at runtime.
59
SOPRANO_EXPORT unsigned int versionRelease();
62
* @brief Returns the %Soprano version as string, e.g. "1.0.2".
64
* On contrary to the macro SOPRANO_VERSION_STRING this function returns
65
* the version number of Soprano at runtime.
66
* @return the %Soprano version. You can keep the string forever
68
SOPRANO_EXPORT const char* versionString();