Belle II Software light-2406-ragdoll
EnvironmentVariables Class Reference

Utility functions related to environment variables. More...

#include <EnvironmentVariables.h>

Static Public Member Functions

static bool isSet (const std::string &name)
 Check if a value is set in the database.
 
static std::string get (const std::string &name, const std::string &fallback="")
 Get the value of an environment variable or the given fallback value if the variable is not set.
 
static std::vector< std::string > getList (const std::string &name, const std::vector< std::string > &fallback={}, const std::string &separators=" \t\n\r")
 Get a list of values from an environment variable or the given fallback list if the variable is not set.
 
static std::vector< std::string > getOrCreateList (const std::string &name, const std::string &fallback, const std::string &separators=" \t\n\r")
 Get a list of values from an environment variable or the given fallback string if the variable is not set.
 
static std::string expand (const std::string &text)
 Modify the given string and replace every occurence of $NAME or ${NAME} with the value of the environment variable NAME.
 

Detailed Description

Utility functions related to environment variables.

Definition at line 19 of file EnvironmentVariables.h.


The documentation for this class was generated from the following files: