Wrapper of a Worker returned from a Process::Manager.
More...
#include <be_process_workercontroller.h>
Inherited by BiometricEvaluation::Process::ForkWorkerController, and BiometricEvaluation::Process::POSIXThreadWorkerController.
Wrapper of a Worker returned from a Process::Manager.
Definition at line 29 of file be_process_workercontroller.h.
◆ WorkerController()
BiometricEvaluation::Process::WorkerController::WorkerController |
( |
std::shared_ptr< Worker > |
worker | ) |
|
◆ ~WorkerController()
virtual BiometricEvaluation::Process::WorkerController::~WorkerController |
( |
| ) |
|
|
virtual |
◆ sendMessageToWorker()
virtual void BiometricEvaluation::Process::WorkerController::sendMessageToWorker |
( |
const Memory::uint8Array & |
message | ) |
|
|
virtual |
◆ setParameter()
virtual void BiometricEvaluation::Process::WorkerController::setParameter |
( |
const std::string & |
name, |
|
|
std::shared_ptr< void > |
argument |
|
) |
| |
|
virtual |
Set the parameter to be passed to the Worker.
- Parameters
-
[in] | name | The name representing the argument in the Worker. |
[in] | argument | The argument to be passed to the Worker. |
- Note
- Subsequent calls to setParameter() with the same name will overwrite any exiting argument.
◆ setParameterFromDouble()
virtual void BiometricEvaluation::Process::WorkerController::setParameterFromDouble |
( |
const std::string & |
name, |
|
|
double |
argument |
|
) |
| |
|
virtual |
Set a double parameter to be passed to the Worker.
- Parameters
-
[in] | name | The name representing the argument in the Worker. |
[in] | argument | The double to be passed to the Worker. |
- Note
- Subsequent calls to setParameter*() with the same name will overwrite any exiting argument.
◆ setParameterFromInteger()
virtual void BiometricEvaluation::Process::WorkerController::setParameterFromInteger |
( |
const std::string & |
name, |
|
|
int64_t |
argument |
|
) |
| |
|
virtual |
Set an integer parameter to be passed to the Worker.
- Parameters
-
[in] | name | The name representing the argument in the Worker. |
[in] | argument | The integer to be passed to the Worker. |
- Note
- Subsequent calls to setParameter*() with the same name will overwrite any exiting argument.
◆ setParameterFromString()
virtual void BiometricEvaluation::Process::WorkerController::setParameterFromString |
( |
const std::string & |
name, |
|
|
const std::string & |
argument |
|
) |
| |
|
virtual |
Set a string parameter to be passed to the Worker.
- Parameters
-
[in] | name | The name representing the argument in the Worker. |
[in] | argument | The string to be passed to the Worker. |
- Note
- Subsequent calls to setParameter*() with the same name will overwrite any exiting argument.
◆ reset()
virtual void BiometricEvaluation::Process::WorkerController::reset |
( |
| ) |
|
|
virtual |
◆ isWorking()
virtual bool BiometricEvaluation::Process::WorkerController::isWorking |
( |
| ) |
const |
|
pure virtual |
◆ everWorked()
virtual bool BiometricEvaluation::Process::WorkerController::everWorked |
( |
| ) |
const |
|
pure virtual |
◆ finishedWorking()
bool BiometricEvaluation::Process::WorkerController::finishedWorking |
( |
| ) |
const |
|
inline |
Obtain whether or not this Worker has both started and finished its task.
- Returns
- true if the Worker has both started and finished performing its task, false otherwise.
- Note
- reset() will change the result of this method.
Definition at line 185 of file be_process_workercontroller.h.
◆ getWorker()
std::shared_ptr< Worker > BiometricEvaluation::Process::WorkerController::getWorker |
( |
| ) |
const |
Obtain the Worker instance being wrapped.
- Returns
- Worker instance.
◆ getExitStatus()
virtual int32_t BiometricEvaluation::Process::WorkerController::getExitStatus |
( |
| ) |
const |
|
finalvirtual |
Obtain the exit status of the wrapped Worker.
- Returns
- Exit status of the wrapped Worker.
- Exceptions
-
◆ _worker
std::shared_ptr<Worker> BiometricEvaluation::Process::WorkerController::_worker |
|
protected |
◆ _rvSet
bool BiometricEvaluation::Process::WorkerController::_rvSet |
|
protected |
◆ _rv
int32_t BiometricEvaluation::Process::WorkerController::_rv |
|
protected |
The documentation for this class was generated from the following file: