cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
Environment.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2013-2022 Laurent Forthomme
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef CepGen_Utils_Environment_h
20#define CepGen_Utils_Environment_h
21
22#include <string>
23#include <vector>
24
25namespace cepgen {
26 namespace utils {
28 namespace env {
30 std::vector<std::string> searchPaths();
32 std::string get(const std::string& var, const std::string& def = "");
34 void set(const std::string& var, const std::string& value);
36 void append(const std::string& var, const std::string& value);
38 void unset(const std::string& var);
39 } // namespace env
40 } // namespace utils
41} // namespace cepgen
42
43#endif
std::string get(const std::string &var, const std::string &def)
Get an environment variable.
void set(const std::string &var, const std::string &value)
Set an environment variable.
void unset(const std::string &var)
Clear an environment variable.
std::vector< std::string > searchPaths()
Retrieve a list of all search paths for external files.
void append(const std::string &var, const std::string &value)
Add a value to an environment variable.
Common namespace for this Monte Carlo generator.