Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

mootio::mfstream Class Reference

Wrapper class for named file i/o using C FILE*s. More...

#include <mootCIO.h>

Inheritance diagram for mootio::mfstream:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

Constructors etc.
Open / Close
with mode @mode
(Re-)open file

Parameter setting (does nothing)

Public Attributes


Detailed Description

Uses mstream::name as filename identifier. The name "-" corresponds to either stdin or stdout, depending on open mode.


Constructor & Destructor Documentation

mootio::mfstream::mfstream void   )  [inline]
 

Default constructor as for mcstream

mootio::mfstream::mfstream const char *  filename,
const char *  open_mode = 0
[inline]
 

Constructor given filename and mode

virtual mootio::mfstream::~mfstream void   )  [inline, virtual]
 

Destructor: auto-closes file


Member Function Documentation

virtual bool mootio::mfstream::close void   )  [inline, virtual]
 

Close currently open file, if any

Reimplemented from mootio::mcstream.

bool mootio::mfstream::open const std::string &  filename,
const std::string &  open_mode = ""
[inline]
 

Open a named file, fopen() style. "-" may be use to specify stdin or stdout, depending on

bool mootio::mfstream::open const char *  filename,
const char *  open_mode = 0
[inline]
 

Open a named file, fopen() style. "-" may be use to specify stdin or stdout, depending on 'mode'

virtual bool mootio::mfstream::reopen void   )  [inline, virtual]
 

Does nothing

Reimplemented from mootio::mcstream.

void mootio::mfstream::setparams int  level = 0,
int  strategy = 0
[inline]
 

Does nothing. For compatibility with (possibly missing) zlib


Member Data Documentation

std::string mootio::mfstream::default_mode
 

std::string mootio::mfstream::mode
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 27 13:05:31 2005 for libmoot by  doxygen 1.3.8-20040913