OpenNI 1.5.4
XnCallback.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_CALLBACK_H__
23 #define __XN_CALLBACK_H__
24 
25 //---------------------------------------------------------------------------
26 // Types
27 //---------------------------------------------------------------------------
31 struct XnCallback
32 {
33  XnCallback() : pFuncPtr(NULL), pCookie(NULL) {}
35  void Set(XnFuncPtr pFuncPtr, void* pCookie) { this->pFuncPtr = pFuncPtr; this->pCookie = pCookie; }
36 
38  void* pCookie;
39 };
40 
41 #endif //__XN_CALLBACK_H__
XnFuncPtr
void(* XnFuncPtr)()
Definition: XnPlatform.h:100
XnCallback::XnCallback
XnCallback()
Definition: XnCallback.h:51
XnCallback::pFuncPtr
XnFuncPtr pFuncPtr
Definition: XnCallback.h:55
XnCallback::pCookie
void * pCookie
Definition: XnCallback.h:56
XnCallback
Definition: XnCallback.h:30
XnCallback::Set
void Set(XnFuncPtr pFuncPtr, void *pCookie)
Definition: XnCallback.h:53