|
STK++ 1.0
|
Abstract base class for all classes having a. More...
#include <STK_IRunner.h>


Public Member Functions | |
| virtual | ~IRunnerBase () |
| destructor | |
| String const & | error () const |
| get the last error message. | |
| virtual bool | run ()=0 |
| run the computations. | |
Protected Member Functions | |
| IRunnerBase () | |
| default constructor | |
| IRunnerBase (IRunnerBase const &runner) | |
| copy constructor | |
Protected Attributes | |
| String | msg_error_ |
| String with the last error message. | |
Abstract base class for all classes having a.
bool run();
method. All classes deriving from this class should implement the run method using this kind of code
bool MyClass::run() { try { // do something } catch(const Exception& e) { msg_error_ = e.error(); return false; } return true; }
Definition at line 65 of file STK_IRunner.h.
| STK::IRunnerBase::IRunnerBase | ( | ) | [protected] |
| STK::IRunnerBase::IRunnerBase | ( | IRunnerBase const & | runner | ) | [protected] |
copy constructor
| runner | the runner to copy |
Definition at line 48 of file STK_IRunner.cpp.
: msg_error_(runner.msg_error_) {}
| STK::IRunnerBase::~IRunnerBase | ( | ) | [virtual] |
| String const& STK::IRunnerBase::error | ( | ) | const [inline] |
get the last error message.
Definition at line 83 of file STK_IRunner.h.
References msg_error_.
Referenced by STK::AdditiveBSplineRegression::preRun(), STK::Stat::Multivariate< Real, TContainer2D >::run(), STK::LinearAAModel::run(), and STK::ILinearReduct::run().
{ return msg_error_;}
| virtual bool STK::IRunnerBase::run | ( | ) | [pure virtual] |
run the computations.
true if no error occur during the running process, false otherwise Implemented in STK::LinearAAModel, STK::EigenvaluesSymmetric, STK::AICCriterion, STK::BICCriterion, STK::GaussianModel, STK::ILinearReduct, STK::AdditiveBSplineCoefficients, STK::IRunnerConstRef< TY >, STK::IRunnerConstRefReg< TY, TX >, STK::Stat::Multivariate< TYPE, TContainer2D >, STK::Stat::Multivariate< Real, TContainer2D >, and STK::IRunnerConstRef< Matrix >.
String STK::IRunnerBase::msg_error_ [protected] |
String with the last error message.
Definition at line 93 of file STK_IRunner.h.
Referenced by error(), STK::Stat::Multivariate< Real, TContainer2D >::run(), STK::LinearAAModel::run(), STK::ILinearReduct::run(), STK::BICCriterion::run(), STK::AICCriterion::run(), and STK::AdditiveBSplineCoefficients::run().