For compilation, you need to use scal.hpp and this needs the Boost and QuantLib headers.
The interface is simple enough to call. It's a function call fix() and it uses a hard-coded map.
path = eepgwde::Summit::Q::instance().path(fs::path(::getenv("ELEVE_CONFIG_PATH")));
std::map<const std::string, QuantLib::Calendar> mismatches0 = eepgwde::Summit::Q::instance().fix();
The hard-coded map can be changed at runtime. The path() function sets up the directory to look for the Summit files.
The fix() function creates the Summit calendars. To create the calendars you need to have three sub-directories: COMP, NOTCOMP, WK.
path = eepgwde::Summit::Q::instance().path(fs::path(::getenv("ELEVE_CONFIG_PATH")));
std::map<const std::string, QuantLib::Calendar> mismatches0 = eepgwde::Summit::Q::instance().fix();
The hard-coded map can be changed at runtime. The path() function sets up the directory to look for the Summit files.
The fix() function creates the Summit calendars. To create the calendars you need to have three sub-directories: COMP, NOTCOMP, WK.