tags:

views:

19

answers:

1

Hi all, I use quickFixEngine and want to use ConfigurationSection for all the engion setting instead the setting.txt file. however I am not sure how to Initialize the SessionSettings with the setting.

I created a "SessionConfiguration" with all the needed properties. After loading the section I try to convert it to Stream and call QuickFix.SessionSettings(Stream) with the created Stream.

I it not work for me....

Thank you.

A: 

You will have to change how the underlying stream is being read. Only changing the input method doesn't help. Quickfix is implemented to read the stream in a way by which the configuration settings are arranged in the configuration file. You will get an error if you try to put configuration fields at the wrong place. It shows the stream expects fields only where it has been asked to. You can download the source code and implement your own stream reading mechanism behind it.

DumbCoder