Login  Register

Enum Registry

Posted by andrea-110 on Nov 12, 2010; 9:45pm
URL: http://quantlib.414.s1.nabble.com/Enum-Registry-tp731.html

Hi,

I've found an enum registry in the object handler to convert strings to "enums"

        QuantLib::Currency CurrencyEnum =
            ObjectHandler::Create<QuantLib::Currency>()(CurrencyCpp);

and the registry is populated from an xml file.

Is there a way to get the same feature without ObjectHandler? Using only the core QuantLib?

Or, what is the minimum set of classes required to get tis feature?
I have to admit I am still a bit lost in the ObjectHandler/gensrc world.

Andrea


------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users