wrapper around a DDAlgorithm More...
#include <DDAlgorithmHandler.h>
Public Member Functions | |
DDAlgorithmHandler () | |
creates an DDAlgorithm wrapper | |
void | execute (DDCompactView &) throw (DDException) |
executes the wrapped algorithm algo_; some pre- and post-processing (exception handling) | |
void | initialize (const std::string &algoName, const DDLogicalPart &parent, const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &svArgs) throw (DDException) |
initializes the wrapped algorithm algo_ and does some pre- and post-processing | |
virtual | ~DDAlgorithmHandler () |
Private Attributes | |
DDAlgorithm * | algo_ |
the wrapped algorithm object | |
std::string | algoname_ |
name of the algorithm object | |
DDLogicalPart | parent_ |
parent logical part |
wrapper around a DDAlgorithm
used from DDParser for setting up, initializing, and executing an DDAlgorithm
Definition at line 10 of file DDAlgorithmHandler.h.
DDAlgorithmHandler::DDAlgorithmHandler | ( | ) |
creates an DDAlgorithm wrapper
a | is a pointer to an DDAlgorithm object; its memory is NOT managed by DDAlgorithmHandler |
virtual DDAlgorithmHandler::~DDAlgorithmHandler | ( | ) | [virtual] |
void DDAlgorithmHandler::execute | ( | DDCompactView & | ) | throw (DDException) |
executes the wrapped algorithm algo_; some pre- and post-processing (exception handling)
Referenced by DDLAlgorithm::processElement().
void DDAlgorithmHandler::initialize | ( | const std::string & | algoName, |
const DDLogicalPart & | parent, | ||
const DDNumericArguments & | nArgs, | ||
const DDVectorArguments & | vArgs, | ||
const DDMapArguments & | mArgs, | ||
const DDStringArguments & | sArgs, | ||
const DDStringVectorArguments & | svArgs | ||
) | throw (DDException) |
initializes the wrapped algorithm algo_ and does some pre- and post-processing
pre- and postprocessing mainly covers exception handling, the algorithm object algo_ is fetched from the plugin-manager
Referenced by DDLAlgorithm::processElement().
DDAlgorithm* DDAlgorithmHandler::algo_ [private] |
the wrapped algorithm object
Definition at line 36 of file DDAlgorithmHandler.h.
std::string DDAlgorithmHandler::algoname_ [private] |
name of the algorithm object
Definition at line 37 of file DDAlgorithmHandler.h.
DDLogicalPart DDAlgorithmHandler::parent_ [private] |
parent logical part
Definition at line 38 of file DDAlgorithmHandler.h.