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

RWTOutputStreamLockImp<OutputStream, FilteredOutputStreamImp>

Module:  Advanced Tools   Package:  Streams


RWTOutputStreamLockImp FilteredOutputStreamImp

Local Index

Members

Header File

#include <rw/stream/RWTOutputStreamLockImp.h>

Description

The class RWTOutputStreamLockImp implements a simple lock stream that can be used with any kind of output stream. The stream locks its internal synchronization mechanism before forwarding output requests to its associated sink stream, and then unlock the internal synchronization mechanism upon completion. The stream's internal synchronization mechanism is locked using a guard object, ensuring its proper release in the event that an exception is thrown.

Member Typedefs

typedef OutputStream RWOutputStream_type   RWOutputStream_type 
typedef OutputStream::element_type         element_type 

Protected Constructors

RWTOutputStreamLockImp(OutputStream& sinkStream);

Public Destructors

virtual 
~RWTOutputStreamLockImp();

Static Public Member Functions

static OutputStream 
make(OutputStream& sinkStream);

Public Member Functions

virtual OutputStream 
acquire();
virtual void 
close();
virtual void 
flush();
virtual bool 
isBad() const;
virtual bool 
isFail() const;
virtual bool 
isGood() const;
virtual void 
release();
virtual void 
write(const element_type* array, RWSize numElements);
virtual void 
write(element_type value);

Protected Member Functions

RWMutexLock& 
getStreamMutex() const;

RWMutexLock& 
getStreamMutex();


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.