Alida-C++ 0.1
|
Core class of the operator concept defining Alida operators. More...
#include <ALDOperator.h>
Public Member Functions | |
void | runOp () throw (ALDException) |
Method defining the entry point for operator execution. | |
void | validate () throw (ALDException) |
Validates the parameters of this operator. | |
virtual void | validateCustom () |
Operator specific validation of parameters which should be overridden. | |
std::map< std::string, ALDOpParameterDescriptor * > & | getParameters () |
Function returning list of registered parameters. | |
void * | getParameter (std::string) |
Returns the value of the specified parameter. | |
void | setParameter (std::string, void *) |
Sets the specified parameter to the given value. | |
Protected Member Functions | |
virtual | ~ALDOperator () |
Default destructor. | |
virtual void | operate ()=0 |
Method to implement operator functionality. | |
Protected Attributes | |
std::map< std::string, ALDOpParameterDescriptor * > | parameters |
Map containing list of registered parameters. |
Core class of the operator concept defining Alida operators.
Definition at line 56 of file ALDOperator.h.
virtual Alida::ALDOperator::~ALDOperator | ( | ) | [inline, protected, virtual] |
Default destructor.
Definition at line 64 of file ALDOperator.h.
void * ALDOperator::getParameter | ( | std::string | name | ) |
Returns the value of the specified parameter.
name | Name of the parameter the value is requested for. |
Definition at line 100 of file ALDOperator.cc.
Referenced by main(), Thres::operate(), DemoOperatorOpenCV::operate(), and Canny::operate().
std::map< std::string, ALDOpParameterDescriptor * > & ALDOperator::getParameters | ( | ) |
Function returning list of registered parameters.
Definition at line 91 of file ALDOperator.cc.
Referenced by main().
virtual void Alida::ALDOperator::operate | ( | ) | [protected, pure virtual] |
Method to implement operator functionality.
Implemented in Canny, DemoOperator, DemoOperatorOpenCV, and Thres.
void ALDOperator::runOp | ( | ) | throw (ALDException) |
Method defining the entry point for operator execution.
This functions is the only entry point for executing operators in Alida
It basically calls an operator's operate() function.
An Exception is thrown if either validation fails. In addition, automatic process documentation will be done here in the future.
Definition at line 56 of file ALDOperator.cc.
Referenced by main().
void ALDOperator::setParameter | ( | std::string | name, |
void * | val | ||
) |
Sets the specified parameter to the given value.
name | Name of the parameter to be set. |
val | Value the parameter should retain. |
Definition at line 109 of file ALDOperator.cc.
Referenced by main(), Thres::operate(), DemoOperatorOpenCV::operate(), and Canny::operate().
void ALDOperator::validate | ( | ) | throw (ALDException) |
Validates the parameters of this operator.
Definition at line 73 of file ALDOperator.cc.
References Alida::PARAMETER_IN, and Alida::PARAMETER_INOUT.
virtual void Alida::ALDOperator::validateCustom | ( | ) | [inline, virtual] |
Operator specific validation of parameters which should be overridden.
Reimplemented in DemoOperator.
Definition at line 78 of file ALDOperator.h.
std::map<std::string, ALDOpParameterDescriptor*> Alida::ALDOperator::parameters [protected] |
Map containing list of registered parameters.
Definition at line 61 of file ALDOperator.h.