CWStream Class Reference
[C++ IOStream Fixups And Utilities]

Search Toolkit Book for CWStream

#include <rwstream.hpp>

Inheritance diagram for CWStream:

Inheritance graph
[legend]
Collaboration diagram for CWStream:

Collaboration graph
[legend]
List of all members.

Detailed Description

Writer-based stream;.

See also:
IWriter
Parameters:
buf_size specifies the number bytes for internal I/O buffer, entirely used for writing by the underlying stream buffer CRWStreambuf; 0 causes to create the buffer of some default size.
buf may specify the buffer location (if 0, an internal storage gets allocated and later freed upon stream destruction).
flags controls whether IWriter is destroyed upon stream destruction, and whether excpetions cause logging (or caught silently).
Special case of "buf_size" == 1 and "buf" == 0 creates unbuffered stream.

See also:
IRStream, IRWStream

Definition at line 116 of file rwstream.hpp.

Public Member Functions

 CWStream (IWriter *w, streamsize buf_size=0, CT_CHAR_TYPE *buf=0, CRWStreambuf::TFlags flags=0)

Private Attributes

CRWStreambuf m_Sb


Constructor & Destructor Documentation

CWStream::CWStream IWriter w,
streamsize  buf_size = 0,
CT_CHAR_TYPE *  buf = 0,
CRWStreambuf::TFlags  flags = 0
[inline]
 

Definition at line 119 of file rwstream.hpp.

References init(), and m_Sb.


Member Data Documentation

CRWStreambuf CWStream::m_Sb [private]
 

Definition at line 136 of file rwstream.hpp.

Referenced by CWStream().


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 15:25:09 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:22 2009 by modify_doxy.py rev. 173732