Orxonox: src/util/OutputBuffer.h File Reference

# OutputBuffer.h File Reference

Declaration of the OutputBuffer class. More...

`#include "UtilPrereqs.h"`
`#include <vector>`
`#include <sstream>`

## Namespaces

namespace | orxonox

## Classes

class | orxonox::OutputBuffer
| The OutputBuffer acts almost like std::ostream and stores the assigned text. More...
class | orxonox::OutputBufferListener
| A pure virtual baseclass for classes that want to register as listener to an OutputBuffer. More...

## Detailed Description

Declaration of the OutputBuffer class.

The OutputBuffer acts almost like std::ostream. You can put text and other values to the OutputBuffer by using the << operator. The OutputBuffer stores the text and calls registerd listeners if new text gets assigned. The listeners are then able to retrieve the text line by line.

It's important to know that getLine actually removes the line from the OutputBuffer, so it's better to only have one "active" listener.