An utility class to initialize and terminate TerraLib's Google JavaScript V8 engine module. More...
#include <Module.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... | |
| Module (const te::plugin::PluginInfo &pluginInfo) | |
| Plugin constructor. More... | |
| bool | operator< (const AbstractPlugin &rhs) const |
| This overloaded operator can be used to index the plugin in a set. More... | |
| void | shutdown () throw (...) |
| It finalizes the TerraLib's Google JavaScript V8 engine module. More... | |
| void | startup () throw (...) |
| This is the startup function for the TerraLib's Google JavaScript V8 engine module. More... | |
| ~Module () | |
| destructor. More... | |
Protected Attributes | |
| PluginInfo | m_pluginInfo |
| Information about the plugin. More... | |
Private Attributes | |
| bool | m_initialized |
| A flag that indicates if the V8 Plugin module is initialized or not. More... | |
An utility class to initialize and terminate TerraLib's Google JavaScript V8 engine module.
Definition at line 46 of file src/terralib/binding/v8/plugin/Module.h.
| te::v8::plugin::Module::Module | ( | const te::plugin::PluginInfo & | pluginInfo | ) |
Plugin constructor.
| pInfo | Basic information provided to initialize this module through the plugin API. |
Definition at line 32 of file src/terralib/binding/v8/plugin/Module.cpp.
| te::v8::plugin::Module::~Module | ( | ) |
destructor.
Definition at line 38 of file src/terralib/binding/v8/plugin/Module.cpp.
|
virtualinherited |
It return the information associated to the plugin.
Implements te::plugin::AbstractPlugin.
Definition at line 29 of file attic/src/plugin/Plugin.cpp.
References te::plugin::Plugin::m_pluginInfo.
|
virtualinherited |
It tells if the plugin was started or not.
Implements te::plugin::AbstractPlugin.
Definition at line 34 of file attic/src/plugin/Plugin.cpp.
References te::plugin::Plugin::m_initialized.
|
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 | |||||||||||||
It finalizes the TerraLib's Google JavaScript V8 engine module.
| Exception | It may throws an exception. |
Reimplemented from te::plugin::Plugin.
Definition at line 58 of file src/terralib/binding/v8/plugin/Module.cpp.
References te::v8::plugin::PluginEngineFactory::finalize(), m_initialized, PLUGIN_CALL_BACK_IMPL, TE_LOG_TRACE, and TR_V8PLUGIN.
|
virtual | |||||||||||||
This is the startup function for the TerraLib's Google JavaScript V8 engine module.
The initialization includes:
| Exception | It may throws an exception. |
Reimplemented from te::plugin::Plugin.
Definition at line 42 of file src/terralib/binding/v8/plugin/Module.cpp.
References te::v8::plugin::PluginEngineFactory::initialize(), m_initialized, TE_ADD_TEXT_DOMAIN, TE_LOG_TRACE, TE_V8PLUGIN_TEXT_DOMAIN, TE_V8PLUGIN_TEXT_DOMAIN_DIR, and TR_V8PLUGIN.
|
private |
A flag that indicates if the V8 Plugin module is initialized or not.
Definition at line 86 of file src/terralib/binding/v8/plugin/Module.h.
Referenced by shutdown(), and startup().
|
protectedinherited |
Information about the plugin.
Definition at line 78 of file attic/src/plugin/Plugin.h.
Referenced by te::plugin::Plugin::getInfo(), and te::sqlite::Module::startup().