Re: [Quickfix-developers] Howto specify explicitly order of custom fields?
Brought to you by:
orenmnero
From: JohnG <jo...@pu...> - 2007-04-24 11:48:31
|
I am having the same difficulty with the order of custom header fields. I a= m unable to add EMX field 9426 to the header in the right order. Did you find a solution to this problem ? Thanks, John Oren Miller wrote: >=20 > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html >=20 > Well, if you dig down into the C++ layer, in the FieldMap class, you =20 > will notice that a FieldMap constructor takes a message_order =20 > object. Now, if you look in MessageSorters.h, you will find the =20 > message_order object which has 4 modes. >=20 > header: Makes sure that the BeginString, BodyLength, and MsgType are =20 > the first three fields. Everything else in ascending numerical order. >=20 > trailer: Makes sure the CheckSum field is last. Everything else in =20 > ascending numerical order. >=20 > normal: Sorted in ascending numerical order, used for message body's >=20 > group: Sorted in the order based on provided list. >=20 > Why is it like this? Well sorting things in ascending order is just =20 > the simplest fastest way to sort fields and complies with the spec. =20 > The group order was introduced because the spec explicitly states =20 > that repeating groups must be in a specific order. >=20 > Basically to accomplish what you need would require some new =20 > functionality. I think it would require the implementation of a data =20 > dictionary sorting mode. >=20 > --oren >=20 > On Jul 15, 2005, at 11:27 AM, Joerg Thoennes wrote: >=20 >> Hi Oren, >> >> >>> Which fields need to be ordered? The custom tags in the header =20 >>> and the trailer? The entire message? >>> >> >> To be more precise: EMX adds extra custom fields to both the header =20 >> and trailer, and of course to the body. >> >> We generated the new QF classes using the XML scripts, but the =20 >> order seems to be different from what EMX expects. >> >> So our questions is: >> >> How can we control the order of tags in >> >> (a) header >> (b) body >> (c) trailer >> >> My guess is that the DD order controls at least the body order, but =20 >> I am not sure about header and trailer. After some digging of the =20 >> source code some advise from you would be very helpful. >> >> Thanks, J=C3=B6rg >> >> --=20 >> Joerg Thoennes >> http://macd.com >> Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH >> Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen >> >> >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dclick > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers >=20 >=20 --=20 View this message in context: http://www.nabble.com/Howto-specify-explicitl= y-order-of-custom-fields--tf148484.html#a10159273 Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |