gpt4 book ai didi

java - 如何在 QuickFIX/J 中对传出消息中的字段进行排序

转载 作者:行者123 更新时间:2023-11-30 08:16:43 25 4
gpt4 key购买 nike

有没有办法在不重建 QuickFIX/J 的情况下对传出消息中的字段进行排序?或者任何可用的配置标志根据我们可能使用某些路径标志设置的任何验证文件对消息进行排序?

最佳答案

参见 QuickFIX/J User FAQ ,主题“我改变了我的数据字典。我应该重新生成/重建 QF/J 吗?”。具体如下摘录:

If your DD changes aren't very extensive, maybe just a few field changes, then you don't really need to. If you added a whole new custom message type, then you probably should. If you changed field orders inside of repeating groups, then I recommend that you do, especially if those group changes are in outgoing messages.

OUTGOING MSGS: The DD xml file is irrelevant when you construct outgoing messages. You can pretty much add whatever fields you want to messages using the generic field setters (setString, setInt, etc) and QF will let you. The only trouble is with repeating groups. QF will write repeating group element ordering according to the DD that was used for code generation. If you altered any groups that are part of outgoing messages, you DEFINITELY need to rebuild.

根据我从这个 FAQ 条目中收集到的信息,除非重新排序是在重复组中,否则你不应该为传出消息重建。如果您更改重复组中的字段顺序,您应该重建。

在任何情况下,通过在字典中的消息中打乱字段来测试很容易,在您的配置中引用自定义字典,然后记录由 QuikFIX/J 引擎生成的消息。

关于java - 如何在 QuickFIX/J 中对传出消息中的字段进行排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28172047/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com