27 #ifndef LBANN_UTILS_STUBS_PRESET_ENV_ACCESSOR_HPP_INCLUDED 28 #define LBANN_UTILS_STUBS_PRESET_ENV_ACCESSOR_HPP_INCLUDED 31 #include <unordered_map> 40 std::string
get(std::string
const&)
const;
46 static std::unordered_map<std::string, std::string>
vars_;
51 if (
vars_.size() == 0UL)
54 auto it =
vars_.find(var_name);
55 if (it ==
vars_.end())
65 {
"ICE_CREAM_SCOOPS",
"3"},
66 {
"PIZZA",
"pepperoni"},
67 {
"VALUE_IS_TRUE",
"true"},
68 {
"VALUE_IS_ONE",
"1"},
69 {
"VALUE_IS_FALSE",
"false"},
70 {
"VALUE_IS_ZERO",
"0"},
std::string get(std::string const &) const
static void populate_vars()
static std::unordered_map< std::string, std::string > vars_