/** @file variables.hpp */ /** Listing 57-6. The variables.hpp File */ #ifndef VARIABLES_HPP_ #define VARIABLES_HPP_ #include #include typedef std::map variable_map; extern variable_map global_variables; /// Expand variables in a string using a local map /// and the global map. /// @param str The string to expand /// @param local_variables The optional, local map; can be null /// @return The expanded string std::string expand(std::string str, variable_map const* local_variables = 0); #endif // VARIABLES_HPP_