libexecstream 0.3 review

Download
by rbytes.net on

License: BSD License
File size: 0K
Developer: Artem Khodush
0 stars award from rbytes.net

Libexecstream is a C++ library that allows you to run a child process and have its input, output and error avaliable as standard C++ streams.

Here are some key features of "libexecstream":
Works on Linux and Windows
Uses threads
Does not depend on any other non-standard library
Distributed as source code only, requires you to compile and link one file into your program
BSD-style license

Example:

#include < exec-stream.h >
#include < string >
...
try {
exec_stream_t es( "perl", "" ); // run perl without any arguments
es.in() < < "print "hello world";"; // and make it print "hello world"
es.close_in(); // after the input was closed
std::string hello, world;
es.out() >> hello; // read the first word of output
es.out() >> world; // read the second word
}catch( std::exception const & e ) {
std::cerr

libexecstream 0.3 search tags