ado/LoadModules.cpp
Go to the documentation of this file.
1 // Example
2 #include "ADOExamples.h"
3 
4 // TerraLib
5 #include <terraLib/core/utils/Platform.h>
6 #include <terralib/core/plugin.h>
7 #include <terralib/common.h>
8 
9 
10 // STL
11 #include <iostream>
12 
14 {
16 
17  std::string plugins_path = te::core::FindInTerraLibPath("share/terralib/plugins");
18 
19 #ifdef TERRALIB_MOD_ADO_ENABLED
20  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.ado.teplg.json");
23 #endif
24 
25 #ifdef TERRALIB_MOD_OGR_ENABLED
26  info = te::core::JSONPluginInfoSerializer(plugins_path + "/te.da.ogr.teplg.json");
29 #endif
30 }
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.
Basic information about a plugin.
Examples that show how to access/manipulate an ADO data source.
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.