Larry Evans wrote:
[snip]
I hadn't thought of the "adaptable sequence" idea, but the "composition of streambufs" idea sounds similar to the marg_ostreambuf in files/col_io. The marg_ostreambuf::CTOR takes a streambuf and its member functions forward to that after doing some processing via the marg_buffer_put superclass. Maybe marg_buffer_put is a "sort-of"
"adaptable sequence". Anyway, it might give you some ideas.

Maybe a modification to double_streambuf or bi_directional_streambuf
could be used simlar to pipes in unix. Another template parameter, e.g.
one named "Xform", would contain the code to do any transformations on the characters. For example, if Xform=marg_buffer_put, then this would
create marg_ostreambuf. This could be the input stream to another
such buffer, thus forming the next link in the pipe of streambufs.


Does this make sense?

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to