cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
cepgen::utils::env Namespace Reference

All environment variable-related utilities.

Functions

std::string get (const std::string &var, const std::string &def="")
 Get an environment variable.
 
std::vector< std::string > searchPaths ()
 Retrieve a list of all search paths for external files.
 
void set (const std::string &var, const std::string &value)
 Set an environment variable.
 
void append (const std::string &var, const std::string &value)
 Add a value to an environment variable.
 
void unset (const std::string &var)
 Clear an environment variable.
 

Variables

static constexpr char PATH_DELIM = ':'
 

Function Documentation

◆ append()

void append ( const std::string &  var,
const std::string &  value 
)

Definition at line 57 of file Environment.cpp.

◆ get()

std::string get ( const std::string &  var,
const std::string &  def 
)

Definition at line 28 of file Environment.cpp.

◆ searchPaths()

std::vector< std::string > searchPaths ( )

Definition at line 34 of file Environment.cpp.

◆ set()

void set ( const std::string &  var,
const std::string &  value 
)

Definition at line 49 of file Environment.cpp.

◆ unset()

void unset ( const std::string &  var)

Definition at line 64 of file Environment.cpp.

Variable Documentation

◆ PATH_DELIM

constexpr char PATH_DELIM = ':'
staticconstexpr

Definition at line 54 of file Environment.cpp.