25 #ifndef WSCRIPTENGINE_H
26 #define WSCRIPTENGINE_H
32 #include <boost/shared_ptr.hpp>
35 #include "../kernel/WModuleContainer.h"
37 #include "WScriptInterpreter.h"
51 explicit WScriptEngine( boost::shared_ptr< WModuleContainer >
const& rootContainer );
74 boost::shared_ptr< WScriptInterpreter >
getInterpreter( std::string
const& name );
90 boost::shared_ptr< WScriptInterpreter >
getInterpreter( std::size_t index );
97 #endif // WSCRIPTENGINE_H
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.