test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DDAlgorithmHandler Class Reference

wrapper around a DDAlgorithm More...

#include <DDAlgorithmHandler.h>

Public Member Functions

 DDAlgorithmHandler ()
 creates an DDAlgorithm wrapper More...
 
void execute (DDCompactView &)
 executes the wrapped algorithm algo_; some pre- and post-processing (exception handling) More...
 
void initialize (const std::string &algoName, const DDLogicalPart &parent, const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &svArgs)
 initializes the wrapped algorithm algo_ and does some pre- and post-processing More...
 
virtual ~DDAlgorithmHandler ()
 

Private Attributes

DDAlgorithm * algo_
 the wrapped algorithm object More...
 
std::string algoname_
 name of the algorithm object More...
 
DDLogicalPart parent_
 parent logical part More...
 

Detailed Description

wrapper around a DDAlgorithm

used from DDParser for setting up, initializing, and executing an DDAlgorithm

Definition at line 9 of file DDAlgorithmHandler.h.

Constructor & Destructor Documentation

DDAlgorithmHandler::DDAlgorithmHandler ( )

creates an DDAlgorithm wrapper

Parameters
ais a pointer to an DDAlgorithm object; its memory is NOT managed by DDAlgorithmHandler
virtual DDAlgorithmHandler::~DDAlgorithmHandler ( )
virtual

Member Function Documentation

void DDAlgorithmHandler::execute ( DDCompactView )

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 
)

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().

Member Data Documentation

DDAlgorithm* DDAlgorithmHandler::algo_
private

the wrapped algorithm object

Definition at line 35 of file DDAlgorithmHandler.h.

std::string DDAlgorithmHandler::algoname_
private

name of the algorithm object

Definition at line 36 of file DDAlgorithmHandler.h.

DDLogicalPart DDAlgorithmHandler::parent_
private

parent logical part

Definition at line 37 of file DDAlgorithmHandler.h.