Re: [Quickfix-developers] How to add support for custom messages and custom signature to QuickFix?
Brought to you by:
orenmnero
|
From: Joerg T. <Joe...@ma...> - 2005-06-24 06:28:45
|
Thanks, Oren!
> If you want to generate all the classes, you will need to run the
> generation scripts in the 'spec' directory.
IMHO, it would be a good idea if we could separate the QF engine and the FIX classes
completely, ie have a engine package and a package (library, dll, jar) for each FIX
4.0-4.4. The generation scripts could be part of the engine package and generate the FIX
message package out of the data dictionary. In the end, you would have (for C++):
libquickfix.so + libquickfix_fix42.so etc.
Correspondingly for the other APIs.
This make the handling of custom messages or fields much easier: The user just takes the
basic QF engine, sets up its own data dictionary and generates/builds the message package.
What do you think?
> I don't believe there is a mehod for retrieving just the body fields.
> In C++ this would be possible if you cast the Message to a FieldMap, but
> this isn't an option in java. A getBody method would probably be a good
> compliment to getHeader and getTrailer. What you can do however is
> iterate through all the fields and call toString on them one by one. If
> you append each of the fields to a StringBuffer you should be able to
> reconstruct the body of the message.
Yes, browsing the source code I saw this could be an option, but did not check in detail.
Cheers, Jörg
--
Joerg Thoennes
http://macd.com
Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH
Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen
|