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