SatCat5
satcat5::io::KeyboardStream Class Reference

Detailed Description

Stream keyboard input to a Writeable interface.

Definition at line 102 of file posix_utils.h.

#include <posix_utils.h>

Inheritance diagram for satcat5::io::KeyboardStream:
[legend]
Collaboration diagram for satcat5::io::KeyboardStream:
[legend]

Public Member Functions

 KeyboardStream (satcat5::io::Writeable *dst, bool line_buffer=true)
 

Static Public Member Functions

static unsigned count_always ()
 Count active objects of this type.
 

Protected Member Functions

void poll_always () override
 Child class MUST override this method. More...
 
void write_key (int ch)
 
void poll_register ()
 Register this pollable object, called by the constructor.
 
void poll_unregister ()
 Unregister this pollable object, called by the destructor.
 

Protected Attributes

satcat5::io::Writeable *const m_dst
 
const bool m_line_buffer
 

Private Attributes

satcat5::poll::Alwaysm_next
 

Member Function Documentation

◆ poll_always()

void KeyboardStream::poll_always ( )
overrideprotectedvirtual

Child class MUST override this method.

(This method should rarely be called directly.)

Implements satcat5::poll::Always.

Definition at line 108 of file posix_utils.cc.


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