33 #include <QApplication> 34 #include <QMessageBox> 47 #ifdef TERRALIB_MOD_OGR_ENABLED 53 #ifdef TERRALIB_MOD_POSTGIS_ENABLED 59 #ifdef TERRALIB_MOD_GDAL_ENABLED 71 int main(
int argc,
char** argv)
89 std::cout << std::endl <<
"An exception has occurred:" << std::endl;
90 std::cout << e.
what() << std::endl;
91 std::cout <<
"Press Enter to exit..." << std::endl;
96 catch(
const std::exception& e)
98 std::cout << std::endl <<
"An unexpected exception has occurred!" << std::endl;
99 std::cout <<
"Press Enter to exit..." << std::endl;
110 std::cout <<
"Press Enter to exit..." << std::endl;
Include files for Core Plugin Library.
void insert(const PluginInfo &pinfo)
Adds plugin with its plugin information to the list of unloaded plugins.
virtual const char * what() const
It outputs the exception message.
Basic information about a plugin.
int main(int argc, char **argv)
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 finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
void initialize()
It initializes the TerraLib Platform.
TECOREEXPORT PluginInfo JSONPluginInfoSerializer(const std::string &file_name)
A plugin finder that search for plugins in some special directories defined by compile time macros...
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.
void clear()
Stop and unload all plugins, then clear the internal list of plugins.
A simple main window to show example of TerraLib Qt Tools.