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
25
namespace
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
cepgen::utils::env::get
std::string get(const std::string &var, const std::string &def)
Get an environment variable.
Definition
Environment.cpp:28
cepgen::utils::env::set
void set(const std::string &var, const std::string &value)
Set an environment variable.
Definition
Environment.cpp:49
cepgen::utils::env::unset
void unset(const std::string &var)
Clear an environment variable.
Definition
Environment.cpp:64
cepgen::utils::env::searchPaths
std::vector< std::string > searchPaths()
Retrieve a list of all search paths for external files.
Definition
Environment.cpp:34
cepgen::utils::env::append
void append(const std::string &var, const std::string &value)
Add a value to an environment variable.
Definition
Environment.cpp:57
cepgen
Common namespace for this Monte Carlo generator.
Definition
CommandLineHandler.cpp:36
CepGen
Utils
Environment.h
Generated on Mon Jul 29 2024 for CepGen by
1.9.7