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