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