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

nocommentstream Class Reference

A nocommentstream is an istream that strips '#' comments. More...

#include <nocomment.h>

Inheritance diagram for nocommentstream:

Inheritance graph
[legend]
Collaboration diagram for nocommentstream:

Collaboration graph
[legend]
List of all members.

Public Methods

 nocommentstream (istream &stream)
 Uses open stream. More...

 ~nocommentstream ()
 Destructor. More...


Private Attributes

NoCommentFilter filter_

Detailed Description

A nocommentstream is an istream that strips '#' comments.

All characters following (and including) a '#' are ignored up to (but not including) the next newline character.

Definition at line 18 of file nocomment.h.


Constructor & Destructor Documentation

nocommentstream::nocommentstream istream & is
 

Uses open stream.

Definition at line 4 of file nocomment.C.

00004                                            : filter_(is) {
00005 rdbuf(new FilterStreambuf<NoCommentFilter>(filter_));
00006 }

nocommentstream::~nocommentstream [inline]
 

Destructor.

Definition at line 37 of file nocomment.h.

00037 { delete rdbuf(); }


Member Data Documentation

NoCommentFilter nocommentstream::filter_ [private]
 

Definition at line 39 of file nocomment.h.


The documentation for this class was generated from the following files:
FSM [ August, 2001]