3

Given a sequence number, I need to find the corresponding request message string. I can't find a way to it easily do that with quickFix lib.

To be short, I've had the idea to use the FileStore "body" file to help me retrieve the message request string from a sequence number,as the FileStore class exposes a convenient method:
get(int begin, int end, std::vector result)

But I am facing an issue: as those files are accessed by another FileStore instance (from the Initiator instance) those files are inaccessible from any other part of my application under Windows OS: as it forbids a second owner on the those files.

Do I need to rewrite my own mechanism to get request message string form their sequence number?

4

1 回答 1

0

我不确定您为什么要尝试根据序列号获取“消息字符串”。

这是在交易期间吗?你能修改你的应用程序代码吗?您的应用程序从服务器/客户端获取消息,因此您可以将消息转储为字符串(在 c++ 中,它们具有与ToString()或类似的方法)。

您可以将字符串保存在字典中,序列号为 id 等等。该库还可以让您查看传出的消息。

如果是在处理消息之后,您可以将引擎设置为创建数据文件,然后只处理数据文件,它具有接收和发送的所有消息。

抱歉,我只是无法弄清楚您到底想使用什么。

于 2010-02-09T01:24:47.990 回答