Mercurial > hg > gpsynth
comparison third_party/boost/process/stream_id.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_id.hpp | |
16 * | |
17 * Includes the declaration of the stream_id type. | |
18 */ | |
19 | |
20 #ifndef BOOST_PROCESS_STREAM_ID_HPP | |
21 #define BOOST_PROCESS_STREAM_ID_HPP | |
22 | |
23 #include <boost/process/config.hpp> | |
24 | |
25 namespace boost { | |
26 namespace process { | |
27 | |
28 /** | |
29 * Standard stream id to refer to standard streams in a cross-platform manner. | |
30 */ | |
31 enum std_stream_id { stdin_id, stdout_id, stderr_id }; | |
32 | |
33 #if defined(BOOST_PROCESS_DOXYGEN) | |
34 /** | |
35 * Stream id type. | |
36 * | |
37 * Depending on the platform the stream id type is defined to refer to standard | |
38 * streams only or to support more streams. | |
39 */ | |
40 typedef NativeStreamId stream_id; | |
41 #elif defined(BOOST_POSIX_API) | |
42 typedef int stream_id; | |
43 #elif defined(BOOST_WINDOWS_API) | |
44 typedef std_stream_id stream_id; | |
45 #endif | |
46 | |
47 } | |
48 } | |
49 | |
50 #endif |