senf::term::AbstractTerminal Struct Reference

Abstract terminal interface. More...

#include <senf/Utils/Termlib/AbstractTerminal.hh>

Inheritance diagram for senf::term::AbstractTerminal:
Inheritance graph
[legend]

List of all members.


Detailed Description

Abstract terminal interface.

This abstract interface base class provides an abstract interface to a terminal. There are two parts to this interface:

  • The interface which allows the terminal user to get information about the terminal
  • The interface which allows the terminal to send messages to the terminal user
The first part is implemented by providing abstract virtual members in AbstractTerminal. To allow the terminal to send messages to the terminal user, the terminal user implements the AbstractTerminal::Callbacks interface. The terminal user must register himself with the AbstractTerminal by calling setCallbacks(). Afterwards, the AbstractTerminal implementation will send calls to the terminal user via the AbstractTerminal::Callbacks API.

Definition at line 52 of file AbstractTerminal.hh.


Classes

struct   Callbacks
  AbstractTerminal callbacks. More...

Public Member Functions

virtual  ~AbstractTerminal ()
virtual void  setCallbacks (Callbacks &cb)=0
  Register terminal callbacks.
virtual std::string  terminalType ()=0
  Get the terminal type.
virtual unsigned  width () const =0
  Get current terminal window width.
virtual unsigned  height () const =0
  Get current terminal window height.
virtual void  write (char ch)=0
  Write character to terminal.

Constructor & Destructor Documentation

virtual senf::term::AbstractTerminal::
~AbstractTerminal ()

Definition at line 67 of file AbstractTerminal.hh.


Member Function Documentation

virtual unsigned senf::term::AbstractTerminal::
height ()

Get current terminal window height.

Implemented in senf::term::TelnetTerminal.

virtual void senf::term::AbstractTerminal::
setCallbacks ( Callbacks cb )

Register terminal callbacks.

Implemented in senf::term::TelnetTerminal.

virtual std::string senf::term::AbstractTerminal::
terminalType ()

Get the terminal type.

Implemented in senf::term::TelnetTerminal.

virtual unsigned senf::term::AbstractTerminal::
width ()

Get current terminal window width.

Implemented in senf::term::TelnetTerminal.

virtual void senf::term::AbstractTerminal::
write ( char  ch )

Write character to terminal.

Implemented in senf::term::TelnetTerminal.


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