28 #include "WScriptEngine.h"
29 #include "python/WScriptInterpreterPython.h"
34 m_interpreters.push_back( std::shared_ptr< WScriptInterpreter >(
new WScriptInterpreterPython( rootContainer ) ) );
36 ( void ) rootContainer;
57 return std::shared_ptr< WScriptInterpreter >();
69 return std::shared_ptr< WScriptInterpreter >();
83 return std::shared_ptr< WScriptInterpreter >();
std::shared_ptr< WScriptInterpreter > getInterpreter(std::string const &name)
This finds an interpreter by script language name.
virtual ~WScriptEngine()
Destructor.
std::shared_ptr< WScriptInterpreter > getInterpreterByFileExtension(std::string const &ext)
This finds an interpreter suitable for executing script files ending with the given extension.
std::size_t getNumInterpreters() const
Get the number of script interpreters available.
std::vector< std::shared_ptr< WScriptInterpreter > > m_interpreters
The list of available script interpreters.
WScriptEngine(std::shared_ptr< WModuleContainer > const &rootContainer)
Constructs a new script engine.