arsenalgear-cpp
A library containing general purpose C++ utils.
Public Member Functions | List of all members
agr::savebuf Class Reference

Class used to store the output sent to an output stream. More...

#include <stream.hpp>

Inheritance diagram for agr::savebuf:
Inheritance graph
[legend]
Collaboration diagram for agr::savebuf:
Collaboration graph
[legend]

Public Member Functions

 savebuf (std::streambuf *sbuf)
 Construct a new savebuf object. More...
 
std::string str () const
 Method to return the string stored by the output stream. More...
 

Detailed Description

Class used to store the output sent to an output stream.

Constructor & Destructor Documentation

◆ savebuf()

agr::savebuf::savebuf ( std::streambuf *  sbuf)

Construct a new savebuf object.

Parameters
sbufA std::streambuf* object.

Member Function Documentation

◆ str()

std::string agr::savebuf::str ( ) const

Method to return the string stored by the output stream.

Returns
std::string The string stored by the output stream.

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