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

#include <worker.h>

Inheritance diagram for Worker:
Collaboration diagram for Worker:

Public Slots

void finish (void)
 
void finish (void)
 

Signals

void finished (void)
 
void finished (void)
 

Public Member Functions

bool init (int fd)
 
bool destroy (void)
 
void run (void) final
 
constexpr bool ok (void) const
 
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)
 
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
 
virtual bool cmd (std::string_view s)=0
 

Private Attributes

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

Member Function Documentation

◆ cmd() [1/2]

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

◆ cmd() [2/2]

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

◆ destroy() [1/2]

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

◆ destroy() [2/2]

bool Worker::destroy ( void  )

◆ err() [1/2]

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

◆ err() [2/2]

void Worker::err ( void  )
protected

◆ finish [1/2]

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

◆ finish [2/2]

void Worker::finish ( void  )
slot

◆ finished [1/2]

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

◆ finished [2/2]

void Worker::finished ( void  )
signal

◆ init() [1/2]

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

◆ init() [2/2]

bool Worker::init ( int  fd)

◆ ok() [1/2]

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

◆ ok() [2/2]

constexpr bool Worker::ok ( void  ) const
inlineconstexpr

◆ read_values() [1/2]

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:

◆ read_values() [2/2]

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

◆ run() [1/2]

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

◆ run() [2/2]

void Worker::run ( void  )
final

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: