CMS 3D CMS Logo

Public Member Functions | Private Attributes

DDAlgorithmHandler Class Reference

wrapper around a DDAlgorithm More...

#include <DDAlgorithmHandler.h>

List of all members.

Public Member Functions

 DDAlgorithmHandler ()
 creates an DDAlgorithm wrapper
void execute (DDCompactView &)
 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)
 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

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.

parent logical part

Definition at line 37 of file DDAlgorithmHandler.h.