fmatvec 0.0.0

Classes | Public Member Functions | Private Attributes | List of all members
fmatvec::PrePostfixedStream Class Reference

A ostream object which prefix/postfix every meassage and calls the given function. More...

`#include <atom.h>`

Inheritance diagram for fmatvec::PrePostfixedStream:
[legend]

## Classes

class | StringBuf

## Public Member Functions

| PrePostfixedStream (const std::string &prefix_, const std::string &postfix_, const std::function< void(const std::string &)> &f)
| Call f with every message of the stream, prefixed/postfixed.
| PrePostfixedStream (const std::string &prefix_, const std::string &postfix_, std::ostream &outstr_)
| Convinence function to print to outstr_.

## Private Attributes

StringBuf | buffer

## Detailed Description

A ostream object which prefix/postfix every meassage and calls the given function.

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

- /mbsim-env/fmatvec/fmatvec/atom.h