Re: [Quickfix-developers] Re: Setting Repeating Groups in header?
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2005-08-04 15:57:28
|
Looks like an oversight in the .NET API. Add these methods to the Header
class in Messages.h in the .NET library and you should be ok:
void addGroup( Group* group )
{ QF_STACK_TRY
m_pUnmanaged->addGroup( group->unmanaged() );
QF_STACK_CATCH
}
Group* getGroup( unsigned num, Group* group ) throw( FieldNotFound* )
{ QF_STACK_TRY
try
{
m_pUnmanaged->getGroup( num, group->unmanaged() );
return group;
}
catch ( FIX::FieldNotFound & e )
{
throw new FieldNotFound( e.field );
}
QF_STACK_CATCH
}
----- Original Message -----
From: "Andrei Goldchleger" <an...@gm...>
To: <qui...@li...>
Sent: Thursday, August 04, 2005 9:13 AM
Subject: [Quickfix-developers] Re: Setting Repeating Groups in header?
QuickFIX Documentation:
http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html
On 8/3/05, Andrei Goldchleger <an...@gm...> wrote:
> Hi there,
>
> How can i add a Repeating Group to the message header? For example,
> how can I add a "NoHops" group to the message header? I am currently
> using QuickFix 1.9.4.
Ok, maybe my question seems like I haven't RTFM, so here is a better
description: I am using the library in the .NET framework and although
I see that addGroup is defined for FieldMap in the C++ source, for
some strange reason I cannot clall addGroup in C# land. For example:
QuickFix44.NewOrderSingle newOrder = new QuickFix44.NewOrderSingle();
newOrder.getHeader().addGroup(new QuickFix.NoHops());
Produces the following error in VS:
C:\agoldchleger\VisualStudio\AuctionPrototype\FixClient\FixClientLauncher.cs(202):
'QuickFix.Message.Header' does not contain a definition for 'addGroup'
Regards,
Andrei
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
|