A base64::auto_attach is a class that attaches a base64::streambuf to a stream and automatically detaches it when the auto_attach object is destroyed. More...
#include <zorba/base64_stream.h>
Public Member Functions | |
auto_attach (StreamType &stream) | |
Constructs an auto_attach object calling attach() on the given stream. | |
~auto_attach () | |
Destroys this auto_attach object calling detach() on the previously attached stream. |
A base64::auto_attach is a class that attaches a base64::streambuf to a stream and automatically detaches it when the auto_attach object is destroyed.
A base64::auto_attach is useful for streams not created by you.
Definition at line 209 of file base64_stream.h.
|
inline |
Constructs an auto_attach object calling attach() on the given stream.
stream | The stream to attach the base64::streambuf to. If the stream already has a base64::streambuf attached to it, this contructor does nothing. |
Definition at line 218 of file base64_stream.h.
References zorba::base64::attach().
|
inline |
Destroys this auto_attach object calling detach() on the previously attached stream.
Definition at line 226 of file base64_stream.h.
References zorba::base64::detach().