cellspace/LoadModules.cpp
Go to the documentation of this file.
1 // TerraLib
3 #include <terralib/core/plugin.h>
4 #include <terralib/common.h>
5 
6 
7 // STL
8 #include <iostream>
9 
11 {
13 
14  std::string plugins_path = te::core::FindInTerraLibPath("share/terralib/plugins");
15 
16 #ifdef TERRALIB_MOD_POSTGIS_ENABLED
17  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.pgis.teplg.json");
20 #endif
21 
22 #ifdef TERRALIB_MOD_GDAL_ENABLED
23  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.gdal.teplg.json");
26 #endif
27 
28 #ifdef TERRALIB_MOD_OGR_ENABLED
29  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.ogr.teplg.json");
32 #endif
33 
34 #ifdef TERRALIB_MOD_MYSQL_ENABLED
35  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.mysql.teplg.json");
38 #endif
39 
40 #ifdef TERRALIB_MOD_SQLITE_ENABLED
41  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.sqlite.teplg.json");
44 #endif
45 }
Include files for Core Plugin Library.
void LoadModules()
It loads the data source drivers.
void insert(const PluginInfo &pinfo)
Adds plugin with its plugin information to the list of unloaded plugins.
This file is a wrapper around platform specific include files.
Basic information about a plugin.
void load(const std::string &plugin_name, const bool start=true)
It tries to load the informed plugin.
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.
TECOREEXPORT PluginInfo JSONPluginInfoSerializer(const std::string &file_name)
A plugin finder that search for plugins in some special directories defined by compile time macros...
Definition: Serializers.cpp:44
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.