FIX::group_order Struct Reference

Sorts fields in correct group order. More...

#include <MessageSorters.h>

Static Public Member Functions

static bool compare (const int x, const int y, int *order, int largest)

Detailed Description

Sorts fields in correct group order.

Definition at line 82 of file MessageSorters.h.

Member Function Documentation

◆ compare()

bool FIX::group_order::compare ( const int x,
const int y,
int * order,
int largest )
inlinestatic

Definition at line 84 of file MessageSorters.h.

85 {
86 if ( x <= largest && y <= largest )
87 {
88 int iX = order[ x ];
89 int iY = order[ y ];
90 if ( iX == 0 && iY == 0 )
91 return x < y;
92 else if ( iX == 0 )
93 return false;
94 else if ( iY == 0 )
95 return true;
96 else
97 return iX < iY;
98 }
99 else if ( x <= largest ) return true;
100 else if ( y <= largest ) return false;
101 else return x < y;
102 }

Referenced by FIX::message_order::operator()().


The documentation for this struct was generated from the following file:

Generated on for QuickFIX by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2001