nngn
Loading...
Searching...
No Matches
Worker Class Referenceabstract

#include <worker.h>

Inheritance diagram for Worker:
Collaboration diagram for Worker:

Public Slots

void finish (void)
 

Signals

void finished (void)
 

Public Member Functions

bool init (int fd)
 
bool destroy (void)
 
void run (void) final
 
constexpr bool ok (void) const
 

Protected Member Functions

template<typename ... Ts>
auto read_values (std::stringstream *s, Ts *...ts)
 
void err (void)
 

Private Member Functions

virtual bool cmd (std::string_view s)=0
 

Private Attributes

bool error = false
 
int fd = -1
 
Poller poller = {}
 

Member Function Documentation

◆ cmd()

virtual bool Worker::cmd ( std::string_view s)
privatepure virtual

◆ destroy()

bool Worker::destroy ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ err()

void Worker::err ( void )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ finish

void Worker::finish ( void )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ finished

void Worker::finished ( void )
signal
Here is the caller graph for this function:

◆ init()

bool Worker::init ( int fd)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ok()

bool Worker::ok ( void ) const
inlineconstexpr
Here is the caller graph for this function:

◆ read_values()

template<typename ... Ts>
auto Worker::read_values ( std::stringstream * s,
Ts *... ts )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

void Worker::run ( void )
final
Here is the call graph for this function:

Member Data Documentation

◆ error

bool Worker::error = false
private

◆ fd

int Worker::fd = -1
private

◆ poller

Poller Worker::poller = {}
private

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