Public Member Functions | List of all members
urcl::comm::IConsumer< T > Class Template Referenceabstract

Parent class for for arbitrary consumers. More...

#include <pipeline.h>

Inheritance diagram for urcl::comm::IConsumer< T >:
Inheritance graph
[legend]

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...
 

Detailed Description

template<typename T>
class urcl::comm::IConsumer< T >

Parent class for for arbitrary consumers.

Template Parameters
TType of the consumed products

Definition at line 42 of file pipeline.h.

Member Function Documentation

template<typename T>
virtual bool urcl::comm::IConsumer< T >::consume ( std::shared_ptr< T >  product)
pure virtual

Consumes a product, utilizing it's contents.

Parameters
productShared pointer to the product to be consumed.
Returns
Success of the consumption.

Implemented in urcl::comm::MultiConsumer< T >, urcl::CalibrationChecker, and urcl::comm::ShellConsumer< T >.

template<typename T>
virtual void urcl::comm::IConsumer< T >::onTimeout ( )
inlinevirtual

Functionality for handling consumer timeouts.

Reimplemented in urcl::comm::MultiConsumer< T >, and urcl::CalibrationChecker.

Definition at line 67 of file pipeline.h.

template<typename T>
virtual void urcl::comm::IConsumer< T >::setupConsumer ( )
inlinevirtual

Set-up functionality of the consumer.

Reimplemented in urcl::comm::MultiConsumer< T >, and urcl::CalibrationChecker.

Definition at line 48 of file pipeline.h.

template<typename T>
virtual void urcl::comm::IConsumer< T >::stopConsumer ( )
inlinevirtual

Stops the consumer.

Reimplemented in urcl::comm::MultiConsumer< T >, and urcl::CalibrationChecker.

Definition at line 61 of file pipeline.h.

template<typename T>
virtual void urcl::comm::IConsumer< T >::teardownConsumer ( )
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 54 of file pipeline.h.


The documentation for this class was generated from the following file:


ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Sun May 9 2021 02:16:26