|
From: stephan b. <st...@s1...> - 2004-12-31 16:18:43
|
On Friday 31 December 2004 16:21, Christian Prochnow wrote:
> The new I/O code (pclasses2) should now be usable - please test it.
The IOTest runs on my box :).
> System::Pipe - Anonymous pipe's
> System::ProcessIO - Used to comminucate with child processes through
> anonymous pipes.
These will allow s11n over ssh :).
> // copy test.txt to process stdin
> File f("test.txt", File::Read);
> Process proc("tmpbin");
> proc.start(Process::RedirectAll);
>
> // copy data ...
> copy(f, proc.processIO());
> -- cut --
>
> Cool eh?
Extremely! :)
i am impressed :)
> IOStream should also work - please test it, cause documentation about
> extending std::streambuf is rare on the net, it's likely to fail.
streambuf docs are extremely rare. Josutti's "The C++ Standard Library"
are the most complete docs i've seen.
i will definately try it out - i want to get s11n-over-IO working again.
Quasi-related: please don't use IOManager at the moment. i'm still
re-thinking about whether it's really needed. i'm not certain that it
is.
> IOStream strm(f); // create I/O stream
> std::string str;
> strm >> str; // read string from test.txt
What is the default skipws handling? Same as std::istream (skip)?
Thanks for the code! :)
--
----- st...@s1... http://s11n.net
"...pleasure is a grace and is not obedient to the commands
of the will." -- Alan W. Watts
|