BioCMAMC-ST
Common Namespace Reference

Classes

class  ConfigFactory
class  ConfigFile

Functions

template<typename T>
read_env_or (std::string_view varname, T vdefault)
 Wrapper arround get_env to get envariable with fallback to default.
template<typename T>
bool set_local_env (std::string_view varname, T val)
 Wrapper arround set_env.
template<>
bool read_env_or (std::string_view varname, bool vdefault)
template<>
bool set_local_env< std::string > (std::string_view varname, std::string val)
template<>
bool set_local_env< bool > (std::string_view varname, bool val)

Function Documentation

◆ read_env_or() [1/2]

template<>
bool Common::read_env_or ( std::string_view varname,
bool vdefault )

◆ read_env_or() [2/2]

template<typename T>
T Common::read_env_or ( std::string_view varname,
T vdefault )

Wrapper arround get_env to get envariable with fallback to default.

Note
: UB if T is not trivial type
Here is the caller graph for this function:

◆ set_local_env()

template<typename T>
bool Common::set_local_env ( std::string_view varname,
T val )

Wrapper arround set_env.

Note
: UB if T is not trivial type

◆ set_local_env< bool >()

template<>
bool Common::set_local_env< bool > ( std::string_view varname,
bool val )

◆ set_local_env< std::string >()

template<>
bool Common::set_local_env< std::string > ( std::string_view varname,
std::string val )