|
From: CaiQi <cai...@ho...> - 2007-09-24 17:33:48
|
Hello, steve,
Thank you very much for your answer!
But I still don't know: why and when we can set "0" to the delimeter field number?
Such as:
Group g = new Group(groupCountTag, 0);
which is used in a article of "Using Message Metadata" at http://www.quickfixj.org/confluence/display/qfj/Using+Message+Metadata .
As we known, don't have field "0", and it isn't a delimeter field number. I want to know more about this usage. Can you help me? Thank you!
Regards,
Qi Cai
From: st...@te...: qui...@li...: Mon, 24 Sep 2007 08:44:41 -0400Subject: Re: [Quickfixj-users] Question about: Create a new Group
Hello Qi Cai,
I’m not sure fully understand your question. The delimeter field number must be set to the first field number within the group. This is how the message parser determines the boundaries between repeating group instances. That’s why the constructor you mention also specifies the delimeter as an ordered field, so it will be the first field.
Regards,
Steve
From: qui...@li... [mailto:qui...@li...] On Behalf Of ??Sent: Monday, September 24, 2007 7:44 AMTo: qui...@li...: [Quickfixj-users] Question about: Create a new Group
Hi, All Recently, I notice that, a article of "Using Message Metadata" at http://www.quickfixj.org/confluence/display/qfj/Using+Message+Metadata .In this article, I have a question about how to create a new Group. At the final code, it uses: Group g = new Group(groupCountTag, 0); to create a new group. But at Group.java, we only have a constructor: public Group(int field, int delim){this(field, delim, new int[] { delim });} to create a group with the specified count and delimeter fields. @param field is the count tag number; @param delim is the delimeter tag number (first group field). My question is: when received repeating group, we need to create a new group and we don't know whick type group it is, so we can't use constructor like: new NewOrderCross.NoSides(); But is it advisable to let @param delim = 0? Though, I know it make few difference,even we can let delim = 1,2,3,!-!- and the only difference is that: field ordering may be nonentity or different. But it is in breach of the description of "@param delim is the delimeter tag number (first group field)."? Do you think so? So, I think, here, we can use the method "Group create(String beginString, String msgType, int correspondingFieldID)" at MessageFactory.java. Or we can have a new constructor:Group() / Group(correspondingFieldID) without field ordering , like the constructor: message();. How do you think this question? Am I understood? Any questions please let me know:) Thank you very much! Regards,Qi Cai
J9SCPBR;4z Hotmail#,8|G?4s!"8|02H+!"8|6`4f4"?UA"?LLeQi#!
_________________________________________________________________
Windows Live Custom Domain,您的免费电子邮局。
https://domains.live.com/default.aspx |