Re: [Quickfix-developers] Group assignment
Brought to you by:
orenmnero
From: <or...@qu...> - 2008-03-10 19:07:21
|
<html><body><div>Probably a bug. I'll look into it.</div> <div> </div> <div>--oren<BR></div> <BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT: blue 2px solid" webmail="1">-------- Original Message --------<BR>Subject: [Quickfix-developers] Group assignment<BR>From: "Bill Robert" <rob...@ra...><BR>Date: Mon, March 10, 2008 2:18 am<BR>To: <qui...@li...><BR><BR>QuickFIX Documentation: <a href="http://www.quickfixengine.org/quickfix/doc/html/index.html" target=_blank>http://www.quickfixengine.org/quickfix/doc/html/index.html</a><BR>QuickFIX Support: <a href="http://www.quickfixengine.org/services.html" target=_blank>http://www.quickfixengine.org/services.html</a><BR><BR>In following example (C++):<BR><BR>FIX::Group grp2(92, 93, FIX::message_order(93, 95, 94, 0));<BR>grp2.setField(93, "Original");<BR>grp2.setField(94, "BBB");<BR>grp2.setField(95, "AAA");<BR>std::string lctmp;<BR>cout << "Original: " << grp2.calculateString(lctmp) << '\n';<BR><BR>FIX::Group lc(grp2);<BR>lc.setField(93, "Copy");<BR>cout << "Copy: " << lc.calculateString(lctmp) << '\n';<BR><BR>the expected output would be <BR><BR>Original:92=1 93=Original 95=AAA 94=BBB<BR>Copy: 92=1 93=Copy 95=AAA 94=BBB<BR><BR>Please refer to the order 95<94. If you run the code the copy looks like<BR><BR>Copy: 92=1 93=Copy 94=BBB 95=AAA<BR><BR>It looks like that the assignment FIX::Group lc(grp2) doesn't work as<BR>expected. Field/delim are correctly copied, but message_order is lost<BR>somehow in the copy assignment.<BR><BR>Is there a way to copy a group?<BR><BR>Thanks, Robert<BR><BR>-------------------------------------------------------------------------<BR>This SF.net email is sponsored by: Microsoft<BR>Defy all challenges. Microsoft(R) Visual Studio 2008.<BR><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target=_blank>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><BR>_______________________________________________<BR>Quickfix-developers mailing list<BR><a onclick="Popup.composeWindow('pcompose.php?sendto=Quickfix-developers%40lists.sourceforge.net'); return false;" href="http://email.secureserver.net/pcompose.php?aEmlPart=0&type=replyall&folder=INBOX&uid=25473#Compose">Quickfix-developers<B></B>@lists.sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers" target=_blank>https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a><BR></BLOCKQUOTE></body></html> |