OpenNI 1.5.4
XnVersion.h
Go to the documentation of this file.
1 /****************************************************************************
2 * *
3 * OpenNI 1.x Alpha *
4 * Copyright (C) 2011 PrimeSense Ltd. *
5 * *
6 * This file is part of OpenNI. *
7 * *
8 * OpenNI is free software: you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published *
10 * by the Free Software Foundation, either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * OpenNI is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with OpenNI. If not, see <http://www.gnu.org/licenses/>. *
20 * *
21 ****************************************************************************/
22 #ifndef _XN_VERSION_H_
23 #define _XN_VERSION_H_
24 
25 //---------------------------------------------------------------------------
26 // Includes
27 //---------------------------------------------------------------------------
28 #include "XnPlatform.h"
29 
30 //---------------------------------------------------------------------------
31 // Defines
32 //---------------------------------------------------------------------------
34 #define XN_MAJOR_VERSION 1
35 
36 #define XN_MINOR_VERSION 5
37 
38 #define XN_MAINTENANCE_VERSION 4
39 
40 #define XN_BUILD_VERSION 0
41 
43 #define XN_BRIEF_VERSION_STRING \
44  XN_STRINGIFY(XN_MAJOR_VERSION) "." \
45  XN_STRINGIFY(XN_MINOR_VERSION) "." \
46  XN_STRINGIFY(XN_MAINTENANCE_VERSION) \
47  " (Build " XN_STRINGIFY(XN_BUILD_VERSION) ")"
48 
50 #define XN_VERSION (XN_MAJOR_VERSION*100000000 + XN_MINOR_VERSION*1000000 + XN_MAINTENANCE_VERSION*10000 + XN_BUILD_VERSION)
51 
53 #define XN_VERSION_STRING \
54  XN_BRIEF_VERSION_STRING "-" \
55  XN_PLATFORM_STRING " (" XN_TIMESTAMP ")"
56 
57 #endif //_XN_VERSION_H_
58