Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Copyright (c) 2006, 2007 Julio M. Merino Vidal
0002 // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
0003 // Copyright (c) 2009 Boris Schaeling
0004 // Copyright (c) 2010 Felipe Tanus, Boris Schaeling
0005 // Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
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 #ifndef BOOST_PROCESS_DETAIL_WINDOWS_START_DIR_HPP
0011 #define BOOST_PROCESS_DETAIL_WINDOWS_START_DIR_HPP
0012 
0013 #include <string>
0014 #include <boost/process/detail/windows/handler.hpp>
0015 
0016 namespace boost { namespace process { namespace detail { namespace windows {
0017 
0018 template<typename Char>
0019 struct start_dir_init : handler_base_ext
0020 {
0021     start_dir_init(const std::basic_string<Char> &s) : s_(s) {}
0022 
0023     template <class Executor>
0024     void on_setup(Executor& exec) const
0025     {
0026         exec.work_dir = s_.c_str();
0027     }
0028 
0029     const std::basic_string<Char> &str() const {return s_;}
0030 private:
0031     std::basic_string<Char> s_;
0032 };
0033 
0034 }}}}
0035 
0036 #endif