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

mootio::mstream Class Reference

Abstract base class for I/O stream wrappers. More...

#include <mootIO.h>

Inheritance diagram for mootio::mstream:

Inheritance graph
[legend]
List of all members.

Public Methods

Constructors etc.
Integrity Tests
Open/Close

Public Attributes


Detailed Description

This looks at first like a very ugly hack (which it admittedly is), since it reduces C++ iostreams to the low-level streambuf layer (which is all anyone ever really needs anyways), and wraps native C I/O calls in virtual methods (which are nasty icky OO and slow), so it gets us essentially the worst of both worlds. However:


Constructor & Destructor Documentation

mootio::mstream::mstream const std::string &    myname = "" [inline]
 

Default constructor

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

Destructor


Member Function Documentation

virtual bool mootio::mstream::close void    [inline, virtual]
 

Close currently selected stream

Reimplemented in mootio::mcstream, and mootio::mfstream.

virtual bool mootio::mstream::eof void    [inline, virtual]
 

Test for eof

Reimplemented in mootio::micbuffer, mootio::mcstream, mootio::mcxxstream< _StreamClass >, mootio::mcxxstream< std::istream >, and mootio::mcxxstream< std::ostream >.

virtual std::string mootio::mstream::errmsg void    [inline, virtual]
 

Get current error message, if any

Reimplemented in mootio::mcstream.

mootio::mstream::operator bool void    [inline]
 

Alias for valid()

virtual bool mootio::mstream::reopen void    [inline, virtual]
 

(Re-)open currently selected stream

Reimplemented in mootio::mcstream, and mootio::mfstream.

virtual bool mootio::mstream::valid void    [inline, virtual]
 

Test stream integrity

Reimplemented in mootio::micbuffer, mootio::mcstream, mootio::mcxxstream< _StreamClass >, mootio::mcxxstream< std::istream >, and mootio::mcxxstream< std::ostream >.


Member Data Documentation

std::string mootio::mstream::name
 


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