#include <Plugin.h>
Public Member Functions | |
Plugin (const string name) | |
virtual | ~Plugin () |
virtual void | load (const string) throw (FileNotFound, LibHandleError) |
virtual void | unload () throw (LibHandleError) |
virtual void | run () |
virtual void | registerParameter () |
virtual void | registerOutputFields () |
virtual void | requestPlugins () |
virtual void | init () |
virtual void | release () |
virtual void | selftest () |
string | getName () |
string | getVersion () |
string | getAuthors () |
string | getDescription () |
string | getCategory () |
PluginCategory | getCategoryID () |
bool | isLoaded () |
void | setCategory (string new_type) |
run_function | getRunFunction () |
Protected Attributes | |
void * | LibHandle |
const string | name |
string | path |
string | category |
bool | is_released |
bool | is_initialized |
bool | is_registered |
bool | is_loaded |
Private Member Functions | |
Plugin (const Plugin &x) | |
hidden copy constructor - we do not want to accidentially copy objects | |
void_t | get_dl_voidFunc (string) throw (LibHandleError) |
char_t | get_dl_stringFunc (string) throw (LibHandleError) |
category_t | get_categoryFunc (string) throw (LibHandleError) |
Private Attributes | |
void_t | func_void |
char_t | func_get_string |
char_t | func_get_name |
char_t | func_get_version |
char_t | func_get_authors |
char_t | func_get_description |
category_t | func_get_category |
void_t | func_run |
void_t | func_register_parameter |
void_t | func_register_output_fields |
void_t | func_request_plugins |
void_t | func_init |
void_t | func_release |
int | rc |
Plugin::Plugin | ( | const Plugin & | x | ) | [private] |
hidden copy constructor - we do not want to accidentially copy objects
Plugin::Plugin | ( | const string | name | ) |
References crusde_debug(), and name.
Plugin::~Plugin | ( | ) | [virtual] |
References crusde_debug(), and name.
category_t Plugin::get_categoryFunc | ( | string | func_name | ) | throw (LibHandleError) [private] |
char_t Plugin::get_dl_stringFunc | ( | string | func_name | ) | throw (LibHandleError) [private] |
void_t Plugin::get_dl_voidFunc | ( | string | func_name | ) | throw (LibHandleError) [private] |
string Plugin::getAuthors | ( | ) |
References func_get_authors.
Referenced by PluginManager::addToDB(), and selftest().
string Plugin::getCategory | ( | ) |
References crusde_warning(), CRUSTALDECAY_PLUGIN, DATAOUT_PLUGIN, func_get_category, GREEN_PLUGIN, KERNEL_PLUGIN, LOAD_PLUGIN, LOADHISTORY_PLUGIN, and POSTPROCESS_PLUGIN.
Referenced by PluginManager::addToDB(), and selftest().
PluginCategory Plugin::getCategoryID | ( | ) |
References func_get_category.
Referenced by PluginManager::addToDB().
string Plugin::getDescription | ( | ) |
References func_get_description.
Referenced by PluginManager::addToDB(), and selftest().
string Plugin::getName | ( | ) |
References func_get_name.
Referenced by PluginManager::addToDB(), and selftest().
run_function Plugin::getRunFunction | ( | ) |
References func_run.
Referenced by SimulationCore::addKernelPlugin(), and SimulationCore::addPostprocessorPlugin().
string Plugin::getVersion | ( | ) |
References func_get_version.
Referenced by PluginManager::addToDB(), and selftest().
void Plugin::init | ( | ) | [virtual] |
Reimplemented in GreensFunction, and LoadFunction.
References crusde_warning(), func_init, is_initialized, is_loaded, and is_registered.
Referenced by SimulationCore::init().
bool Plugin::isLoaded | ( | ) |
tells whether Plugin::load() was called and succeeded
References is_loaded.
void Plugin::load | ( | const | string | ) | throw (FileNotFound, LibHandleError) [virtual] |
Reimplemented in CrustalDecayPlugin, DataOutPlugin, GreenPlugin, LoadHistoryPlugin, and LoadPlugin.
References crusde_debug().
Referenced by SimulationCore::addKernelPlugin(), SimulationCore::addPostprocessorPlugin(), SimulationCore::init(), LoadPlugin::load(), LoadHistoryPlugin::load(), GreenPlugin::load(), DataOutPlugin::load(), and CrustalDecayPlugin::load().
void Plugin::registerOutputFields | ( | ) | [virtual] |
Reimplemented in GreensFunction, and LoadFunction.
References func_register_output_fields, is_loaded, and is_registered.
Referenced by SimulationCore::addGreenPlugin().
void Plugin::registerParameter | ( | ) | [virtual] |
Reimplemented in GreensFunction, and LoadFunction.
References crusde_info(), crusde_warning(), func_register_parameter, is_loaded, is_registered, and name.
Referenced by SimulationCore::addCrustalDecayPlugin(), SimulationCore::addGreenPlugin(), SimulationCore::addKernelPlugin(), SimulationCore::addLoadHistoryPlugin(), SimulationCore::addLoadPlugin(), SimulationCore::addPostprocessorPlugin(), SimulationCore::init(), and selftest().
void Plugin::release | ( | ) | [virtual] |
Reimplemented in GreensFunction, and LoadFunction.
References func_release, is_loaded, and is_released.
Referenced by SimulationCore::terminate(), and unload().
void Plugin::requestPlugins | ( | ) | [virtual] |
Reimplemented in GreensFunction, and LoadFunction.
References func_request_plugins, is_loaded, and is_registered.
Referenced by SimulationCore::init(), and selftest().
void Plugin::run | ( | ) | [virtual] |
References func_run, is_initialized, and is_loaded.
Referenced by SimulationCore::exec().
void Plugin::selftest | ( | ) | [virtual] |
References getAuthors(), getCategory(), getDescription(), getName(), getVersion(), path, registerParameter(), and requestPlugins().
void Plugin::setCategory | ( | string | new_type | ) |
References category.
void Plugin::unload | ( | ) | throw (LibHandleError) [virtual] |
Reimplemented in GreensFunction, and LoadFunction.
References crusde_debug(), is_loaded, LibHandle, name, rc, and release().
Referenced by SimulationCore::terminate().
string Plugin::category [protected] |
Referenced by setCategory().
char_t Plugin::func_get_authors [private] |
Referenced by getAuthors().
category_t Plugin::func_get_category [private] |
Referenced by getCategory(), and getCategoryID().
char_t Plugin::func_get_description [private] |
Referenced by getDescription().
char_t Plugin::func_get_name [private] |
Referenced by getName().
char_t Plugin::func_get_string [private] |
char_t Plugin::func_get_version [private] |
Referenced by getVersion().
void_t Plugin::func_init [private] |
Referenced by init().
void_t Plugin::func_register_output_fields [private] |
Referenced by registerOutputFields().
void_t Plugin::func_register_parameter [private] |
Referenced by registerParameter().
void_t Plugin::func_release [private] |
Referenced by release().
void_t Plugin::func_request_plugins [private] |
Referenced by requestPlugins().
void_t Plugin::func_run [private] |
Referenced by getRunFunction(), and run().
void_t Plugin::func_void [private] |
bool Plugin::is_initialized [protected] |
Referenced by GreenPlugin::getValueArrayAt(), LoadPlugin::getValueAt(), init(), and run().
bool Plugin::is_loaded [protected] |
Referenced by init(), isLoaded(), registerOutputFields(), registerParameter(), release(), requestPlugins(), run(), and unload().
bool Plugin::is_registered [protected] |
Referenced by init(), registerOutputFields(), registerParameter(), and requestPlugins().
bool Plugin::is_released [protected] |
Referenced by release().
void* Plugin::LibHandle [protected] |
Referenced by unload().
const string Plugin::name [protected] |
string Plugin::path [protected] |
Referenced by selftest().
int Plugin::rc [private] |
Referenced by unload().