Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

mootio::mistream Class Reference

Abstract base class for input stream wrappers.

#include <mootIO.h>

Inheritance diagram for mootio::mistream:

Inheritance graph
[legend]
Collaboration diagram for mootio::mistream:

Collaboration graph
[legend]
List of all members.

Public Methods

Constructors etc.
Input Methods

Constructor & Destructor Documentation

mootio::mistream::mistream void    [inline]
 

Default constructor

virtual mootio::mistream::~mistream void    [inline, virtual]
 

Destructor


Member Function Documentation

virtual int mootio::mistream::_IO_getc void    [inline, virtual]
 

Read a single byte of data. Returns EOF on eof.

Reimplemented in mootio::micbuffer, mootio::mcstream, and mootio::micxxstream.

virtual ByteCount mootio::mistream::getline std::string &    s,
const std::string &    delim = "\n\r"
[inline, virtual]
 

Read a single line of data into @s, using delimiters from @delim. Returns the number of bytes read, or EOF on eof The default implementation is quite inefficient. Implicitly clears @s.

virtual ByteCount mootio::mistream::read char *    buf,
size_t    n
[inline, virtual]
 

Read up to @n bytes of data into @buf, returns number of bytes actually read.

Reimplemented in mootio::micbuffer, mootio::mcstream, and mootio::micxxstream.


The documentation for this class was generated from the following file:
Generated on Wed Jul 28 15:48:08 2004 for libmoot by doxygen1.2.15