[QuantLibAddin-cvs] QuantLibAddin/qlo typefactory.hpp,1.1,1.2
Brought to you by:
ericehlers,
nando
|
From: Eric E. <eri...@us...> - 2006-06-09 15:19:18
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12525/qlo Modified Files: typefactory.hpp Log Message: teomporary fix for conversion of Period Index: typefactory.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/typefactory.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** typefactory.hpp 19 May 2006 16:56:16 -0000 1.1 --- typefactory.hpp 9 Jun 2006 15:19:15 -0000 1.2 *************** *** 22,25 **** --- 22,26 ---- #include <ql/Instruments/payoffs.hpp> #include <ql/Utilities/strings.hpp> + #include <ql/Utilities/dataparsers.hpp> // FIXME #include <oh/exception.hpp> *************** *** 80,83 **** --- 81,95 ---- } }; + + // FIXME - temporary hack - to cater for autogenerated code + // requiring conversion of period + template<> + class Create<QuantLib::Period > { + public: + QuantLib::Period operator()(const std::string& ID) { + return QuantLib::PeriodParser::parse(ID); + } + }; + } |