Imported Upstream version 1.64.0
[platform/upstream/boost.git] / boost / process / detail / traits / env.hpp
1 // Copyright (c) 2016 Klemens D. Morgenstern\r
2 //\r
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying\r
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\r
5
6 #ifndef BOOST_PROCESS_DETAIL_TRAITS_ENV_HPP_\r
7 #define BOOST_PROCESS_DETAIL_TRAITS_ENV_HPP_\r
8
9
10 #include <boost/process/detail/traits/decl.hpp>\r
11
12
13 namespace boost { namespace process {\r
14
15 template<typename Char>\r
16 class basic_environment;\r
17
18 template<typename Char>\r
19 class basic_native_environment;\r
20
21 namespace detail {\r
22
23 template<typename Char>\r
24 struct env_tag {};\r
25
26
27
28
29 template<typename Char> struct env_set;\r
30 template<typename Char> struct env_append;\r
31
32 template<typename Char> struct env_reset;\r
33 template<typename Char> struct env_init;\r
34
35
36 template<typename Char> struct initializer_tag<env_set<Char>>    { typedef env_tag<Char> type; };\r
37 template<typename Char> struct initializer_tag<env_append<Char>> { typedef env_tag<Char> type; };\r
38
39 template<typename Char> struct initializer_tag<env_reset<Char>> { typedef env_tag<Char> type;};\r
40 template<typename Char> struct initializer_tag<env_init <Char>> { typedef env_tag<Char> type;};\r
41
42 template<typename Char>  struct initializer_tag<::boost::process::basic_environment<Char>>           { typedef env_tag<Char> type; };\r
43 template<typename Char>  struct initializer_tag<::boost::process::basic_native_environment<Char>> { typedef env_tag<Char> type; };\r
44
45 template<> struct initializer_builder<env_tag<char>>;\r
46 template<> struct initializer_builder<env_tag<wchar_t>>;\r
47
48 }\r
49
50
51 }}\r
52
53 #endif /* INCLUDE_BOOST_PROCESS_DETAIL_ENV_HPP_ */\r