Relative Content

Tag Archive for c++tagsmarkupostream

How to markup a C++ std::ostream and delegate formatting of markuped text?

I want to create a system that markups text with tags inserted into a stream.
Each tag frames a part of the text, creating a tree-like structure, just as in classic markup languages (HTML, XML…).
I want to externalize the formatting of the text according to the tags.
I’ve found a way of doing this that works, but as I’m not comfortable with std::streams in C++, I would appreciate advice and a code review for this project!