comparison third_party/boost/process/environment.hpp @ 0:add35537fdbb tip

Initial import
author irh <ian.r.hobson@gmail.com>
date Thu, 25 Aug 2011 11:05:55 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:add35537fdbb
1 //
2 // Boost.Process
3 // ~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2006, 2007 Julio M. Merino Vidal
6 // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
7 // Copyright (c) 2009 Boris Schaeling
8 // Copyright (c) 2010 Felipe Tanus, Boris Schaeling
9 //
10 // Distributed under the Boost Software License, Version 1.0. (See accompanying
11 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
12 //
13
14 /**
15 * \file boost/process/environment.hpp
16 *
17 * Includes the declaration of the environment class.
18 */
19
20 #ifndef BOOST_PROCESS_ENVIRONMENT_HPP
21 #define BOOST_PROCESS_ENVIRONMENT_HPP
22
23 #include <map>
24 #include <string>
25
26 namespace boost {
27 namespace process {
28
29 /**
30 * Representation of a process' environment variables.
31 *
32 * The environment is a map that establishes an unidirectional
33 * association between variable names and their values and is
34 * represented by a string to string map.
35 *
36 * Variables may be defined to the empty string. Be aware that doing so
37 * is not portable: POSIX systems will treat such variables as being
38 * defined to the empty value, but Windows systems are not able to
39 * distinguish them from undefined variables.
40 *
41 * Neither POSIX nor Windows systems support a variable with no name.
42 *
43 * It is worthy to note that the environment is sorted alphabetically.
44 * This is provided for-free by the map container used to implement this
45 * type, and this behavior is required by Windows systems.
46 */
47 typedef std::map<std::string, std::string> environment;
48
49 }
50 }
51
52 #endif