A utility class to initialize and terminate TerraLib GRIB driver support. More...
#include <Platform.h>
Public Member Functions | |
const PluginInfo & | getInfo () const |
It return the information associated to the plugin. More... | |
bool | isStarted () const |
It tells if the plugin was started or not. More... | |
bool | operator< (const AbstractPlugin &rhs) const |
This overloaded operator can be used to index the plugin in a set. More... | |
Initializer Methods | |
Constructor/Destructor. | |
Platform (const te::plugin::PluginInfo &pluginInfo) | |
It creates a new C++ module. More... | |
~Platform () | |
destructor. More... | |
Re-Implmentation from Plugin Interface | |
Re-Implementation from Plugin Interface. | |
void | startup () |
This method will be called by TerraLib to startup some plugin's functionality. More... | |
void | shutdown () |
This method will be called by TerraLib to shutdown plugin's functionality. More... | |
Static Public Member Functions | |
Static Initializer Methods | |
Methods that can be used to initialize the GRIB module. | |
static void | initialize () |
It initializes all TerraLib GRIB driver support. More... | |
static void | finalize () |
It finalizes all TerraLib GRIB driver support. More... | |
Static Public Attributes | |
static bool | sm_gribInitialized = false |
A flag that indicates if the GRIB driver is initialized or not. More... | |
Protected Attributes | |
bool | m_initialized |
A flag that indicates if the plugin was started or not. More... | |
PluginInfo | m_pluginInfo |
Information about the plugin. More... | |
A utility class to initialize and terminate TerraLib GRIB driver support.
Definition at line 45 of file Platform.h.
Platform::Platform | ( | const te::plugin::PluginInfo & | pluginInfo | ) |
It creates a new C++ module.
Definition at line 35 of file Platform.cpp.
Platform::~Platform | ( | ) |
destructor.
Definition at line 40 of file Platform.cpp.
|
static |
It finalizes all TerraLib GRIB driver support.
Definition at line 69 of file Platform.cpp.
References te::grib::RasterFactory::finalize().
Referenced by shutdown().
|
virtualinherited |
It return the information associated to the plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 29 of file Plugin.cpp.
References te::plugin::Plugin::m_pluginInfo.
|
static |
It initializes all TerraLib GRIB driver support.
The initialization includes:
Definition at line 54 of file Platform.cpp.
References te::grib::RasterFactory::initialize(), TE_ADD_TEXT_DOMAIN, TE_GRIB_TEXT_DOMAIN, and TE_GRIB_TEXT_DOMAIN_DIR.
Referenced by startup().
|
virtualinherited |
It tells if the plugin was started or not.
Implements te::plugin::AbstractPlugin.
Definition at line 34 of file Plugin.cpp.
|
inherited |
This overloaded operator can be used to index the plugin in a set.
rhs | The right-hand-side plugin. |
Definition at line 38 of file AbstractPlugin.cpp.
References te::plugin::AbstractPlugin::getInfo().
|
virtual |
This method will be called by TerraLib to shutdown plugin's functionality.
Exception | It throws an exception if the plugin can not be shutdown. |
Reimplemented from te::plugin::Plugin.
Definition at line 49 of file Platform.cpp.
References finalize().
|
virtual |
This method will be called by TerraLib to startup some plugin's functionality.
Exception | It throws an exception if the plugin can not be started. |
Reimplemented from te::plugin::Plugin.
Definition at line 44 of file Platform.cpp.
References initialize().
|
protectedinherited |
|
protectedinherited |
Information about the plugin.
Definition at line 78 of file Plugin.h.
Referenced by te::plugin::Plugin::getInfo().
|
static |
A flag that indicates if the GRIB driver is initialized or not.
Definition at line 117 of file Platform.h.