Re: [Quickfix-developers] add key-value record into Dictionary class
Brought to you by:
orenmnero
From: <or...@qu...> - 2010-06-10 14:05:08
|
This is actually probably the only way to really do this. QuickFIX isn't really designed right now to handle modified settings, so the API reflects that. Your way will work, however just because you change a setting does not mean it will be picked up after starting the engine. If you do this, make sure you make your changed before starting the engine if you are changing engine settings. If these are your own settings then it shouldn't be a problem. --oren > -------- Original Message -------- > Subject: [Quickfix-developers] add key-value record into Dictionary > class > From: Mikhail Yakubovich <mik...@fx...> > Date: Mon, June 07, 2010 11:18 am > To: "qui...@li..." > <qui...@li...> > > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html<hr>Hello, everybody. > I got stuck on an easy task. What I want to do is just to add a single key-value pair to my FIX::Dictionary class. SessionSettings::get() method could return me the Dictionary, but the problem is that is returns const value, which doesn’t allow me to modify the Dictionary class. The only approach I see now (the horrible one) is, because it is possible to set new Dictionary in SessionSettions class SessionSettings::set(). Is to create an empty Dictionary, copy all records from the current one ( SessionSettings::get() ) and then set the new ( SessionSettings::set() ). More likely I just missed some API. Thank you. > > add key-value record into Dictionary class<hr>------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo<hr>_______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |