i6engine  1.0
i6e::modules::PythonScriptingManager Class Reference

#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/modules/pythonscripting/PythonScriptingManager.h>

Public Member Functions

 PythonScriptingManager ()
 constructor More...
 
 ~PythonScriptingManager ()
 destructor More...
 
void Tick ()
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callScript (const std::string &file, const std::string &func, args...B)
 executes the given method in the given script with return type void More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callScript (const std::string &file, const std::string &func, args...B)
 executes the given method in the given script with return type non-void More...
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callFunction (const std::string &func, args...B)
 executes the given method with return type void More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callFunction (const std::string &func, args...B)
 executes the given method with return type non-void More...
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callScriptWithCallback (const std::string &file, const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method in the given script with return type void and calls callback after execution of the script More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callScriptWithCallback (const std::string &file, const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method in the given script with return type non-void and calls callback after execution of the script More...
 
template<typename Ret , typename... args>
std::enable_if< std::is_void< Ret >::value, Ret >::type callFunctionWithCallback (const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method with return type void and calls callback after execution of the script More...
 
template<typename Ret , typename... args>
std::enable_if<!std::is_void< Ret >::value, std::shared_ptr< utils::Future< Ret > > >::type callFunctionWithCallback (const std::string &func, const std::function< void(void)> &callback, args...B)
 executes the given method with return type non-void and calls callback after execution of the script More...
 
template<typename T >
std::enable_if< std::is_pointer< T >::value >::type setGlobalVariable (const std::string &name, T value)
 sets a global variable More...
 
void loadAllScripts ()
 loads all scripts into dictionary More...
 

Friends

class PythonScriptingMailbox
 
class api::ScriptingFacade
 

Detailed Description

Definition at line 46 of file PythonScriptingManager.h.

Constructor & Destructor Documentation

i6e::modules::PythonScriptingManager::PythonScriptingManager ( )

constructor

i6e::modules::PythonScriptingManager::~PythonScriptingManager ( )

destructor

Member Function Documentation

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::PythonScriptingManager::callFunction ( const std::string &  func,
args...  B 
)
inline

executes the given method with return type void

Definition at line 109 of file PythonScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::PythonScriptingManager::callFunction ( const std::string &  func,
args...  B 
)
inline

executes the given method with return type non-void

Definition at line 127 of file PythonScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::PythonScriptingManager::callFunctionWithCallback ( const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method with return type void and calls callback after execution of the script

Definition at line 189 of file PythonScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::PythonScriptingManager::callFunctionWithCallback ( const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method with return type non-void and calls callback after execution of the script

Definition at line 208 of file PythonScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::PythonScriptingManager::callScript ( const std::string &  file,
const std::string &  func,
args...  B 
)
inline

executes the given method in the given script with return type void

Definition at line 67 of file PythonScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::PythonScriptingManager::callScript ( const std::string &  file,
const std::string &  func,
args...  B 
)
inline

executes the given method in the given script with return type non-void

Definition at line 87 of file PythonScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<std::is_void<Ret>::value, Ret>::type i6e::modules::PythonScriptingManager::callScriptWithCallback ( const std::string &  file,
const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method in the given script with return type void and calls callback after execution of the script

Definition at line 147 of file PythonScriptingManager.h.

template<typename Ret , typename... args>
std::enable_if<!std::is_void<Ret>::value, std::shared_ptr<utils::Future<Ret> > >::type i6e::modules::PythonScriptingManager::callScriptWithCallback ( const std::string &  file,
const std::string &  func,
const std::function< void(void)> &  callback,
args...  B 
)
inline

executes the given method in the given script with return type non-void and calls callback after execution of the script

Definition at line 167 of file PythonScriptingManager.h.

void i6e::modules::PythonScriptingManager::loadAllScripts ( )

loads all scripts into dictionary

template<typename T >
std::enable_if<std::is_pointer<T>::value>::type i6e::modules::PythonScriptingManager::setGlobalVariable ( const std::string &  name,
value 
)
inline

sets a global variable

Definition at line 229 of file PythonScriptingManager.h.

void i6e::modules::PythonScriptingManager::Tick ( )

Friends And Related Function Documentation

friend class api::ScriptingFacade
friend

Definition at line 48 of file PythonScriptingManager.h.

friend class PythonScriptingMailbox
friend

Definition at line 47 of file PythonScriptingManager.h.


The documentation for this class was generated from the following file: