Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Copyright (c) 2016 Klemens D. Morgenstern
0002 //
0003 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 
0007 #ifndef BOOST_PROCESS_WINDOWS_CMD_HPP_
0008 #define BOOST_PROCESS_WINDOWS_CMD_HPP_
0009 
0010 #include <string>
0011 
0012 namespace boost
0013 {
0014 namespace process
0015 {
0016 namespace detail
0017 {
0018 namespace windows
0019 {
0020 
0021 template<typename CharType>
0022 struct cmd_setter_ : ::boost::process::detail::handler_base
0023 {
0024     typedef CharType value_type;
0025     typedef std::basic_string<value_type> string_type;
0026 
0027     cmd_setter_(string_type && cmd_line)      : _cmd_line(std::move(cmd_line)) {}
0028     cmd_setter_(const string_type & cmd_line) : _cmd_line(cmd_line) {}
0029     template <class Executor>
0030     void on_setup(Executor& exec)
0031     {
0032         exec.cmd_line = _cmd_line.c_str();
0033     }
0034     const string_type & str() const {return _cmd_line;}
0035 
0036 private:
0037     string_type _cmd_line;
0038 };
0039 
0040 }
0041 
0042 
0043 }
0044 }
0045 }
0046 
0047 
0048 
0049 #endif /* INCLUDE_BOOST_PROCESS_WINDOWS_ARGS_HPP_ */