Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:12

0001 //
0002 // boost/process/v2/default_launcher.hpp
0003 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2022 Klemens D. Morgenstern (klemens dot morgenstern at gmx dot net)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_PROCESS_V2_DEFAULT_LAUNCHER_HPP
0012 #define BOOST_PROCESS_V2_DEFAULT_LAUNCHER_HPP
0013 
0014 #include <boost/process/v2/detail/config.hpp>
0015 
0016 #if defined(BOOST_PROCESS_V2_WINDOWS)
0017 #include <boost/process/v2/windows/default_launcher.hpp>
0018 #else
0019 #if defined(BOOST_PROCESS_V2_PDFORK)
0020 #include <boost/process/v2/posix/pdfork_launcher.hpp>
0021 #else
0022 #include <boost/process/v2/posix/default_launcher.hpp>
0023 #endif
0024 
0025 #endif
0026 
0027 BOOST_PROCESS_V2_BEGIN_NAMESPACE
0028 
0029 #if defined(GENERATING_DOCUMENTATION)
0030 
0031 /// The default launcher for processes.
0032 /** This launcher will be used by process if a 
0033  * process is launched through the constructor:
0034  * 
0035  * @code {.cpp}
0036  * process proc("test", {});
0037  * // equivalent to
0038  * process prod = default_launcher()("test", {});
0039  * @endcode
0040  * 
0041  */
0042 
0043 typedef implementation_defined default_process_launcher;
0044 
0045 #else
0046 #if defined(BOOST_PROCESS_V2_WINDOWS)
0047 typedef windows::default_launcher default_process_launcher;
0048 #else
0049 #if defined(BOOST_PROCESS_V2_PDFORK)
0050 typedef posix::pdfork_launcher default_process_launcher;
0051 #else
0052 typedef posix::default_launcher default_process_launcher;
0053 #endif
0054 #endif
0055 
0056 
0057 #endif
0058 
0059 
0060 BOOST_PROCESS_V2_END_NAMESPACE
0061 
0062 #if defined(BOOST_PROCESS_V2_HEADER_ONLY)
0063 #include <boost/process/v2/impl/default_launcher.ipp>
0064 #endif
0065 
0066 #endif //BOOST_PROCESS_V2_DEFAULT_LAUNCHER_HPP