25 #ifndef WSCRIPTENGINE_H
26 #define WSCRIPTENGINE_H
33 #include "../kernel/WModuleContainer.h"
34 #include "WScriptInterpreter.h"
48 explicit WScriptEngine( std::shared_ptr< WModuleContainer >
const& rootContainer );
71 std::shared_ptr< WScriptInterpreter >
getInterpreter( std::string
const& name );
87 std::shared_ptr< WScriptInterpreter >
getInterpreter( std::size_t index );
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.