blob: 94359176ba5623194f83bc30230ab7dcc1c74cf4 (
plain)
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
|
#ifndef __lib_python_python_h
#define __lib_python_python_h
#include <string>
/* class ePyObject
{
void *m_object;
public:
ePyObject(void *ptr);
ePyObject(ePyObject &p);
ePyObject();
ePyObject &operator=(ePyObject &p);
ePyObject &operator=(void *p);
~ePyObject();
void *get() { return m_object; }
}; */
typedef struct _object PyObject;
class ePython
{
public:
ePython();
~ePython();
int execute(const std::string &pythonfile, const std::string &funcname);
static void call(PyObject *pFunc, PyObject *args);
static PyObject *resolve(const std::string &pythonfile, const std::string &funcname);
private:
};
#endif
|