comparison third_party/boost/process/stream_ends.hpp @ 0:add35537fdbb tip

Initial import
author irh <ian.r.hobson@gmail.com>
date Thu, 25 Aug 2011 11:05:55 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:add35537fdbb
1 //
2 // Boost.Process
3 // ~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2006, 2007 Julio M. Merino Vidal
6 // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
7 // Copyright (c) 2009 Boris Schaeling
8 // Copyright (c) 2010 Felipe Tanus, Boris Schaeling
9 //
10 // Distributed under the Boost Software License, Version 1.0. (See accompanying
11 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
12 //
13
14 /**
15 * \file boost/process/stream_ends.hpp
16 *
17 * Includes the declaration of the stream_ends class.
18 */
19
20 #ifndef BOOST_PROCESS_STREAM_ENDS_HPP
21 #define BOOST_PROCESS_STREAM_ENDS_HPP
22
23 #include <boost/process/config.hpp>
24 #include <boost/process/handle.hpp>
25
26 namespace boost {
27 namespace process {
28
29 /**
30 * A pair of handles to configure streams.
31 *
32 * Stream behaviors return a pair of handles to specify how a child's stream
33 * should be configured and possibly the opposite end of a child's end. This
34 * is the end remaining in the parent process and which can be used for example
35 * to communicate with a child process through its standard streams.
36 */
37 struct stream_ends {
38 /**
39 * The child's end.
40 */
41 handle child;
42
43 /**
44 * The parent's end.
45 */
46 handle parent;
47
48 /**
49 * Standard constructor creating two invalid handles.
50 */
51 stream_ends()
52 {
53 }
54
55 /**
56 * Helper constructor to easily initialize handles.
57 */
58 stream_ends(handle c, handle p)
59 : child(c),
60 parent(p)
61 {
62 }
63 };
64
65 }
66 }
67
68 #endif