#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() [1/2]

SBufStream::SBufStream ( SBuf  aBuf)

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.

References theBuffer.

◆ SBufStream() [2/2]

SBufStream::SBufStream ( )

Definition at line 99 of file Stream.h.

References theBuffer.

Member Function Documentation

◆ buf()

◆ clearBuf()

SBufStream& SBufStream::clearBuf ( )

Definition at line 111 of file Stream.h.

References SBufStreamBuf::clearBuf(), and theBuffer.

Referenced by testSBuf::testSBufStream().

Member Data Documentation

◆ theBuffer

SBufStreamBuf SBufStream::theBuffer

Definition at line 118 of file Stream.h.

Referenced by SBufStream(), buf(), and clearBuf().

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






Web Site Translations