Subordination
A framework for distributed programming
Public Member Functions | Friends | List of all members
sbn::basic_handler Class Reference
Inheritance diagram for sbn::basic_handler:
[legend]
Collaboration diagram for sbn::basic_handler:
[legend]

Public Member Functions

virtual void handle (const sys::epoll_event &ev)
 
virtual void remove (sys::event_poller &poller)
 Called when the handler is removed from the poller.
 
virtual void flush ()
 Flush dirty buffers (if needed).
 
virtual void write (std::ostream &out) const
 
- Public Member Functions inherited from sbn::pipeline_base
 pipeline_base (pipeline_base &&)=default
 
 pipeline_base (const pipeline_base &)=delete
 
pipeline_baseoperator= (pipeline_base &)=delete
 
void setstate (pipeline_state rhs) noexcept
 
pipeline_state state () const noexcept
 
bool is_starting () const noexcept
 
bool has_started () const noexcept
 
bool is_running () const noexcept
 
bool is_stopping () const noexcept
 
bool has_stopped () const noexcept
 
time_point start_time_point () const noexcept
 
bool has_start_time_point () const noexcept
 
const char * name () const noexcept
 
void set_name (const char *rhs) noexcept
 
void set_number (unsigned rhs) noexcept
 
template<class ... Args>
void log (const Args &... args) const
 
void log_error (const std::exception &err) const
 

Friends

std::ostreamoperator<< (std::ostream &out, const basic_handler &rhs)
 

Additional Inherited Members

- Public Types inherited from sbn::pipeline_base
typedef std::chrono::system_clock clock_type
 
typedef clock_type::time_point time_point
 
typedef clock_type::duration duration
 
- Protected Attributes inherited from sbn::pipeline_base
volatile pipeline_state _state = pipeline_state::initial
 
time_point _start = time_point(duration::zero())
 
const char * _name = "ppl"
 
unsigned _number = 0
 

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