Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class 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 Member Functions

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

Public Attributes


Constructor & Destructor Documentation

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

Default constructor

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

Destructor


Member Function Documentation

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 int mootio::mcstream::getc void   )  [inline, virtual]
 

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

Reimplemented from mootio::mistream.

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

Write a single byte to the stream

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
bytes of data into , 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
bytes from 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 Mon Jun 27 13:05:30 2005 for libmoot by  doxygen 1.3.8-20040913