Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Push_console Class Reference

#include <push_console.h>

Inheritance diagram for Push_console:

Console List of all members.

Public Member Functions

int getchar (bool)
 read a charcater from the input.
int char_avail () const
 Is input available?
int write (char const *, size_t len)
 Write a string of len chacters to the output.
Mword get_attributes () const
 Console attributes.

Static Public Member Functions

static void push (Unsigned8 const *str, size_t len, Space *space=0)
static void flush (void)

Static Private Member Functions

static int get_sequence_byte (Unsigned8 const *s)
static int get_sequence_len ()

Static Private Attributes

static const Unsigned8 * sequence_str
static Mword sequence_len
static Spacesequence_space

Member Function Documentation

int Push_console::char_avail  )  const [virtual]
 

Is input available?

This method can be implemented. It must return -1 if no information is available, 1 if at least one character is avialable, and 0 if no charachter is available.

Reimplemented from Console.

void Push_console::flush void   )  [static]
 

Mword Push_console::get_attributes  )  const [virtual]
 

Console attributes.

Reimplemented from Console.

int Push_console::get_sequence_byte Unsigned8 const *  s  )  [static, private]
 

int Push_console::get_sequence_len  )  [static, private]
 

int Push_console::getchar bool   )  [virtual]
 

read a charcater from the input.

Parameters:
blocking if true getchar blocks til a charcater is available.
This method must be implemented in every implementation, but can simply return -1 for output only consoles.

Reimplemented from Console.

void Push_console::push Unsigned8 const *  str,
size_t  len,
Space space = 0
[static]
 

int Push_console::write char const *  ,
size_t  len
[virtual]
 

Write a string of len chacters to the output.

Parameters:
str the string to write (no zero termination is needed)
len the number of chacters to write.
This method must be implemented in every implementation, but can simply do nothing for input only consoles.

Reimplemented from Console.


Member Data Documentation

Mword Push_console::sequence_len [static, private]
 

Space * Push_console::sequence_space [static, private]
 

Unsigned8 const * Push_console::sequence_str [static, private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:17 2005 for Fiasco by  doxygen 1.4.2