AXCEL C++ Framework
Elegance through abstraction
|
Console I/O and manipulation. More...
#include <axcel.h>
Public Member Functions | |
virtual string | type () |
Get type of object. | |
virtual | operator string () |
Convert to string. | |
console () | |
int | putc (int c) |
Set destination address. | |
int | getc () |
Read byte. | |
int | getch () |
Immediate character input. | |
int | getche () |
Immediate character input with echo. | |
bool | kbhit () |
Check for available input. | |
data | dump () |
Read until EOF. | |
console & | putcr () |
console & | putbs () |
console & | cls () |
console & | bel () |
console & | setxy (int x, int y) |
console & | setx (int x) |
console & | sety (int y) |
console & | up (int n) |
console & | dn (int n) |
console & | lt (int n) |
console & | rt (int n) |
console & | rmln () |
console & | fglite () |
console & | fgdark () |
console & | fgcol (short color) |
console & | bgcol (short color) |
Public Attributes | |
FILE * | in |
FILE * | out |
Console I/O and manipulation.
Inherits from axcel::io::input and axcel::io::output. Other specialized methods exist such as those for setting the console color or cursor position. No object of this class is ever meant to be declared by the programmer; instead, he/she should use con which is defined as a global console object whose input and output stream handles are attached to stdin and stdout.
data axcel::console::dump | ( | ) | [virtual] |
Read until EOF.
Reimplemented from axcel::io::input.
int axcel::console::getc | ( | ) | [virtual] |
Read byte.
Reads the next character from stream and returns it as an unsigned char cast to an int, or EOF on end of file or error. Before returning from the method, one of the following methods of the stream must be called:
Implements axcel::io::input.
int axcel::console::getch | ( | ) |
int axcel::console::getche | ( | ) |
bool axcel::console::kbhit | ( | ) |
axcel::console::operator string | ( | ) | [virtual] |
Convert to string.
Reimplemented from axcel::io::ios.
int axcel::console::putc | ( | int | c | ) | [virtual] |
string axcel::console::type | ( | ) | [virtual] |
Get type of object.
Reimplemented from axcel::io::ios.
FILE* axcel::console::in |
FILE* axcel::console::out |