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

mootio::mcstream Class Reference

Wrapper class for C FILE* streams.

#include <mootCIO.h>

Inheritance diagram for mootio::mcstream:

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

Collaboration graph
[legend]
List of all members.

Public Methods

Constructors etc.
Integrity Tests
Open/Close
Input Methods
Output Methods

Public Attributes


Constructor & Destructor Documentation

mootio::mcstream::mcstream FILE *    f = ((void *)0) [inline]
 

Default constructor

mootio::mcstream::~mcstream void    [inline]
 

Destructor


Member Function Documentation

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

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

Reimplemented from mootio::mistream.

virtual bool mootio::mcstream::_IO_putc unsigned char    c [inline, virtual]
 

Write a single byte to the stream

Reimplemented from mootio::mostream.

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

Just resets internal FILE* to NULL, does nothing else

Reimplemented from mootio::mstream.

Reimplemented in mootio::mfstream.

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

Test for eof

Reimplemented from mootio::mstream.

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

Get current error message

Reimplemented from mootio::mstream.

virtual bool mootio::mcstream::flush void    [inline, virtual]
 

Flush all pending writes.

Reimplemented from mootio::mostream.

virtual bool mootio::mcstream::puts const std::string &    s [inline, virtual]
 

Write a C++ string to the stream

Reimplemented from mootio::mostream.

virtual bool mootio::mcstream::puts const char *    s [inline, virtual]
 

Write a C string to the stream

Reimplemented from mootio::mostream.

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

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

Reimplemented from mootio::mistream.

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

Does nothing

Reimplemented from mootio::mstream.

Reimplemented in mootio::mfstream.

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

Test stream integrity

Reimplemented from mootio::mstream.

virtual bool mootio::mcstream::vprintf const char *    fmt,
va_list &    ap
[inline, virtual]
 

printf() to the stream, va_list version (the real thing)

Reimplemented from mootio::mostream.

virtual bool mootio::mcstream::write const char *    buf,
size_t    n
[inline, virtual]
 

Write @n bytes from @buf to the stream

Reimplemented from mootio::mostream.


Member Data Documentation

FILE* mootio::mcstream::file
 


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