introduction.qbk 943 B

123456789101112131415161718192021222324
  1. [section:introduction Introduction]
  2. Boost.Process is a library to manage system processes. It can be used to:
  3. * create child processes
  4. * setup streams for child processes
  5. * communicate with child processes through streams (synchronously or asynchronously)
  6. * wait for processes to exit (synchronously or asynchronously)
  7. * terminate processes
  8. Here's a simple example of how to start a program with Boost.Process:
  9. [def ipstream [classref boost::process::ipstream ipstream]]
  10. [def system [funcref boost::process::system system]]
  11. [def std_out [globalref boost::process::std_out std_out]]
  12. [def child [globalref boost::process::child child]]
  13. [def boost/process.hpp [headerref boost/process.hpp boost/process.hpp]]
  14. [def std::string [@http://en.cppreference.com/w/cpp/string/basic_string std::string]]
  15. [def std::getline [@http://en.cppreference.com/w/cpp/string/basic_string/getline std::getline]]
  16. [import ../example/intro.cpp]
  17. [intro]
  18. [endsect]