eak12913
eak12913

Reputation: 303

Is there a MessageCodeGenerator for the C++ quickfix?

In quickfixJ there's a way to automatically generate custom messages and custom field objects by using your custom Data Dictionary and running their MessageCodeGenerator task.

http://www.quickfixj.org/quickfixj/usermanual/1.5.1/usage/codegen.html

I now have to use the orginal quickfix (C++) for a new project I'm working on and I was wondering whether something similar exists out there for C++.

As an alternative (if nothing already exists) has anyone tried to use the Java based MessageCodeGenerator and modify the default java xslt templates to just spit out c++ files?

Also, if I'm going about this whole thing completely the wrong way, feel free to just point me to the right way of using the C++ quickfix as their site is a little "light" on custom examples (only has macro defs for fields..i saw nothing about messages)

Thanks!

Upvotes: 3

Views: 1003

Answers (1)

Frank Smith
Frank Smith

Reputation: 988

QuickFIX pregenerates the messages and includes them in the distribution. Therefore, the code generation isn't part of the build process. However, you can regenerate the code using the scripts in the spec subdirectory. The generator is implemented using a combination of XSLT, shell scripts and Ruby code.

Run

ruby Generate.rb

to generate the message and field code, then

generate_c++.sh or generate_c++.bat

to generate the MessageCracker classes.

After the code is regenerated based on your modified FIX*.xml files, run the top level Makefile to rebuild the library.

Upvotes: 3

Related Questions