Warning, file /include/boost/process/v1/detail/windows/cmd.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
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 BOOST_PROCESS_V1_INLINE namespace v1
0017 {
0018 namespace detail
0019 {
0020 namespace windows
0021 {
0022
0023 template<typename CharType>
0024 struct cmd_setter_ : ::boost::process::v1::detail::handler_base
0025 {
0026 typedef CharType value_type;
0027 typedef std::basic_string<value_type> string_type;
0028
0029 cmd_setter_(string_type && cmd_line) : _cmd_line(std::move(cmd_line)) {}
0030 cmd_setter_(const string_type & cmd_line) : _cmd_line(cmd_line) {}
0031 template <class Executor>
0032 void on_setup(Executor& exec)
0033 {
0034 exec.cmd_line = _cmd_line.c_str();
0035 }
0036 const string_type & str() const {return _cmd_line;}
0037
0038 private:
0039 string_type _cmd_line;
0040 };
0041
0042 }
0043
0044
0045 }
0046 }
0047 }
0048 }
0049
0050
0051 #endif