ian@0: // ian@0: // Boost.Process ian@0: // ~~~~~~~~~~~~~ ian@0: // ian@0: // Copyright (c) 2006, 2007 Julio M. Merino Vidal ian@0: // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling ian@0: // Copyright (c) 2009 Boris Schaeling ian@0: // Copyright (c) 2010 Felipe Tanus, Boris Schaeling ian@0: // ian@0: // Distributed under the Boost Software License, Version 1.0. (See accompanying ian@0: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ian@0: // ian@0: ian@0: /** ian@0: * \file boost/process/stream_id.hpp ian@0: * ian@0: * Includes the declaration of the stream_id type. ian@0: */ ian@0: ian@0: #ifndef BOOST_PROCESS_STREAM_ID_HPP ian@0: #define BOOST_PROCESS_STREAM_ID_HPP ian@0: ian@0: #include ian@0: ian@0: namespace boost { ian@0: namespace process { ian@0: ian@0: /** ian@0: * Standard stream id to refer to standard streams in a cross-platform manner. ian@0: */ ian@0: enum std_stream_id { stdin_id, stdout_id, stderr_id }; ian@0: ian@0: #if defined(BOOST_PROCESS_DOXYGEN) ian@0: /** ian@0: * Stream id type. ian@0: * ian@0: * Depending on the platform the stream id type is defined to refer to standard ian@0: * streams only or to support more streams. ian@0: */ ian@0: typedef NativeStreamId stream_id; ian@0: #elif defined(BOOST_POSIX_API) ian@0: typedef int stream_id; ian@0: #elif defined(BOOST_WINDOWS_API) ian@0: typedef std_stream_id stream_id; ian@0: #endif ian@0: ian@0: } ian@0: } ian@0: ian@0: #endif