Common character processing protocol.
More...
#include <protocols.h>
Public Member Functions |
| int | get (void) |
| | Get the next character.
|
| int | put (int code) |
| | Put the next character.
|
Protected Member Functions |
| virtual int | _getch (void)=0 |
| | Get the next character.
|
| virtual int | _putch (int code)=0 |
| | Put the next character.
|
Detailed Description
Common character processing protocol.
This is used to access a character from some type of streaming buffer or memory object.
- Author:
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 129 of file protocols.h.
Member Function Documentation
| virtual int ucommon::CharacterProtocol::_getch |
( |
void |
| ) |
|
|
protectedpure virtual |
| virtual int ucommon::CharacterProtocol::_putch |
( |
int |
code | ) |
|
|
protectedpure virtual |
| int ucommon::CharacterProtocol::get |
( |
void |
| ) |
|
|
inline |
Get the next character.
- Returns:
- next character or EOF.
Definition at line 152 of file protocols.h.
| int ucommon::CharacterProtocol::put |
( |
int |
code | ) |
|
|
inline |
Put the next character.
- Parameters:
-
- Returns:
- code or EOF if cannot put.
Definition at line 160 of file protocols.h.
The documentation for this class was generated from the following file: