OniVersion.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * *
3 * OpenNI 2.x Alpha *
4 * Copyright (C) 2012 PrimeSense Ltd. *
5 * *
6 * This file is part of OpenNI. *
7 * *
8 * Licensed under the Apache License, Version 2.0 (the "License"); *
9 * you may not use this file except in compliance with the License. *
10 * You may obtain a copy of the License at *
11 * *
12 * http://www.apache.org/licenses/LICENSE-2.0 *
13 * *
14 * Unless required by applicable law or agreed to in writing, software *
15 * distributed under the License is distributed on an "AS IS" BASIS, *
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
17 * See the License for the specific language governing permissions and *
18 * limitations under the License. *
19 * *
20 *****************************************************************************/
21 #ifndef ONIVERSION_H
22 #define ONIVERSION_H
23 
24 #include "OniPlatform.h"
25 
26 #define ONI_VERSION_MAJOR 2
27 #define ONI_VERSION_MINOR 3
28 #define ONI_VERSION_MAINTENANCE 0
29 #define ONI_VERSION_BUILD 50
30 
32 #define ONI_BRIEF_VERSION_STRING \
33  ONI_STRINGIFY(ONI_VERSION_MAJOR) "." \
34  ONI_STRINGIFY(ONI_VERSION_MINOR) "." \
35  ONI_STRINGIFY(ONI_VERSION_MAINTENANCE) \
36  " (Build " ONI_STRINGIFY(ONI_VERSION_BUILD) ")"
37 
39 #define ONI_VERSION (ONI_VERSION_MAJOR*100000000 + ONI_VERSION_MINOR*1000000 + ONI_VERSION_MAINTENANCE*10000 + ONI_VERSION_BUILD)
40 #define ONI_CREATE_API_VERSION(major, minor) ((major)*1000 + (minor))
41 #define ONI_API_VERSION ONI_CREATE_API_VERSION(ONI_VERSION_MAJOR, ONI_VERSION_MINOR)
42 
44 #define ONI_VERSION_STRING \
45  ONI_BRIEF_VERSION_STRING "-" \
46  ONI_PLATFORM_STRING " (" ONI_TIMESTAMP ")"
47 
48 #endif // ONIVERSION_H


astra_camera
Author(s): Tim Liu
autogenerated on Wed Dec 16 2020 03:54:34