ucommon::CharacterProtocol Class Reference

Common character processing protocol. More...

#include <protocols.h>

Inheritance diagram for ucommon::CharacterProtocol:
Inheritance graph
[legend]

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@gnutelephony.org>

Definition at line 124 of file protocols.h.


Member Function Documentation

virtual int ucommon::CharacterProtocol::_getch ( void   )  [protected, pure virtual]

Get the next character.

Returns:
next character or EOF.

Implemented in ucommon::BufferProtocol, ucommon::tcpstream, ucommon::pipestream, and ucommon::filestream.

virtual int ucommon::CharacterProtocol::_putch ( int  code  )  [protected, pure virtual]

Put the next character.

Parameters:
code to put.
Returns:
code or EOF if cannot put.

Implemented in ucommon::BufferProtocol, ucommon::tcpstream, ucommon::pipestream, and ucommon::filestream.

int ucommon::CharacterProtocol::get ( void   )  [inline]

Get the next character.

Returns:
next character or EOF.

Definition at line 145 of file protocols.h.

int ucommon::CharacterProtocol::put ( int  code  )  [inline]

Put the next character.

Parameters:
code to put.
Returns:
code or EOF if cannot put.

Definition at line 153 of file protocols.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 14 16:39:30 2011 for ucommon by  doxygen 1.6.3