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/pipe.hpp ian@0: * ian@0: * Includes the declaration of the pipe class. ian@0: */ ian@0: ian@0: #ifndef BOOST_PROCESS_PIPE_HPP ian@0: #define BOOST_PROCESS_PIPE_HPP ian@0: ian@0: #include ian@0: #include ian@0: ian@0: namespace boost { ian@0: namespace process { ian@0: ian@0: #if defined(BOOST_PROCESS_DOXYGEN) ian@0: /** ian@0: * The pipe class is a type definition for stream-based classes defined by ian@0: * Boost.Asio. ian@0: * ian@0: * The type definition is provided for convenience. You can also use Boost.Asio ian@0: * classes directly for asynchronous I/O operations. ian@0: */ ian@0: typedef BoostAsioPipe pipe; ian@0: #elif defined(BOOST_POSIX_API) ian@0: typedef boost::asio::posix::stream_descriptor pipe; ian@0: #elif defined(BOOST_WINDOWS_API) ian@0: typedef boost::asio::windows::stream_handle pipe; ian@0: #else ian@0: # error "Unsupported platform." ian@0: #endif ian@0: ian@0: } ian@0: } ian@0: ian@0: #endif