48 "share/terralib/plugins/te.vm.lua.teplg.json");
50 "share/terralib/plugins/te.vm.python.teplg.json");
60 std::cout <<
"=== LUA VIRTUAL MACHINE ===\n";
62 std::string lua_script =
72 std::cout <<
"=== PYTHON VIRTUAL MACHINE ===\n";
74 std::string py_script =
88 if(
const std::string*
d = boost::get_error_info<te::ErrorDescription>(e))
90 std::cerr << *
d << std::endl;
virtual void setFileName(QString file)=0
setFileName Sets the file that will be used in the Virtual Machine.
void insert(const PluginInfo &pinfo)
Adds plugin with its plugin information to the list of unloaded plugins.
Include files for Core Library.
Basic information about a plugin.
void load(const std::string &plugin_name, const bool start=true)
It tries to load the informed plugin.
virtual void execute()=0
execute Executes the script file previously set.
std::string name
The plugin name: an internal value used to identify the plugin in the system. Must be a unique value...
static PluginManager & instance()
Access the singleton.
void finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
static VirtualMachineManager & instance()
Return a reference to the singleton.
void initialize()
It initializes the TerraLib Platform.
TECOREEXPORT PluginInfo JSONPluginInfoSerializer(const std::string &file_name)
A plugin finder that search for plugins in some special directories defined by compile time macros...
TECOREEXPORT std::string FindInTerraLibPath(const std::string &path)
Returns the path relative to a directory or file in the context of TerraLib.
This file contains include headers for the TerraLib Common Runtime module.
VirtualMachine * get(const std::string &id) const
It returns the VM identified by id.
Base exception class for TerraLib Virtual Machine Library.
Include files for Virtual Machine Library.
void clear()
Stop and unload all plugins, then clear the internal list of plugins.