![]() |
fpmas 1.6
|
#include <output.h>
Public Member Functions | |
virtual std::ostream & | get ()=0 |
std::ostream & | operator<< (std::ostream &(*func)(std::ostream &)) |
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().
|
pure virtual |
Returns a reference to an std::ostream.
Implemented in fpmas::io::Cout, fpmas::io::StringOutput, fpmas::io::FileOutput, and fpmas::io::DynamicFileOutput.
|
inline |
Allows C++ standard output I/O manipulators (such as std::endl) to work with OutputStreams.