Equalizer
1.7.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
version.h
1
2
/* Copyright (c) 2006-2012, Stefan Eilemann <eile@equalizergraphics.com>
3
*
4
* This library is free software; you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License version 2.1 as published
6
* by the Free Software Foundation.
7
*
8
* This library is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11
* details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this library; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
*/
17
18
#ifndef EQ_VERSION_H
19
#define EQ_VERSION_H
20
21
#include <eq/client/api.h>
22
#include <lunchbox/types.h>
23
#include <string>
24
25
namespace
eq
26
{
27
// Equalizer version macros and functions
29
# define EQ_VERSION_MAJOR 1
30
32
# define EQ_VERSION_MINOR 7
33
35
# define EQ_VERSION_PATCH 3
36
38
# define EQ_VERSION_REVISION bf3da78
39
41
# define EQ_VERSION_ABI 2
42
44
# define EQ_COLLAGE_VERSION 1.1.1
45
47
# define EQ_LUNCHBOX_VERSION 1.9.1
48
50
# define EQ_VERSION_GT( MAJOR, MINOR, PATCH ) \
51
( (EQ_VERSION_MAJOR>MAJOR) || \
52
(EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR>MINOR || \
53
(EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH>PATCH))))
54
56
# define EQ_VERSION_GE( MAJOR, MINOR, PATCH ) \
57
( (EQ_VERSION_MAJOR>MAJOR) || \
58
(EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR>MINOR || \
59
(EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH>=PATCH))))
60
62
# define EQ_VERSION_LT( MAJOR, MINOR, PATCH ) \
63
( (EQ_VERSION_MAJOR<MAJOR) || \
64
(EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR<MINOR || \
65
(EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH<PATCH))))
66
68
# define EQ_VERSION_LE( MAJOR, MINOR, PATCH ) \
69
( (EQ_VERSION_MAJOR<MAJOR) || \
70
(EQ_VERSION_MAJOR==MAJOR && (EQ_VERSION_MINOR<MINOR || \
71
(EQ_VERSION_MINOR==MINOR && EQ_VERSION_PATCH<=PATCH))))
72
74
class
EQ_API Version
75
{
76
public
:
78
static
uint32_t getMajor();
79
81
static
uint32_t getMinor();
82
84
static
uint32_t getPatch();
85
87
static
std::string getRevision();
88
90
static
uint32_t getABI();
91
93
static
uint32_t getInt();
94
96
static
float
getFloat();
97
102
static
std::string getString();
103
108
static
bool
check
()
109
{
return
getMajor()==EQ_VERSION_MAJOR && getMinor()==EQ_VERSION_MINOR; }
110
};
111
}
112
113
#endif //EQ_VERSION_H
eq::Version::check
static bool check()
Definition:
version.h:108
home
bilgili
bbpsrv22
Equalizer
install
include
eq
version.h
Generated on Wed Jun 18 2014 12:33:14 for Equalizer by
1.8.6