libpalliate v0.0.1
Palliate core library
producer Class Referenceabstract

#include <producer.h>

Inheritance diagram for producer:

Public Member Functions

 producer (std::string const &_name)
 
 ~producer () override
 
- Public Member Functions inherited from runnable
 runnable (std::string const &_name)
 
virtual ~runnable ()
 
virtual void operator() (std::stop_token token={})
 
void run ()
 
void run (callback_f _callback)
 
void stop ()
 
auto operator<=> (runnable const &other) const
 

Protected Member Functions

virtual void control_event (Client *source, reader_t message)=0
 
- Protected Member Functions inherited from runnable
virtual bool setup ()
 
virtual bool loop ()=0
 

Protected Attributes

Servers data
 
Servers control
 
- Protected Attributes inherited from runnable
std::jthread thread
 
std::unique_ptr< callback_tcallback
 

Additional Inherited Members

- Public Types inherited from runnable
using callback_f = std::function< void()>
 
using callback_t = std::stop_callback< callback_f >
 

Constructor & Destructor Documentation

◆ producer()

producer::producer ( std::string const &  _name)
explicit

◆ ~producer()

producer::~producer ( )
inlineoverride

Member Function Documentation

◆ control_event()

virtual void producer::control_event ( Client source,
reader_t  message 
)
protectedpure virtual

Member Data Documentation

◆ control

Servers producer::control
protected

◆ data

Servers producer::data
protected

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