Re: [Quickfix-developers] remove a group from message
Brought to you by:
orenmnero
|
From: Brian E. <azz...@ya...> - 2005-10-10 15:39:13
|
The following patches to the 1.10.2 codebase should, in theory, add the
ability to remove groups from a QuickFIX message.
Add to FieldMap.h, line 133:
/// Remove a group. If group is not present, this is a no-op.
void removeGroup( int field );
Add to FieldMap.cpp, line 87:
void FieldMap::removeGroup( int field )
{ QF_STACK_PUSH(FieldMap::removeGroup)
Groups::iterator i = m_groups.find( field );
if ( i != m_groups.end() )
{
m_groups.erase( i );
removeField( field );
}
QF_STACK_POP
}
Add to Message.h, line 101:
void removeGroup( Group& group )
{ FieldMap::removeGroup( group.field() ); }
I have not tested these patches, so use at your own risk.
- Brian Erst
Thynk Software, Inc.
--- Caleb Epstein <cal...@gm...> wrote:
> On 10/10/05, Alvin Wang <AW...@ff...> wrote:
> >
> >
> > HI, how can I remove a group from a FIX message (java API)? I can
> only
> > find removeField(int) method.
>
>
> There don't appear to be any methods provided in the C++ API to do
> this, so
> I presume they are missing from the Java API as well. Perhaps this is
> worthy
> of a bug report.
>
> --
> Caleb Epstein
> caleb dot epstein at gmail dot com
>
|