ucommon::InputProtocol Class Reference

Used for processing input. More...

#include <protocols.h>

Inheritance diagram for ucommon::InputProtocol:

Inheritance graph
[legend]

Public Member Functions

virtual int _input (int code)=0
 Extract formatted string for object.

Detailed Description

Used for processing input.

We create a derived class that processes a single character of input, and returns a status value. EOF means it accepts no more input and any value other than 0 is a character to also unget. Otherwise 0 is good to accept more input. The constructor is used to reference a final destination object in the derived class.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 156 of file protocols.h.


Member Function Documentation

virtual int ucommon::InputProtocol::_input ( int  code  )  [pure virtual]

Extract formatted string for object.

Parameters:
character code we are pushing.
Returns:
0 to keep processing, EOF if done, or char to unget.

Implemented in ucommon::isotime.


The documentation for this class was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7