Printer which is just a combination of other printers.
More...
#include <Printer.hpp>
Public Member Functions | |
| Compound_printer (std::vector< std::shared_ptr< Printer > >) | |
| void | operator() (std::string message, bool emph=false, bool replace=false) override |
Public Attributes | |
| std::vector< std::shared_ptr< Printer > > | printers |
| list of printers—feel free to modify | |
Printer which is just a combination of other printers.
Anything you tell it to print will be forwarded to all of Compound_printer::printers
|
overridevirtual |
| message | what you want to print |
| emph | If true, some form of emphasis formatting will be used, if possible. |
| replace | If true, message will replace the current line of text on the screen, rather than be appended to it. |
Implements hexed::Printer.