Re: [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++)
Brought to you by:
orenmnero
From: George T. <GT...@rb...> - 2010-03-19 14:53:04
|
Thank you very much Ed and Kenny, you guys saved me a lot of headache George Tsafas Rosenblatt Securities ________________________________ From: Ed....@gl... [mailto:Ed....@gl...] Sent: Friday, March 19, 2010 10:16 AM To: George Tsafas Cc: qui...@li... Subject: Re: [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++) Those tags are in the header so are treated differently. Use getHeader <http://www.quickfixengine.org/quickfix/doc/html/class_f_i_x_1_1_message .html#f4dd86b82c0d3ee2c63df03a80c02c41> ().getField <http://www.quickfixengine.org/quickfix/doc/html/class_f_i_x_1_1_field_m ap.html#9116cfc2e25ee379a08e7e10579fde44> ( senderCompID ); Tel: +44 (0) 207 412 3698 Mobile: +44 (0) 7990 500 925 gtsafas <gt...@rb...> 19/03/2010 14:05 To qui...@li... cc Subject [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++) QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html <http://www.quickfixengine.org/quickfix/doc/html/index.html> QuickFIX Support: http://www.quickfixengine.org/services.html <http://www.quickfixengine.org/services.html> I am trying to pull the following tags into strings. I can see the message having the tag and value but its not pulling the value. I am trying to do it the following way, which works for all other tags. FIX::SenderCompID SENDERCOMPID; if (message.isSetField(SENDERCOMPID)){ fSenderCompID = message.getField(SENDERCOMPID).getString(); } else { if (message.isSetField(49)){ fSenderCompID = message.getField(49); } } FIX::TargetCompID TARGETCOMPID; if (message.isSetField(TARGETCOMPID)){ fTargetCompID = message.getField(TARGETCOMPID).getString(); } else { if (message.isSetField(56)){ fTargetCompID = message.getField(56); } } FIX::OnBehalfOfLocationID ONBEHALFOFLOCATIONID; if (message.isSetField(ONBEHALFOFLOCATIONID)){ fOnBehalfOfLocationID = message.getField(ONBEHALFOFLOCATIONID).getString(); } else { if (message.isSetField(144)){ fOnBehalfOfLocationID = message.getField(144); } } -- View this message in context: http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBeh alfOfLocation-%28C%2B%2B%29-tp27950964p27950964.html <http://old.nabble.com/Not-getting-TargetCompID-%2C-SenderCompID-or-OnBe halfOfLocation-%28C%2B%2B%29-tp27950964p27950964.html> Sent from the QuickFIX - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev <http://p.sf.net/sfu/intel-sw-dev> _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers <https://lists.sourceforge.net/lists/listinfo/quickfix-developers> LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word "misdirected" as the message and delete this e-mail from your system. |