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
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?
- Why should I not #include ?
- What does “dereferencing” a pointer mean?
- In this specific case, is there a difference between using a member initializer list and assigning values in a constructor?
- Why use iterators instead of array indices?
- C/C++ with GCC: Statically add resource files to executable/library
- Problems importing libraries to my c++ project, how to fix this?
- Sorting std::map using value
- Including .cpp files
- How to do an integer log2() in C++?
- c++ template partial specialization member function [duplicate]
- Destruction order of static objects in C++
- How to parse a date string into a c++11 std::chrono time_point or similar?
- templates: parent class member variables not visible in inherited class
- Drawing Sphere in OpenGL without using gluSphere()?
- What is the difference between pre-increment and post-increment in the cycle (for/while)?
- Is there a formula to determine overall color given BGR values? (OpenCV and C++)
- Clarification needed regarding getchar() and newline
- std::set with user defined type, how to ensure no duplicates
- Purpose of Header guards
- Inheritance: ‘A’ is an inaccessible base of ‘B’
- Check at Compile-Time if Template Argument is void
- How to create two classes in C++ which use each other as data?
- Class template argument deduction not working with alias template
- How does the modulus operator work?
- C++ class member function pointer to function pointer
- Is a Union Member’s Destructor Called
- Template within template: why “`>>’ should be `> >’ within a nested template argument list”
- Returning Large Objects in Functions
- How can I sort a std::map first by value, then by key?
- C++ copy a stream object
- QObject Multiple Inheritance
- Cyclic dependency between header files
- extra qualification error in C++
- Creating my own Iterators
- Passing shared_ptr as shared_ptr
- One or more multiply defined symbols found
- clean C++ granular friend equivalent? (Answer: Attorney-Client Idiom)
- Why is this constexpr static member function not seen as constexpr when called?
- How to sort an STL vector?
- Add external libraries to CMakeList.txt c++
- std::unique_ptr with derived class