TIN/LoadModules.cpp
Go to the documentation of this file.
1 // TerraLib
3 #include <terralib/core/plugin.h>
4 #include <terralib/common.h>
5 
6 #include <terralib_buildconfig.h>
7 
8 // STL
9 #include <iostream>
10 
12 {
14 
15  std::string plugins_path = te::core::FindInTerraLibPath("share/terralib/plugins");
16 
17 #ifdef TERRALIB_MOD_GDAL_ENABLED
18  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.gdal.teplg.json");
21 #endif
22 
23 #ifdef TERRALIB_MOD_OGR_ENABLED
24  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.ogr.teplg.json");
27 #endif
28 }
Include files for Core Plugin Library.
void insert(const PluginInfo &pinfo)
Adds plugin with its plugin information to the list of unloaded plugins.
void LoadModules()
It loads the data source drivers.
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.