RE: [Quickfix-developers] SessionSettings improvement (I hope!)...
Brought to you by:
orenmnero
|
From: Steve B. <sb...@sm...> - 2005-12-06 17:18:20
|
Hi Tom, I don't know if I'd call it a scrubbing but the class has had a light washing recently. You can see the changes in the CVS HEAD or QFJ_BRANCH_1_0 branch (the basis of the next release). The property name and value parsing now allows a wider range of characters. The line ending check has also been made more platform independent although it's probably still not as good as it could be. The SessionSettings is not an interface because we are maintaining API compatibility with the C++ JNI wrapper. It's possible to programatically set individual nondefault properties in a SessionSettings object. There are many examples in the unit tests. There's currently no way to set individual default parameters. That can be added without breaking compatibility with the QFJ JNI code. [Note: I just added the unit tests and implementation for default property setters (the getters were already there). They are in the QFJ 1.0 branch and the HEAD.] Steve Bate Smart Trade Technologies Phone: +33 4 42 90 03 97 http://www.smart-trade.net/ _____ From: qui...@li... [mailto:qui...@li...] On Behalf Of Tom Dilatush Sent: Tuesday, December 06, 2005 4:54 PM To: Shepheard, Toby (London) Cc: QuickFIX Developers Subject: Re: [Quickfix-developers] SessionSettings improvement (I hope!)... Hi, Toby... No argument with any of that. But actually, I think the whole class could use a good scrubbing. That odd construct "\r\n".indexOf(ch) I borrowed from a piece of code just following the one I modified; it's in there more than once. And that whole tokenizer is a bit hard to follow. Also, I'd like to see the SessionSettings made into an interface, so that other kinds of session settings could be created. In my application, I've wrapped it with a class that lets me set the settings individually and programatically (so I can fish the settings from a master config file for the entire app), but the interface to SessionSettings is kinda wierd -- I generate the InputStream to feed to SessionSettings <smile>. |