1/*
2 * Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19/**
20 \file poppler-version.h.in
21 \brief poppler-version.h
22 \remark poppler-version.h.in is the file name in Poppler's source files.
23 The file name as an include file is poppler-version.h.
24 */
25#include "poppler-version.h"
26
27/**
28 \def POPPLER_VERSION
29 \brief The version string of the poppler-cpp header files.
30 e.g. in poppler version 0.1.2 this is "0.1.2".
31 */
32/**
33 \def POPPLER_VERSION_MAJOR
34 \brief The "major" version number of the poppler-cpp header files.
35 e.g. in poppler version 0.1.2 this is 0.
36 */
37/**
38 \def POPPLER_VERSION_MINOR
39 \brief The "minor" version number of the poppler-cpp header files.
40 e.g. in poppler version 0.1.2 this is 1.
41 */
42/**
43 \def POPPLER_VERSION_MICRO
44 \brief The "micro" version number of the poppler-cpp header files.
45 e.g. in poppler version 0.1.2 this is 2.
46 */
47
48using namespace poppler;
49
50/**
51 \returns the version string of the current poppler-cpp library
52 */
53std::string poppler::version_string()
54{
55 return std::string(POPPLER_VERSION);
56}
57
58/**
59 \returns the "major" number of the version of the current poppler-cpp library
60 */
61unsigned int poppler::version_major()
62{
63 return POPPLER_VERSION_MAJOR;
64}
65
66/**
67 \returns the "minor" number of the version of the current poppler-cpp library
68 */
69unsigned int poppler::version_minor()
70{
71 return POPPLER_VERSION_MINOR;
72}
73
74/**
75 \returns the "micro" number of the version of the current poppler-cpp library
76 */
77unsigned int poppler::version_micro()
78{
79 return POPPLER_VERSION_MICRO;
80}
81

source code of poppler/cpp/poppler-version.cpp