41 exec_stream_t( std::string
const & program, std::string
const & arguments );
42 template<
class iterator >
exec_stream_t( std::string
const & program, iterator args_begin, iterator args_end );
56 void start( std::string
const & program, std::string
const & arguments );
57 template<
class iterator >
void start( std::string
const & program, iterator args_begin, iterator args_end );
58 void start( std::string
const & program,
char const * arg1,
char const * arg2 );
59 void start( std::string
const & program,
char * arg1,
char * arg2 );
74 error_t( std::string
const & msg );
77 virtual char const *
what()
const throw();
104 virtual std::string
const *
next()=0;
114 virtual std::string
const *
next()
138 start( program, args_begin, args_end );
141 template<
class iterator >
inline void exec_stream_t::start( std::string
const & program, iterator args_begin, iterator args_end )
144 start( program, next_arg );
149 std::vector< std::string > args;
150 args.push_back( std::string( arg1 ) );
151 args.push_back( std::string( arg2 ) );
152 start( program, args.begin(), args.end() );
157 std::vector< std::string > args;
158 args.push_back( std::string( arg1 ) );
159 args.push_back( std::string( arg2 ) );
160 start( program, args.begin(), args.end() );
error_t()
Definition: exec-stream.cc:436
Definition: exec-stream.h:98
Definition: exec-stream.h:46
iterator m_args_end
Definition: exec-stream.h:127
Definition: exec-stream.h:46
Definition: exec-stream.h:107
void exceptions(bool enable)
Definition: exec-stream.cc:401
Definition: exec-stream.h:72
void new_impl()
Definition: exec-stream.cc:372
unsigned long timeout_t
Definition: exec-stream.h:50
virtual char const * what() const
Definition: exec-stream.cc:454
exec_stream_t & operator=(exec_stream_t const &)
std::ostream & in()
Definition: exec-stream.cc:386
virtual ~next_arg_t()
Definition: exec-stream.h:100
~error_t()
Definition: exec-stream.cc:450
std::string m_msg
Definition: exec-stream.h:82
std::istream & out()
Definition: exec-stream.cc:391
exec_stream_t()
Definition: exec-stream.cc:359
void set_binary_mode(int stream_kind)
void set_text_mode(int stream_kind)
void start(std::string const &program, std::string const &arguments)
virtual std::string const * next()
Definition: exec-stream.h:114
friend struct impl_t
Definition: exec-stream.h:89
void compose(std::string const &msg, error_code_t code)
Definition: exec-stream.cc:460
virtual std::string const * next()=0
std::string m_arg
Definition: exec-stream.h:128
Definition: exec-stream.h:46
void set_wait_timeout(int stream_kind, timeout_t milliseconds)
Definition: exec-stream.h:46
std::istream & err()
Definition: exec-stream.cc:396
Definition: exec-stream.h:38
iterator m_args_i
Definition: exec-stream.h:126
void set_buffer_limit(int stream_kind, std::size_t size)
impl_t * m_impl
Definition: exec-stream.h:91
~exec_stream_t()
Definition: exec-stream.cc:377
unsigned long error_code_t
Definition: exec-stream.h:70
Definition: exec-stream.h:46
stream_kind_t
Definition: exec-stream.h:46
next_arg_impl_t(iterator args_begin, iterator args_end)
Definition: exec-stream.h:109