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

Kdb_cons Class Reference

#include <kdb_i.h>

Inheritance diagram for Kdb_cons:

Console List of all members.

Public Member Functions

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

Member Function Documentation

int Kdb_cons::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.

Mword Kdb_cons::get_attributes  )  const [virtual]
 

Console attributes.

Reimplemented from Console.

int Kdb_cons::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.

int Kdb_cons::write char const *  str,
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.


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