ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

ucommon::InputProtocol Class Referenceabstract

#include <protocols.h>

Inheritance diagram for ucommon::InputProtocol:
[legend]

Public Member Functions

virtual ~InputProtocol ()
 
virtual int _input (int code)=0
 

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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 153 of file protocols.h.

Constructor & Destructor Documentation

◆ ~InputProtocol()

ucommon::InputProtocol::~InputProtocol ( )
virtual

Definition at line 231 of file protocols.cpp.

Member Function Documentation

◆ _input()

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

Extract formatted string for object.

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

Implemented in ucommon::_input_double, and ucommon::_input_long.

Referenced by ucommon::_stream_operators::input().


The documentation for this class was generated from the following files: