File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,6 +150,18 @@ void InputParameters::setConventionsFromFile(const std::string& fileName) {
150150 InstrumentConventions::instance ().setConventions (conventions_);
151151}
152152
153+ void InputParameters::setMporConventions (const std::string& xml) {
154+ mporConventions_ = QuantLib::ext::make_shared<Conventions>();
155+ mporConventions_->fromXMLString (xml);
156+ InstrumentConventions::instance ().setConventions (mporConventions_, mporDate ());
157+ }
158+
159+ void InputParameters::setMporConventionsFromFile (const std::string& fileName) {
160+ mporConventions_ = QuantLib::ext::make_shared<Conventions>();
161+ mporConventions_->fromFile (fileName);
162+ InstrumentConventions::instance ().setConventions (mporConventions_, mporDate ());
163+ }
164+
153165void InputParameters::setCurveConfigs (const std::string& xml, std::string id) {
154166 auto curveConfig = QuantLib::ext::make_shared<CurveConfigurations>();
155167 curveConfig->fromXMLString (xml);
You can’t perform that action at this time.
0 commit comments