1 #ifndef UGDK_SCRIPT_PYTHON_PYTHONWRAPPER_H_
2 #define UGDK_SCRIPT_PYTHON_PYTHONWRAPPER_H_
19 #define PYTHON_INIT_FUNCTION_NAME(name) init_##name
20 #define PYTHON_INIT_FUNCTION_SIGNATURE(name) void PYTHON_INIT_FUNCTION_NAME(name)(void)
21 #define PYTHON_MODULE_NAME(name) "_" #name
22 #define PYTHON_NAMESPACE ::ugdk::script::python
ugdk::script::Module< PyInitFunction > PythonModule
Definition: pythonwrapper.h:15
virtual VirtualData::Ptr NewData()
Definition: pythonwrapper.h:24
Definition: animation.h:11
std::shared_ptr< VirtualData > Ptr
Definition: virtualdata.h:46
virtual void Finalize()
Finalizes the LangWrapper, finalizing any language specific stuff.
void PrintPythonExceptionDetails()
PythonWrapper()
Definition: pythonwrapper.h:26
void(* PyInitFunction)(void)
Definition: pythonwrapper.h:14
virtual VirtualObj LoadModule(const std::string &name)
virtual void ExecuteCode(const std::string &code)
#define LANG(name)
Here are the common definitions of the script system.
Definition: defs.h:7
A proxy class wich represents virtual objects from scripting languages.
Definition: virtualobj.h:30
ugdk::script::InheritableLangWrapper< PyInitFunction > PythonWrapperBase
Definition: pythonwrapper.h:16
virtual bool Initialize()
Initializes the LangWrapper (that is, the language's API. Returns bool telling if (true=) no problems...
virtual ~PythonWrapper()
Definition: pythonwrapper.h:27
Wraps a scripting language.
Definition: script.h:15
ugdk::script::python::PyInitFunction inittype
Definition: pythonwrapper.h:17