Hi,
I'm a newbie in quantlib and I'm interested in how to interface an application with quantilib. Specifically, for test purpose, I'd need to integrate quantlib to an application, so I would like to feed any of the quantlib executable with an input (from input file , standard input or arguments) and publish the output through the interface that I'm developing. I've tried a couple of exec files but I can't pass any input, they seem generate the output without the need of an input. Can you please suggest a way to do it or eventually any link where I can find this information? Thanks, Matteo ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Mon, 2010-11-01 at 11:54 +0000, matteo zorzi wrote:
> Specifically, for test purpose, I'd need to integrate quantlib to an > application, so I would like to feed any of the quantlib executable > with an input (from input file , standard input or arguments) and > publish the output through the interface that I'm developing. I've > tried a couple of exec files but I can't pass any input, they seem > generate the output without the need of an input. Yes, the examples use built-in values for convenience. If you want to get external input, there are quite a few ways to do that depending on what you want. From input file, the simplest way would be to use an istream; ditto for standard input, for which you can use std::cin (you'll find this covered in any C++ book). For arguments, you might have a look at the Boost Program Options library at <http://www.boost.org/doc/libs/1_44_0/doc/html/program_options.html>. Luigi -- This gubblick contains many nonsklarkish English flutzpahs, but the overall pluggandisp can be glorked from context. -- David Moser ------------------------------------------------------------------------------ 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 |
Free forum by Nabble | Edit this page |