InStream< S, R > Class Template Reference

#include <InStreams.h>

Inheritance diagram for InStream< S, R >:

In List of all members.

Public Member Functions

 InStream ()
virtual void read (void *p, int size)
virtual void skip (int size)
virtual bool eof () const

Protected Member Functions

virtual void inChar (char &d)
virtual void inUChar (unsigned char &d)
virtual void inShort (short &d)
virtual void inUShort (unsigned short &d)
virtual void inInt (int &d)
virtual void inUInt (unsigned int &d)
virtual void inLong (long &d)
virtual void inULong (unsigned long &d)
virtual void inFloat (float &d)
virtual void inDouble (double &d)
virtual void inString (char *d)
virtual void inEndL ()

Detailed Description

template<class S, class R>
class InStream< S, R >

Generic class for classes that do both formated and physical reading of data from streams.

Definition at line 184 of file InStreams.h.


Constructor & Destructor Documentation

template<class S, class R>
InStream< S, R >::InStream (  )  [inline]

Standard constructor

Definition at line 188 of file InStreams.h.


Member Function Documentation

template<class S, class R>
virtual bool InStream< S, R >::eof (  )  const [inline, virtual]

Determines whether the end of file has been reached.

Implements In.

Definition at line 210 of file InStreams.h.

Referenced by RoboCupCtrl::connect(), ConsoleRoboCupCtrl::echo(), RobotConsole::gameControl(), RoboCupCtrl::getSenderName(), GTXabsl2Profiler::importLogFile(), Logger::init(), Debug::init(), ConsoleRoboCupCtrl::joystickButtonCommand(), RobotConfiguration::load(), ColorCorrector::load(), Location::Location(), Logger::main(), CRobotRemoteApp::onChangeConfiguration(), PanoramaLocator::PanoramaLocator(), GT2003MotionNetSpecialActions::readOdometryTable(), InvKinWalkingParameters::readValues(), Router::Router(), SolutionRequest::setDefaultSolutions(), and CPing::WIN32GetMAC().

template<class S, class R>
virtual void InStream< S, R >::inChar ( char &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(char& value).

Implements In.

Definition at line 216 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inDouble ( double &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(double& value).

Implements In.

Definition at line 270 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inEndL (  )  [inline, protected, virtual]

Virtual redirection for operator>>(In& (*f)(In&)) that reads the symbol "endl";

Implements In.

Definition at line 283 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inFloat ( float &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(float& value).

Implements In.

Definition at line 264 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inInt ( int &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(int& value).

Implements In.

Definition at line 240 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inLong ( long &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(long& value).

Implements In.

Definition at line 252 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inShort ( short &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(short& value).

Implements In.

Definition at line 228 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inString ( char *  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(char* value).

Implements In.

Definition at line 276 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inUChar ( unsigned char &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(unsigend char& value).

Implements In.

Definition at line 222 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inUInt ( unsigned int &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(unsigend int& value).

Implements In.

Definition at line 246 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inULong ( unsigned long &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(unsigend long& value).

Implements In.

Definition at line 258 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::inUShort ( unsigned short &  d  )  [inline, protected, virtual]

Virtual redirection for operator>>(unsigend short& value).

Implements In.

Definition at line 234 of file InStreams.h.

template<class S, class R>
virtual void InStream< S, R >::read ( void *  p,
int  size 
) [inline, virtual]

The function reads a number of bytes from a stream.

Parameters:
p The address the data is written to. Note that p must point to a memory area that is at least "size" bytes large.
size The number of bytes to be read.

Implements In.

Definition at line 197 of file InStreams.h.

Referenced by GT2004SoundControl::checkWaveHeader(), CMofTesterDlgBar::handleCommand(), IniFile::load(), ColorCorrector::load(), GT2004SoundControl::loadWavefile(), CColorTable64DlgBar::OnCt64Open(), RDefaultStrategy::RDefaultStrategy(), CXabsl2DlgBar::sendIntermediateCode(), and RobotConsole::xabslLoadBehavior().

template<class S, class R>
virtual void InStream< S, R >::skip ( int  size  )  [inline, virtual]

The function skips a number of bytes in the stream.

Parameters:
size The number of bytes to be skipped.

Implements In.

Definition at line 204 of file InStreams.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:38:48 2006 for DT2005.panorama by  doxygen 1.4.7