The canonical approach consists in defining your own streambuf.
You should have a look at:
- Angelika LAnger’s articles on IOStreams derivation
- James Kanze’s articles on filtering streambufs
- boost.iostream for examples of application
More Related Contents:
- overloading friend operator
- How to properly overload the
- how do I print an unsigned char as hex in c++ using ostream?
- Floating point format for std::ostream
- How to make C++ cout not use scientific notation
- How do the stream manipulators work?
- Order of execution in operator
- Copy a streambuf’s contents to a string
- initializing a C++ std::istringstream from an in memory buffer?
- C++ : friend declaration ‘declares a non-template function
- Is there a null std::ostream implementation in C++ or libraries?
- How to use C++ std::ostream with printf-like formatting?
- C++ streams confusion: istreambuf_iterator vs istream_iterator?
- Is the code valid. If i want to display first element? if not then what will s.begin() return?
- What are the barriers to understanding pointers and what can be done to overcome them? [closed]
- What are access specifiers? Should I inherit with private, protected or public?
- Including .cpp files
- How do I print UTF-8 from c++ console application on Windows
- How are references implemented internally?
- Include header files using command line option?
- Compiling multithread code with g++
- Conditional operator differences between C and C++
- What are the best (portable) cross-platform arbitrary-precision math libraries? [closed]
- Finding the centroid of a polygon?
- Effective C++ Item 23 Prefer non-member non-friend functions to member functions
- Is it legal to compare dangling pointers?
- How to choose between map and unordered_map?
- Is std::pair ordering well-defined?
- Why is `make_unique` disallowed?
- parsing into several vector members