1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#ifndef GRABBER_CALLBACK_H_
#define GRABBER_CALLBACK_H_
namespace grabber_callback
{
class PyLibCallBack
{
public:
// This is wrapper of Python fuction.
typedef double (*Method)(void *param, void *user_data);
// Constructor
PyLibCallBack();
PyLibCallBack(Method method, void *user_data);
// Destructor
virtual ~PyLibCallBack();
double cy_execute(void *parameter);
bool IsCythonCall()
{
return is_cy_call;
}
protected:
bool is_cy_call;
private:
Method _method;
void *_user_data;
};
}
#endif
|