qt/query/LoadModules.cpp
Go to the documentation of this file.
1 #include "LoadModules.h"
2 
3 #include "Config.h"
4 
6 #include <terralib/core/plugin.h>
7 #include <terralib/common.h>
8 
9 
10 #include <iostream>
11 
13 {
15 
16  std::string plugins_path = te::core::FindInTerraLibPath("share/terralib/plugins");
17 
18 #ifdef TERRALIB_MOD_OGR_ENABLED
19  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.ogr.teplg.json");
22 #endif
23 
24 #ifdef TERRALIB_MOD_GDAL_ENABLED
25  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.gdal.teplg.json");
28 #endif
29 
30 #ifdef TERRALIB_MOD_POSTGIS_ENABLED
31  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.pgis.teplg.json");
34 #endif
35 
36 #ifdef TERRALIB_MOD_GRIB_ENABLED
37  info = te::core::JSONPluginInfoSerializer(plugins_path + "/plugin_grib_info.xml");
40 #endif
41 }
Include files for Core Plugin Library.
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.
void LoadModules()
It loads the data source drivers.
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.