Blame view

3rdparty/boost_1_81_0/libs/process/doc/introduction.qbk 943 Bytes
73ef4ff3   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  [section:introduction Introduction]
  
  Boost.Process is a library to manage system processes. It can be used to:
  
  * create child processes
  * setup streams for child processes
  * communicate with child processes through streams (synchronously or asynchronously)
  * wait for processes to exit (synchronously or asynchronously)
  * terminate processes
  
  Here's a simple example of how to start a program with Boost.Process:
  
  [def ipstream  [classref boost::process::ipstream ipstream]]
  [def system [funcref boost::process::system system]]
  [def std_out [globalref boost::process::std_out std_out]]
  [def child [globalref boost::process::child child]]
  [def boost/process.hpp [headerref boost/process.hpp boost/process.hpp]]
  [def std::string [@http://en.cppreference.com/w/cpp/string/basic_string std::string]]
  [def std::getline [@http://en.cppreference.com/w/cpp/string/basic_string/getline std::getline]]
  
  [import ../example/intro.cpp]
  [intro]
  
  [endsect]