[Quickfix-developers] Not getting TargetCompID , SenderCompID or OnBehalfOfLocation (C++)
Brought to you by:
orenmnero
From: gtsafas <gt...@rb...> - 2010-03-19 14:04:32
|
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. |