|
From: eric e. <eri...@gm...> - 2007-06-12 14:24:29
|
Hi Piter, > Hi. How are you? Life is good, thanks. Glad to see you're still in action. Are you still maintaining the batch script to build QuantLibXL? > Some time ago I did a Business252 daycounter to QuantLib and you told me = it > would not be so easy to integrate it to QuantLibXL due to design of both > (QuantLibXL and my class). > Where you able to do that? I lost the thread where you explained the issu= es > about this integration and there is sometime I don=B4t check the project. > Is there something I could help? I don't remember the discussion and can't find any mention of it in the archives. But looking at it now I see the problem, that the constructor of the Business252 class expects an input argument. This is not supported by the design for enumerated datatypes. The user supplies a string e.g. "Actual/360" and the system automatically calls the default constructor of the corresponding class e.g. QuantLib::Actual360(). There is no mechanism for an argument to be supplied to the constructor. Could the class be reworked to support a default constructor? If not, perhaps we could expose it as a proper stateful object. Thanks, Eric |