Abstract Factory/Abstract(Virtual) Constructor Pattern
Posted by
Plamen Neykov on
May 31, 2005; 4:03pm
URL: http://quantlib.414.s1.nabble.com/Abstract-Factory-Abstract-Virtual-Constructor-Pattern-tp3817.html
Hi All,
I'm relatively new to QuantLib and now I ran into a problem which usually is
resolved via the mentioned patterns - I need to construct a Currency object
from a given ISO three letter code - but I couldn't find any elegant(easy)
method to do this. I was expecting to find some creational pattern available
for all of the "Enum" Classes as for example Currency etc, but as I said I
couldn't find anything - am I overseeing something?
What is the "QuantLib" way to this?
Thanks in advance
Plamen