Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 72383511c0
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (52 sloc) 1.923 kb
/* ***** BEGIN GPL LICENSE BLOCK *****
*
* This file is part of node-openni.
*
* node-openni is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* node-openni is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with node-openni. If not, see <http://www.gnu.org/licenses/>.
*
* node-openni is Copyright (C) 2012, Xavier Mendez (jmendeth).
*
* ***** END GPL LICENSE BLOCK ***** */
#ifndef NODE_XN_CONTEXT_H
#define NODE_XN_CONTEXT_H
#include "wrapperUtils.h"
namespace node_xn {
using namespace v8;
using namespace node;
/* Root class, so forward declarations go here */
class ProductionNode;
class Generator;
class GestureGenerator;
class Context: public ObjectWrap {
public:
/* Factory method(s) */
static void Init(XnContextPtr& handle);
/* Core methods */
inline Context(XnContextPtr const handle) : ptr(handle) {OnConstruct();}
~Context();
/* Copy ctor. */
inline Context(const Context& orig) : ptr(orig.ptr) {OnConstruct();}
/** WRAPPED METHODS **/
static Handle<Value> initSync(const Arguments& args);
private:
XnContextPtr const ptr;
void OnConstruct();
friend class ProductionNode;
friend class Generator;
friend class GestureGenerator;
};
/* Initializer */
Persistent<FunctionTemplate> INIT_Context(Handle<Object> ctx);
}
#endif /* NODE_XN_CONTEXT_H */
Jump to Line
Something went wrong with that request. Please try again.