Otawa
0.10
|
A plugin to provide driver to display graphs. More...
#include <otawa/display/Plugin.h>
Public Member Functions | |
Plugin (elm::CString name, const elm::Version &version, const elm::Version &plugger_version) | |
Build the plugin. More... | |
Plugin (void) | |
virtual elm::genstruct::Table < AbstractRegistration * > & | processors (void) const |
This method must return the table of all processor available in the plugin. More... | |
virtual Graph * | newGraph (const PropList &defaultGraphStyle=PropList::EMPTY, const PropList &defaultNodeStyle=PropList::EMPTY, const PropList &defaultEdgeStyle=PropList::EMPTY) const =0 |
Creates a new graph with default styles given. More... | |
Static Public Member Functions | |
static void | addPath (const elm::system::Path &path) |
Add a path to the list of looked paths. More... | |
static void | removePath (const elm::system::Path &path) |
Remove the given path from the looked path. More... | |
static ProcessorPlugin * | get (string name) |
Find a plugin by its name. More... | |
static Processor * | getProcessor (cstring name) |
Get a processor by its name, possibly loading required plugin. More... | |
static AbstractFeature * | getFeature (cstring name) |
Find a feature by its name, possibly loading a plugin. More... | |
static AbstractIdentifier * | getIdentifier (cstring name) |
Find an identifier by its name possibly loading a plugin to get it. More... | |
static void | setErrorHandler (ErrorHandler *error_handler) |
Set an error handler for the processor resolution plugger. More... | |
static ErrorHandler * | getErrorHandler (void) |
Get the error handler of the processor resolution plugger. More... | |
static Driver * | find (string name="") |
Find a driver by its name. More... | |
static Driver * | find (kind_t kind) |
A plugin to provide driver to display graphs.
otawa::display::Plugin::Plugin | ( | elm::CString | name, |
const elm::Version & | version, | ||
const elm::Version & | plugger_version | ||
) |
Build the plugin.
name | Name of the plugin. |
version | Version of the plugin. |
plugger_version | Version of the plugger (must be OTAWA_DISPLAY_VERSION). |
|
inline |
|
staticinherited |
Add a path to the list of looked paths.
path | Path to add. |
References otawa::ProcessorPlugin::init().
Referenced by otawa::script::Script::work().
Find a driver by its name.
name | Name of the driver to look for. |
References otawa::display::graphviz_driver.
Referenced by otawa::display::AbstractDrawer::AbstractDrawer().
|
staticinherited |
Find a plugin by its name.
The looked directories are, in order, "$PWD/.otawa/proc", "$HOME/.otawa/proc" or "$OTAWA_INSTALL_DIRECTORY/lib/otawa/proc". The full path name of the processor class must be passed in the name, something composed of "comp1::comp2::...::compn". First, a module whose path is by replacing in processor name "::" by "/" is looked. If not found, the last component of the path is removed and the obtained path is looked again for module. This process continue until the module is found or the path becomes empty resulting in a linkage failure.
name | Full-qualified name of the processor. |
References _, otawa::ProcessorPlugin::init(), elm::String::lastIndexOf(), elm::level_error, elm::level_info, and elm::String::substring().
|
staticinherited |
Get the error handler of the processor resolution plugger.
Referenced by otawa::script::Script::processWorkSpace().
|
staticinherited |
Find a feature by its name, possibly loading a plugin.
name | Name of the looked feature. |
References otawa::ProcessorPlugin::getIdentifier(), and otawa::IS_FEATURE.
Referenced by otawa::DynFeature::init().
|
staticinherited |
Find an identifier by its name possibly loading a plugin to get it.
name | Name of the identifier. |
References otawa::AbstractIdentifier::find().
Referenced by otawa::XSLTScript::fillProps(), otawa::ProcessorPlugin::getFeature(), otawa::DynIdentifier< T >::id(), otawa::script::Script::makeConfig(), and otawa::Application::run().
Get a processor by its name, possibly loading required plugin.
name | Name of the looked processor. |
References otawa::Registry::find(), otawa::AbstractRegistration::make(), and name.
Referenced by otawa::DynProcessor::DynProcessor().
|
pure virtualinherited |
Creates a new graph with default styles given.
defaultGraphStyle | default properties for the graph Can be changed with the methods inherited from PropList |
defaultNodeStyle | default properties for the nodes Can be changed with the methods inherited from PropList |
defaultEdgeStyle | default properties for the edges Can be changed with the methods inherited from PropList |
Implemented in otawa::display::GraphVizDriver.
Referenced by otawa::display::AbstractDrawer::AbstractDrawer(), and otawa::display::CFGDrawer::CFGDrawer().
|
virtualinherited |
This method must return the table of all processor available in the plugin.
References elm::dtd::empty.
|
staticinherited |
Remove the given path from the looked path.
path | Path to remove. |
References otawa::ProcessorPlugin::init().
|
staticinherited |
Set an error handler for the processor resolution plugger.
error_handler | New error handler. |
Referenced by otawa::script::Script::processWorkSpace().