Thread: [Quickfix-developers] Howto specify explicitly order of custom fields?
Brought to you by:
orenmnero
|
From: Reiner N. <rei...@ma...> - 2005-07-15 10:31:12
|
Hi, to connect to EMX, I have to use some custom messages and some extra custom tags in message header and trailer. The field order must follow an explicitly defined order different from the default order by QuickFix. How can I specify this field order? Is this managed using the XML specification files? Thanks Reiner Nix |
|
From: Reiner N. <rei...@ma...> - 2005-07-15 11:04:26
|
> Hi, > > to connect to EMX, I have to use some custom messages and some extra custom > tags in message header and trailer. > The field order must follow an explicitly defined order different from the > default order by QuickFix. > > How can I specify this field order? > Is this managed using the XML specification files? > Also to be mentioned: I am using the Java layer of QuickFix (but not the pure Java version). > Thanks > Reiner Nix > > > ------------------------------------------------------- > 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_id=7477&alloc_id=16492&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers -- Reiner B. Nix IT-Architect rei...@ma... http://www.macd.com Tel.: +49 (0)241 44597-23 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |
|
From: Oren M. <or...@qu...> - 2005-07-15 16:17:37
|
Which fields need to be ordered? The custom tags in the header and the trailer? The entire message? --oren On Jul 15, 2005, at 5:30 AM, Reiner Nix wrote: > 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 > > Hi, > > to connect to EMX, I have to use some custom messages and some > extra custom > tags in message header and trailer. > The field order must follow an explicitly defined order different > from the > default order by QuickFix. > > How can I specify this field order? > Is this managed using the XML specification files? > > > Thanks > Reiner Nix > > > ------------------------------------------------------- > 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_id=7477&alloc_id=16492&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > |
|
From: Joerg T. <Joe...@ma...> - 2005-07-15 16:28:13
|
Hi Oren,
> Which fields need to be ordered? The custom tags in the header and the
> trailer? The entire message?
To be more precise: EMX adds extra custom fields to both the header and trailer, and of
course to the body.
We generated the new QF classes using the XML scripts, but the 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 I am not sure about
header and trailer. After some digging of the source code some advise from you would be
very helpful.
Thanks, Jörg
--
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
|
|
From: Oren M. <or...@qu...> - 2005-07-15 17:14:29
|
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. header: Makes sure that the BeginString, BodyLength, and MsgType are =20 the first three fields. Everything else in ascending numerical order. trailer: Makes sure the CheckSum field is last. Everything else in =20 ascending numerical order. normal: Sorted in ascending numerical order, used for message body's group: Sorted in the order based on provided list. 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. 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. --oren On Jul 15, 2005, at 11:27 AM, Joerg Thoennes wrote: > 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=F6rg > > --=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 > > |
|
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. |