OniVersion.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002 *                                                                            *
00003 *  OpenNI 2.x Alpha                                                          *
00004 *  Copyright (C) 2012 PrimeSense Ltd.                                        *
00005 *                                                                            *
00006 *  This file is part of OpenNI.                                              *
00007 *                                                                            *
00008 *  Licensed under the Apache License, Version 2.0 (the "License");           *
00009 *  you may not use this file except in compliance with the License.          *
00010 *  You may obtain a copy of the License at                                   *
00011 *                                                                            *
00012 *      http://www.apache.org/licenses/LICENSE-2.0                            *
00013 *                                                                            *
00014 *  Unless required by applicable law or agreed to in writing, software       *
00015 *  distributed under the License is distributed on an "AS IS" BASIS,         *
00016 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
00017 *  See the License for the specific language governing permissions and       *
00018 *  limitations under the License.                                            *
00019 *                                                                            *
00020 *****************************************************************************/
00021 #ifndef ONIVERSION_H
00022 #define ONIVERSION_H
00023 
00024 #include "OniPlatform.h"
00025 
00026 #define ONI_VERSION_MAJOR       2
00027 #define ONI_VERSION_MINOR       3
00028 #define ONI_VERSION_MAINTENANCE 0
00029 #define ONI_VERSION_BUILD       50
00030 
00032 #define ONI_BRIEF_VERSION_STRING \
00033         ONI_STRINGIFY(ONI_VERSION_MAJOR) "." \
00034         ONI_STRINGIFY(ONI_VERSION_MINOR) "." \
00035         ONI_STRINGIFY(ONI_VERSION_MAINTENANCE) \
00036         " (Build " ONI_STRINGIFY(ONI_VERSION_BUILD) ")"
00037 
00039 #define ONI_VERSION (ONI_VERSION_MAJOR*100000000 + ONI_VERSION_MINOR*1000000 + ONI_VERSION_MAINTENANCE*10000 + ONI_VERSION_BUILD)
00040 #define ONI_CREATE_API_VERSION(major, minor) ((major)*1000 + (minor))
00041 #define ONI_API_VERSION ONI_CREATE_API_VERSION(ONI_VERSION_MAJOR, ONI_VERSION_MINOR)
00042 
00044 #define ONI_VERSION_STRING \
00045         ONI_BRIEF_VERSION_STRING  "-" \
00046         ONI_PLATFORM_STRING " (" ONI_TIMESTAMP ")"
00047 
00048 #endif // ONIVERSION_H


astra_camera
Author(s): Tim Liu
autogenerated on Wed Jul 10 2019 03:18:54