27#include <ql/time/date.hpp>
76 const std::string&
validTo =
"");
std::string validFrom(const std::string &externalName) const
Qualifier mapping start date (ISO date), may be blank and interpreted as QL::minDate()
std::string validTo(const std::string &externalName) const
Qualifier mapping expiry (ISO date), may be blank and interpreted as QL::maxDate()
QuantLib::Date validToDate(const std::string &externalName) const
Qualifier mapping expiry (QuantLib date)
std::map< std::string, std::string > mapping_
void fromXML(ore::data::XMLNode *node) override
QuantLib::Date validFromDate(const std::string &externalName) const
Qualifier mapping startDate (QuantLib date)
std::string externalName(const std::string &qualifier) const override
reverse lookup on qualifier
ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
void addMapping(const std::string &externalName, const std::string &qualifier, const std::string &validFrom="", const std::string &validTo="")
Add a single mapping.
bool hasQualifier(const std::string &externalName) const override
Has qualifier.
std::map< std::string, std::string > validFrom_
std::string qualifier(const std::string &externalName) const override
bool hasValidQualifier(const std::string &externalName, const QuantLib::Date &referenceDate) const
Has qualifier that is valid w.r.t. given reference date.
std::map< std::string, std::string > validTo_
Abstract base class for classes that map names to SIMM qualifiers.