2 * Copyright (C) 2017 Simon Fels <morphis@gravedo.de>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program 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
11 * GNU Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef ANBOX_UTILS_ENVIRONMENT_FILE_H_
19 #define ANBOX_UTILS_ENVIRONMENT_FILE_H_
23 #include <boost/filesystem.hpp>
27 class EnvironmentFile {
29 EnvironmentFile(const boost::filesystem::path &path);
30 ~EnvironmentFile() = default;
32 std::string value(const std::string &key, const std::string &default_value = "") const;
35 std::map<std::string, std::string> data_;