{{Quickfixn}} GetGroups Fix
Grant Birchmeier
gbirchmeier at connamara.com
Thu Dec 12 09:03:47 PST 2013
You're right, that code snippet on the web site is wrong. I will fix it.
Please note, that to fix it, all you need is a cast:
noSidesGrp = (QuickFix.FIX44.TradeCaptureReport.NoSidesGroup)
message.GetGroup(grpIndex,
Tags.NoSides);
But really, it's probably better to use the other form of GetGroup(), as
follows:
var noSidesGrp = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();
for(int grpIndex = 1; grpIndex<= message.GetInt(Tags.NoSides); grpIndex
+= 1)
{
message.GetGroup(grpIndex, noSidesGroup); //assigns to your var
}
On Tue, Dec 10, 2013 at 3:48 PM, Michael Lever <mlever at pharofund.com> wrote:
> I am currently trying to pull groups out of a FIX4.4 Execution Report
> and I am having issues with casting
>
> QuickFix.Group to an QuickFix.FIX44.ExecutionReport.NoPartyIDsGroup.
>
>
>
> I’ve seen some messages about a fix for this issue but I’ve not seen any
> code that works on the QuickFixN.org website.
>
> The sample code there still does not compile in my VS2010 environment. I
> using the latest version of QuickFIX/n 1.4 downloaded from the website.
>
>
>
> var noSidesGrp = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();
>
> for(int grpIndex = 1; grpIndex<= message.GetInt(Tags.NoSides); grpIndex +=
> 1) {
>
> noSidesGrp = message.GetGroup(grpIndex, Tags.NoSides);
>
> }
>
>
>
>
>
> Thanks,
>
> Michael
>
>
>
>
>
> *Michael Lever*
>
> Pharo Management LLC
>
> 1370 Avenue of Americas
> Suite 2603
> New York, NY 10019
>
> 212-641-6707 (office)
>
> 917-434-4957 (mobile)
>
>
>
> *This message contains information intended for the exclusive use of the
> individual or entity to whom it is addressed. This email may contain
> information which is privileged and confidential. If you are not the
> intended recipient of this message, please notify the sender as soon as
> possible and do not show the message to any third party. Please do not
> copy, disclose or distribute the information contained within.*
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
--
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131212/ce2f4df0/attachment-0001.htm>
More information about the Quickfixn
mailing list