#include <Stream.h>

Inheritance diagram for SBufStream:
Collaboration diagram for SBufStream:

Public Member Functions

 SBufStream (SBuf aBuf)
 
 SBufStream ()
 Create an empty SBufStream. More...
 
SBuf buf ()
 Retrieve a copy of the current stream status. More...
 
SBufStreamclearBuf ()
 Clear the stream's backing store. More...
 

Private Attributes

SBufStreamBuf theBuffer
 

Detailed Description

Stream interface to write to a SBuf.

Data is appended using standard operator << semantics, and extracted using the buf() method, in analogy with std::strstream .

Definition at line 85 of file Stream.h.

Constructor & Destructor Documentation

SBufStream::SBufStream ( SBuf  aBuf)
inline

Create a SBufStream preinitialized with the contents of a SBuf

The supplied SBuf copied: in order to retrieve the written-to contents they must be later fetched using the buf() class method.

Definition at line 93 of file Stream.h.

SBufStream::SBufStream ( )
inline

Definition at line 99 of file Stream.h.

Member Function Documentation

SBuf SBufStream::buf ( )
inline

Definition at line 105 of file Stream.h.

Referenced by ACL::dumpOptions(), testSBuf::testSBufStream(), and ToSBuf().

SBufStream& SBufStream::clearBuf ( )
inline

Definition at line 111 of file Stream.h.

Referenced by testSBuf::testSBufStream().

Member Data Documentation

SBufStreamBuf SBufStream::theBuffer
private

Definition at line 118 of file Stream.h.


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors