Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Advanced Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWTStreamGuardImp<StreamHandle, FilteredStreamImp>

Module:  Advanced Tools   Package:  Streams


RWTStreamGuardImp FilteredStreamImp

Local Index

Members

Header File

#include <rw/stream/RWTStreamGuardImp.h>

Description

The class RWTStreamGuardImp implements a simple guard stream that can be used with any kind of input/output stream. The stream guard acquires the synchronization mechanism provided by its source/sink stream at construction time, and releases it upon destruction. The guard stream doesn't maintain its own synchronization mechanism, but rather uses the one provided by the next processing stream. If the next processing stream doesn't implement any synchronization mechanism, then the stream guard class has no effect. The guard class is generally used in combination with one of the synchronization classes RWSynchronizedChar/Byte/RWUChar/Wchar/DataInput/OutputStreamImp.

Protected Constructor

RWTStreamGuardImp(StreamHandle& stream);

Public Destructor

virtual 
~RWTStreamGuardImp();

Static Public Member Functions

static StreamHandle 
make(StreamHandle& stream);

Protected Member Functions

StreamHandle& 
getNextStream();

const StreamHandle& 
getNextStream() const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.