UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
pythonwrapper.h
Go to the documentation of this file.
1
#ifndef UGDK_SCRIPT_PYTHON_PYTHONWRAPPER_H_
2
#define UGDK_SCRIPT_PYTHON_PYTHONWRAPPER_H_
3
4
#include <vector>
5
#include <
ugdk/script/langwrapper.h
>
6
7
namespace
ugdk {
8
namespace
script {
9
10
class
VirtualObj;
11
12
namespace
python {
13
14
typedef
void (*
PyInitFunction
)(void);
15
typedef
ugdk::script::Module<PyInitFunction>
PythonModule
;
16
typedef
ugdk::script::InheritableLangWrapper<PyInitFunction>
PythonWrapperBase
;
17
18
19
class
PythonWrapper
:
public
PythonWrapperBase
{
20
public
:
21
PythonWrapper
() :
PythonWrapperBase
(
"py"
,
LANG
(Python)) {}
22
virtual
~PythonWrapper
() {}
23
24
virtual
VirtualData::Ptr
NewData
();
25
26
virtual
void
ExecuteCode
(
const
std::string& code);
27
28
virtual
VirtualObj
LoadModule
(
const
std::string& name);
29
31
virtual
bool
Initialize
();
33
virtual
void
Finalize
();
34
35
void
PrintPythonExceptionDetails
();
36
37
private
:
38
//std::vector<Module> modules_;
39
};
40
41
}
42
}
43
}
44
45
#endif
/* UGDK_SCRIPT_PYTHON_PYTHONWRAPPER_H_ */
src
ugdk
script
languages
python
pythonwrapper.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2