Skip to content

Commit da982d1

Browse files
author
Damien Barker
committed
QPR-13711 add to cpp
1 parent f0922bb commit da982d1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

OREAnalytics/orea/app/inputparameters.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
153165
void InputParameters::setCurveConfigs(const std::string& xml, std::string id) {
154166
auto curveConfig = QuantLib::ext::make_shared<CurveConfigurations>();
155167
curveConfig->fromXMLString(xml);

0 commit comments

Comments
 (0)