Parent class for for arbitrary consumers. More...
#include <pipeline.h>
Public Member Functions | |
virtual bool | consume (std::shared_ptr< T > product)=0 |
Consumes a product, utilizing it's contents. More... | |
virtual void | onTimeout () |
Functionality for handling consumer timeouts. More... | |
virtual void | setupConsumer () |
Set-up functionality of the consumer. More... | |
virtual void | stopConsumer () |
Stops the consumer. More... | |
virtual void | teardownConsumer () |
Fully tears down the consumer - by default no difference to stopping it. More... | |
Parent class for for arbitrary consumers.
T | Type of the consumed products |
Definition at line 43 of file pipeline.h.
|
pure virtual |
Consumes a product, utilizing it's contents.
product | Shared pointer to the product to be consumed. |
Implemented in urcl::comm::MultiConsumer< T >, PipelineTest::TestConsumer, urcl::CalibrationChecker, urcl::comm::ShellConsumer< T >, and CalibrationConsumer.
|
inlinevirtual |
Functionality for handling consumer timeouts.
Reimplemented in urcl::comm::MultiConsumer< T >, and urcl::CalibrationChecker.
Definition at line 68 of file pipeline.h.
|
inlinevirtual |
Set-up functionality of the consumer.
Reimplemented in urcl::comm::MultiConsumer< T >, and urcl::CalibrationChecker.
Definition at line 49 of file pipeline.h.
|
inlinevirtual |
Stops the consumer.
Reimplemented in urcl::comm::MultiConsumer< T >, and urcl::CalibrationChecker.
Definition at line 62 of file pipeline.h.
|
inlinevirtual |
Fully tears down the consumer - by default no difference to stopping it.
Reimplemented in urcl::comm::MultiConsumer< T >, and urcl::CalibrationChecker.
Definition at line 55 of file pipeline.h.