Login  Register

Re: Enum Registry

Posted by Luigi Ballabio on Nov 15, 2010; 10:57am
URL: http://quantlib.414.s1.nabble.com/Enum-Registry-tp731p732.html

On Fri, 2010-11-12 at 21:45 +0000, Andrea wrote:
> I've found an enum registry in the object handler to convert strings
> to "enums" [...] 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?

No, there isn't.  But I think it should be easy to implement the
registry with a std::map<std::string, enum> or something like it (I'm
not sure about the XML part, though---I'm not familiar with XML
libraries in C++.)

Luigi



--

Glendower: I can call spirits from the vasty deep.
Hotspur: Why, so can I, or so can any man;
But will they come when you do call for them?
-- King Henry the Fourth Part I, Act III, Scene I



------------------------------------------------------------------------------
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