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