Re: [Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++)
Brought to you by:
orenmnero
From: <Ed....@gl...> - 2010-03-19 14:46:27
|
Those tags are in the header so are treated differently. Use getHeader(). getField( 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 QuickFIX Support: 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-OnBehalfOfLocation-%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 _______________________________________________ Quickfix-developers mailing list Qui...@li... 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. |