Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
environment.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License version 2.1 as published by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  */
17 
24 #ifndef LXCPP_ENVIRONMENT_HPP
25 #define LXCPP_ENVIRONMENT_HPP
26 
27 #include <vector>
28 #include <utility>
29 #include <string>
30 
31 namespace lxcpp {
32 
33 void clearenv();
34 
42 void clearenvExcept(const std::vector<std::string>& names);
43 
44 std::string getenv(const std::string& name);
45 
46 void setenv(const std::string& name, const std::string& value);
47 
48 void setenv(const std::vector<std::pair<std::string, std::string>>& variables);
49 
50 } // namespace lxcpp
51 
52 #endif // LXCPP_ENVIRONMENT_HPP
void clearenvExcept(const std::vector< std::string > &names)
Clears the env variables except those listed.
Definition: environment.cpp:34
std::string getenv(const std::string &name)
Definition: environment.cpp:62
void setenv(const std::string &name, const std::string &value)
Definition: environment.cpp:73
void clearenv()
Definition: environment.cpp:52