fpmas 1.6
Public Member Functions | List of all members
fpmas::io::StringOutput Class Reference

#include <output.h>

Inheritance diagram for fpmas::io::StringOutput:
Inheritance graph
[legend]
Collaboration diagram for fpmas::io::StringOutput:
Collaboration graph
[legend]

Public Member Functions

std::ostringstream & get () override
 
std::string str () const
 
- Public Member Functions inherited from fpmas::api::io::OutputStream
virtual std::ostream & get ()=0
 
std::ostream & operator<< (std::ostream &(*func)(std::ostream &))
 

Detailed Description

A string based implementation of fpmas::api::io::OutputStream.

Outputs are performed on an underlying string.

Member Function Documentation

◆ get()

std::ostringstream & fpmas::io::StringOutput::get ( )
inlineoverridevirtual

Returns a reference to the underlying std::ostringstream instance.

Returns
output stream

Implements fpmas::api::io::OutputStream.

◆ str()

std::string fpmas::io::StringOutput::str ( ) const
inline

Returns a copy of the current output string.

Returns
string output

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