![]() |
Sorts fields in correct header order. More...
#include <MessageSorters.h>
Static Public Member Functions | |
static bool | compare (const int &x, const int &y) |
static int | getOrderedPosition (const int &field) |
Sorts fields in correct header order.
Definition at line 37 of file MessageSorters.h.
static bool FIX::header_order::compare | ( | const int & | x, | |
const int & | y | |||
) | [inline, static] |
Definition at line 39 of file MessageSorters.h.
References getOrderedPosition().
Referenced by FIX::message_order::operator()().
00040 { 00041 int orderedX = getOrderedPosition( x ); 00042 int orderedY = getOrderedPosition( y ); 00043 00044 if ( orderedX && orderedY ) 00045 return orderedX < orderedY; 00046 else 00047 if ( orderedX ) 00048 return true; 00049 else 00050 if ( orderedY ) 00051 return false; 00052 else 00053 return x < y; 00054 }
static int FIX::header_order::getOrderedPosition | ( | const int & | field | ) | [inline, static] |
Definition at line 56 of file MessageSorters.h.
Referenced by compare().