Serving the Quantitative Finance Community

 
User avatar
Polter
Posts: 1
Joined: April 29th, 2008, 4:55 pm

C++ to XML and doxygen, Boostdoc

October 7th, 2011, 6:03 pm

Cuch -- see these slides for a big picture summary: http://www.stanford.edu/class/cs242/sli ... nterop.pdf
 
User avatar
Polter
Posts: 1
Joined: April 29th, 2008, 4:55 pm

C++ to XML and doxygen, Boostdoc

October 7th, 2011, 6:25 pm

outrun, yeah, that's the official MATLAB-provided "mex.h" C API I've mentioned, the ugly one (IMO)."plhs = mxCreateDoubleMatrix(m, n, mxREAL);" // and it's not type safe, eitherCompare this (C API) with this (C++ API).The difference is between C and C++. Although C is simple, C++ might be somewhat more expressive.It's also about style:n = mxGetNumberOfElements(prhs[0]); // C APIn = indata.ncols(); // C++ API Just my 2 cents.
Last edited by Polter on October 6th, 2011, 10:00 pm, edited 1 time in total.
 
User avatar
Polter
Posts: 1
Joined: April 29th, 2008, 4:55 pm

C++ to XML and doxygen, Boostdoc

October 7th, 2011, 6:32 pm

Ah, I see, if that's all auto-generated then it's of far lesser importance, I agree. Guess I'll wait for that script, then ;-)
 
User avatar
Polter
Posts: 1
Joined: April 29th, 2008, 4:55 pm

C++ to XML and doxygen, Boostdoc

October 7th, 2011, 11:12 pm

OK, I've experimented with SWIG on Windows with R (only used Rcpp & MinGW before for R<->C++ interop) and MSVC 2010 (x64).I've written a detailed "for dummies" (so even I remember! ) account of the experience up to and including compiling & running SWIG example for R (building from the IDE, MSVS 2010).I'll see if I can figure out how to do this from the command-line and get back to you.
 
User avatar
Polter
Posts: 1
Joined: April 29th, 2008, 4:55 pm

C++ to XML and doxygen, Boostdoc

October 8th, 2011, 10:59 pm

QuoteOriginally posted by: outrunCool Polter! Can you put the doc up athttp://qfcl.wilmott.com/p/qfcl/doc/It doesn't matter is isn't finished yet, feel free to give it a name you like.OK, barely formatted braindump-style, but should suffice for minimalistic intro:http://qfcl.wilmott.com/p/qfcl/page/5-DevGuide/// creating a Makefile is more elegant, and using the IDE is the easiest way to proceed for MSVS -- but perhaps this will be familiar for those using GCC more oftenPatches welcome! :-)
 
User avatar
quartz
Posts: 3
Joined: June 28th, 2005, 12:33 pm

C++ to XML and doxygen, Boostdoc

October 9th, 2011, 9:48 am

Maybe ask the SWIG guys for MATLAB support instead of preparing a script - however short -, so that the whole world can benefit, and you can focus on other stuff, isn't the list long enough already? :-)
 
User avatar
Polter
Posts: 1
Joined: April 29th, 2008, 4:55 pm

C++ to XML and doxygen, Boostdoc

October 9th, 2011, 6:18 pm

OK, I assume this is also the "documentation toolchain thread" (or should we have another one, since we've started to focus on FFI generation here, mostly deciding on SWIG), so let's have some overview:QuickBook can generate BoostBook xml, to generate HTML, PostScript and PDF You can find the documentation for these Boost tools here:http://www.boost.org/doc/libs/release/d ... Additional links:http://svn.boost.org/trac/boost/wiki/Im ... /QUICKBOOK LIMITATIONS AND GUIDELINEShttp://svn.boost.org/trac/boost/wiki/Guidelines/DoxygenGuidelinesI have only used Doxygen before, although I have to say QuickBook looks pretty interesting.As far as the Boost documentation is concerned, those are independent parts of the toolchain:http://svn.boost.org/trac/boost/wiki/Bo ... rtedAnyone experienced with QuickBook here?What should the overall toolchain setup be for QFCL?
Last edited by Polter on October 8th, 2011, 10:00 pm, edited 1 time in total.