这个RepeatingGroup不能重复使用,能不能提供一个reset或者clear方法,每一次解析都需要生成实例,很消耗性能
group := quickfix.NewRepeatingGroup(library.TagNoMDEntries,
quickfix.GroupTemplate{
quickfix.GroupElement(library.TagMDEntryType),
quickfix.GroupElement(library.TagMDEntryPx),
quickfix.GroupElement(library.TagMDEntrySize),
quickfix.GroupElement(library.TagMDEntryDate),
quickfix.GroupElement(library.TagMDEntryTime),
quickfix.GroupElement(library.TagMDEntryPositionNo),
})
Message.Body.GetGroup(group)
Message.Body.GetGroup(group) // err 不允许重复使用
这个RepeatingGroup不能重复使用,能不能提供一个reset或者clear方法,每一次解析都需要生成实例,很消耗性能
group := quickfix.NewRepeatingGroup(library.TagNoMDEntries,
quickfix.GroupTemplate{
quickfix.GroupElement(library.TagMDEntryType),
quickfix.GroupElement(library.TagMDEntryPx),
quickfix.GroupElement(library.TagMDEntrySize),
quickfix.GroupElement(library.TagMDEntryDate),
quickfix.GroupElement(library.TagMDEntryTime),
quickfix.GroupElement(library.TagMDEntryPositionNo),
})
Message.Body.GetGroup(group)
Message.Body.GetGroup(group) // err 不允许重复使用