File: grabber_callback.h

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,828 kB
  • sloc: python: 3,094; cpp: 283; makefile: 181; sh: 24; ansic: 12
file content (33 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (3)
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