Re: [Quickfix-developers] Field Ordering?
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-01-04 20:33:28
|
This is accounted for in the extractField method in Message.cpp:
/* Assume length field is 1 less. */
int lenField = field - 1;
/* Special case for Signature which violates above assumption. */
if ( field == 89 ) lenField = 93;
This is the only exception to the length/data field rule that I know of.
--oren
Andrei Goldchleger wrote:
>QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
>QuickFIX Support: http://www.quickfixengine.org/services.html
>
>Hi there,
>
>I was looking at the MessageSorters [.h/.cpp] files to understand
>better how QuickFix handles field ordering. I was not really clear how
>it handles the rule that 'raw data' must be preceded by a field
>containing the data length. Then I realized that QF orders the fields
>by ascending tag order, and *most* data fields (checked in FIX.4.4)
>have their tag numbers immediately following the associated length
>tag. For example:
>
> field number="90" name="SecureDataLen" type="LENGTH"
> field number="91" name="SecureData" type="DATA"
>
>However:
>
> field number="89" name="Signature" type="DATA"
> field number="93" name="SignatureLength" type="LENGTH"
>
>So, the question is: does QF implement any special handling for data
>fields? If so, in which classes are they handled? Maybe I am missing
>something, but it feels as the used approach will fail to produce a
>valid massage if the message contains a signature.
>
>Thanks for you help,
>
>Andrei
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
>_______________________________________________
>Quickfix-developers mailing list
>Qui...@li...
>https://lists.sourceforge.net/lists/listinfo/quickfix-developers
>
>
>
>
|