pipe.hpp
Go to the documentation of this file.
1 // Copyright (c) 2006, 2007 Julio M. Merino Vidal
2 // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
3 // Copyright (c) 2009 Boris Schaeling
4 // Copyright (c) 2010 Felipe Tanus, Boris Schaeling
5 // Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 
10 /**
11  * \file boost/process/pipe.hpp
12  *
13  * Defines a pipe.
14  */
15 
16 #pragma once
17 
18 #include <boost/process/config.hpp>
19 
20 #include BOOST_PROCESS_PLATFORM_PROMOTE_PATH(pipe)
21 BOOST_PROCESS_PLATFORM_PROMOTE_NAMESPACE(pipe)
22 BOOST_PROCESS_PLATFORM_PROMOTE_NAMESPACE(make_pipe)
23 
24 #if defined(BOOST_PROCESS_DOXYGEN)
25 namespace boost
26 {
27  namespace process
28  {
29 
30  /**
31  * Represents a pipe.
32  */
33  struct pipe
34  {
35  /**
36  * Read-end.
37  */
38  pipe_end_type source;
39 
40  /**
41  * Write-end.
42  */
43  pipe_end_type sink;
44 
45  /**
46  * Constructor.
47  */
48  pipe(pipe_end_type source, pipe_end_type sink);
49  };
50 
51  /**
52  * Returns a pipe instance.
53  *
54  * This is a helper function to instantiate boost::process::pipe.
55  *
56  * \note boost::process::make_pipe does not create a pipe.
57  * You must pass existing pipe ends to this function.
58  * If you want to create an anonymous pipe, call
59  * boost::process::create_pipe.
60  */
61  pipe make_pipe(pipe_end_type source, pipe_end_type sink);
62 
63  }
64 }
65 #endif
66 
config.hpp
boost
Definition: ApplicationOptions.h:37
boost::source
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:681
boost::process::windows::make_pipe
pipe make_pipe(HANDLE source, HANDLE sink)
Definition: pipe.hpp:25