Mercurial > hg > gpsynth
comparison third_party/boost/process/pipe.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/pipe.hpp | |
16 * | |
17 * Includes the declaration of the pipe class. | |
18 */ | |
19 | |
20 #ifndef BOOST_PROCESS_PIPE_HPP | |
21 #define BOOST_PROCESS_PIPE_HPP | |
22 | |
23 #include <boost/process/config.hpp> | |
24 #include <boost/asio.hpp> | |
25 | |
26 namespace boost { | |
27 namespace process { | |
28 | |
29 #if defined(BOOST_PROCESS_DOXYGEN) | |
30 /** | |
31 * The pipe class is a type definition for stream-based classes defined by | |
32 * Boost.Asio. | |
33 * | |
34 * The type definition is provided for convenience. You can also use Boost.Asio | |
35 * classes directly for asynchronous I/O operations. | |
36 */ | |
37 typedef BoostAsioPipe pipe; | |
38 #elif defined(BOOST_POSIX_API) | |
39 typedef boost::asio::posix::stream_descriptor pipe; | |
40 #elif defined(BOOST_WINDOWS_API) | |
41 typedef boost::asio::windows::stream_handle pipe; | |
42 #else | |
43 # error "Unsupported platform." | |
44 #endif | |
45 | |
46 } | |
47 } | |
48 | |
49 #endif |