~ubuntu-branches/ubuntu/gutsy/soprano/gutsy

« back to all changes in this revision

Viewing changes to soprano/version.h.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-12 14:43:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071012144348-yajzi51v4k23ahxf
Tags: 1.95.0~beta2-1ubuntu1
* Sync with Debian
* Add versioned build-dep on raptor

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of Soprano Project.
 
3
 *
 
4
 * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 */
 
21
 
 
22
#ifndef _SOPRANO_VERSION_H_
 
23
#define _SOPRANO_VERSION_H_
 
24
 
 
25
#include "soprano_export.h"
 
26
 
 
27
/// @brief Soprano version as string at compile time.
 
28
#define SOPRANO_VERSION_STRING "${CMAKE_SOPRANO_VERSION_STRING}"
 
29
 
 
30
/// @brief The major Soprano version number at compile time
 
31
#define SOPRANO_VERSION_MAJOR ${CMAKE_SOPRANO_VERSION_MAJOR}
 
32
 
 
33
/// @brief The minor Soprano version number at compile time
 
34
#define SOPRANO_VERSION_MINOR ${CMAKE_SOPRANO_VERSION_MINOR}
 
35
 
 
36
/// @brief The Soprano release version number at compile time
 
37
#define SOPRANO_VERSION_RELEASE ${CMAKE_SOPRANO_VERSION_RELEASE}
 
38
 
 
39
namespace Soprano {
 
40
    /**
 
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.
 
44
     */
 
45
    SOPRANO_EXPORT unsigned int versionMajor();
 
46
 
 
47
    /**
 
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.
 
51
     */
 
52
    SOPRANO_EXPORT unsigned int versionMinor();
 
53
 
 
54
    /**
 
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.
 
58
     */
 
59
    SOPRANO_EXPORT unsigned int versionRelease();
 
60
 
 
61
    /**
 
62
     * @brief Returns the %Soprano version as string, e.g. "1.0.2".
 
63
     *
 
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
 
67
     */
 
68
    SOPRANO_EXPORT const char* versionString();
 
69
}
 
70
 
 
71
#endif