Warning, file /include/boost/process/v1/detail/traits/cmd_or_exe.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_DETAIL_TRAITS_CMD_OR_EXE_HPP_
0008 #define BOOST_PROCESS_DETAIL_TRAITS_CMD_OR_EXE_HPP_
0009
0010 #include <string>
0011 #include <vector>
0012 #include <type_traits>
0013 #include <initializer_list>
0014 #include <boost/process/v1/filesystem.hpp>
0015 #include <boost/process/v1/detail/traits/decl.hpp>
0016
0017
0018 namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { namespace detail {
0019
0020 template<typename Char>
0021 struct cmd_or_exe_tag {};
0022
0023 struct shell_;
0024
0025
0026 template<> struct initializer_tag<const char* > { typedef cmd_or_exe_tag<char> type;};
0027 template<> struct initializer_tag<const wchar_t* > { typedef cmd_or_exe_tag<wchar_t> type;};
0028
0029 template<> struct initializer_tag<char* > { typedef cmd_or_exe_tag<char> type;};
0030 template<> struct initializer_tag<wchar_t* > { typedef cmd_or_exe_tag<wchar_t> type;};
0031
0032 template<std::size_t Size> struct initializer_tag<const char [Size]> { typedef cmd_or_exe_tag<char> type;};
0033 template<std::size_t Size> struct initializer_tag<const wchar_t [Size]> { typedef cmd_or_exe_tag<wchar_t> type;};
0034
0035 template<std::size_t Size> struct initializer_tag<const char (&)[Size]> { typedef cmd_or_exe_tag<char> type;};
0036 template<std::size_t Size> struct initializer_tag<const wchar_t (&)[Size]> { typedef cmd_or_exe_tag<wchar_t> type;};
0037
0038 template<> struct initializer_tag<std::basic_string<char >> { typedef cmd_or_exe_tag<char> type;};
0039 template<> struct initializer_tag<std::basic_string<wchar_t >> { typedef cmd_or_exe_tag<wchar_t> type;};
0040
0041 template<> struct initializer_tag<std::vector<std::basic_string<char >>> { typedef cmd_or_exe_tag<char> type;};
0042 template<> struct initializer_tag<std::vector<std::basic_string<wchar_t >>> { typedef cmd_or_exe_tag<wchar_t> type;};
0043
0044 template<> struct initializer_tag<std::initializer_list<std::basic_string<char >>> { typedef cmd_or_exe_tag<char> type;};
0045 template<> struct initializer_tag<std::initializer_list<std::basic_string<wchar_t >>> { typedef cmd_or_exe_tag<wchar_t> type;};
0046
0047 template<> struct initializer_tag<std::vector<char *>> { typedef cmd_or_exe_tag<char> type;};
0048 template<> struct initializer_tag<std::vector<wchar_t *>> { typedef cmd_or_exe_tag<wchar_t> type;};
0049
0050 template<> struct initializer_tag<std::initializer_list<char *>> { typedef cmd_or_exe_tag<char> type;};
0051 template<> struct initializer_tag<std::initializer_list<wchar_t *>> { typedef cmd_or_exe_tag<wchar_t> type;};
0052
0053 template<> struct initializer_tag<std::initializer_list<const char *>> { typedef cmd_or_exe_tag<char> type;};
0054 template<> struct initializer_tag<std::initializer_list<const wchar_t *>> { typedef cmd_or_exe_tag<wchar_t> type;};
0055
0056 template<> struct initializer_tag<shell_>
0057 {
0058 typedef cmd_or_exe_tag<typename boost::process::v1::filesystem::path::value_type> type;
0059 };
0060
0061 template<> struct initializer_tag<boost::process::v1::filesystem::path>
0062 {
0063 typedef cmd_or_exe_tag<typename boost::process::v1::filesystem::path::value_type> type;
0064 };
0065
0066 template <typename Char>
0067 struct exe_setter_;
0068 template <typename Char, bool Append = false>
0069 struct arg_setter_;
0070
0071 template <typename Char, bool Append>
0072 struct initializer_tag<arg_setter_<Char, Append>> { typedef cmd_or_exe_tag<Char> type;};
0073
0074 template<typename Char> struct initializer_tag<exe_setter_<Char>> { typedef cmd_or_exe_tag<Char> type;};
0075
0076 template<>
0077 struct initializer_builder<cmd_or_exe_tag<char>>;
0078
0079 template<>
0080 struct initializer_builder<cmd_or_exe_tag<wchar_t>>;
0081
0082
0083 }}}}
0084
0085 #endif