27 #include "../common/Logger.h"
28 #include "../common/TerraLib.h"
29 #include "../common/Translator.h"
36 #if TE_AUTOMATICALLY_LOAD_DEFAULT_XML_PLUGIN
63 #if TE_AUTOMATICALLY_LOAD_DEFAULT_XML_PLUGIN
65 pinfo.
m_name =
"TERRALIB_XERCES";
85 #if TE_AUTOMATICALLY_LOAD_DEFAULT_XML_PLUGIN
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level.
#define TE_PLUGIN_MODULE_NAME
The module name (identifier).
std::string m_name
The plugin name: an internal value used to identify the plugin in the system. Must be a unique value...
An abstract class for TerraLib Plugins.
void unloadAll()
It try to unload all plugins.
This singleton defines the TerraLib Plugin module entry.
Module()
The singleton constructor is not callable outside the class.
#define TE_TR(message)
It marks a string in order to get translated.
void load(boost::ptr_vector< PluginInfo > &plugins, const bool start=true)
It tries to load all informed plugins.
std::string m_engine
The type of plugin execution engine: C++, JAVA.
static Module & getInstance()
It returns a reference to the singleton instance.
Utility functions for dealing with plugins.
AbstractPlugin * detach(const std::string &pluginName)
It detaches the given plugin from the list of loaded plugins.
void remove(const std::string &moduleName)
It removes the module entry identified by the given name.
const te::addressgeocoding::Module & sm_module
void add(const Module &m)
It registers the module in the TerraLib Platform.
static te::plugin::AbstractPlugin * sg_xercesPlugins(0)
#define TE_CPPPLUGINENGINE_CODE
The plugin engine name for C++ plugins.
TEPLUGINEXPORT void UnloadAllPluginsFromEngine(const std::string &engine)
It unloads all plugins from a given engine.
A singleton for managing plugins.
std::vector< Resource > m_resources
The list of resources used by plugin.
std::pair< std::string, std::string > Resource
This internal structure is used to model the basic information about a TerraLib module.
static void finalize()
This is the cleanup function for the TerraLib Plugin module.
This singleton defines the TerraLib Plugin module entry.
The basic information about a plugin.
The basic information about a plugin.
std::string m_category
The plugin category.
static void initialize()
This is the startup function for the TerraLib Plugin module.
void unload(const std::string &name)
It tries to unload a given plugin.
This is the concrete factory for C++ plugin engines.