fpmas 1.6
Public Member Functions | List of all members
fpmas::api::io::OutputStream Struct Referenceabstract

#include <output.h>

Inheritance diagram for fpmas::api::io::OutputStream:
Inheritance graph
[legend]

Public Member Functions

virtual std::ostream & get ()=0
 
std::ostream & operator<< (std::ostream &(*func)(std::ostream &))
 

Detailed Description

A generic std::ostream wrapper.

This allows to implement dynamic output streams, with a generic interface.

For example, the method get() might open and return a reference to a different output file depending on the current simulation step, while outputs are always performed to OutputStream::get().

Member Function Documentation

◆ get()

virtual std::ostream & fpmas::api::io::OutputStream::get ( )
pure virtual

Returns a reference to an std::ostream.

Returns
output stream

Implemented in fpmas::io::Cout, fpmas::io::StringOutput, fpmas::io::FileOutput, and fpmas::io::DynamicFileOutput.

◆ operator<<()

std::ostream & fpmas::api::io::OutputStream::operator<< ( std::ostream &(*)(std::ostream &)  func)
inline

Allows C++ standard output I/O manipulators (such as std::endl) to work with OutputStreams.


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