Upgrade Onixs 4.5.2 to 4.8.0 (Extended precision support)
This commit is contained in:
1 parent
433d413283
commit
25387f29b2
26 files changed
+8014
-1989
No files matched your search
@@ -240,6 +240,90 @@ protected:
|
||||
);
|
||||
}
|
||||
|
||||
/// Returns value of a field by its
|
||||
/// offset converted into a decimal.
|
||||
template
|
||||
<
|
||||
class FieldValue
|
||||
>
|
||||
Decimal
|
||||
decimal(
|
||||
BlockSize offset) const
|
||||
{
|
||||
return Decimal
|
||||
(
|
||||
ordinary
|
||||
<FieldValue>
|
||||
(offset)
|
||||
);
|
||||
}
|
||||
|
||||
/// Provides access to a value of
|
||||
/// an optional field by its offset.
|
||||
/// The result is converted into decimal.
|
||||
///
|
||||
/// Returned result indicates whether field is
|
||||
/// present in given field block and its value
|
||||
/// was copied into a given parameter-variable.
|
||||
template
|
||||
<
|
||||
class NullValue
|
||||
>
|
||||
bool
|
||||
decimal(
|
||||
Decimal& value,
|
||||
BlockSize offset,
|
||||
const NullValue& null) const
|
||||
{
|
||||
typedef
|
||||
typename
|
||||
NullValue::Value
|
||||
FieldValue;
|
||||
|
||||
const FieldValue& fieldValue =
|
||||
ordinary<FieldValue>(offset);
|
||||
|
||||
if (null != fieldValue)
|
||||
{
|
||||
value = fieldValue;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// Provides access to a value of
|
||||
/// an optional field by its offset.
|
||||
/// The result is converted into decimal.
|
||||
///
|
||||
/// Returned result indicates whether field is
|
||||
/// present in given field block and its value
|
||||
/// was copied into a given parameter-variable.
|
||||
///
|
||||
/// Field may not be present in earlier versions
|
||||
/// of binary message and thus its value may not be
|
||||
/// available. For this reason, parameter indicating
|
||||
/// version of data assumed is required to access
|
||||
/// the field.
|
||||
template
|
||||
<
|
||||
class NullValue
|
||||
>
|
||||
bool
|
||||
decimal(
|
||||
Decimal& value,
|
||||
BlockSize offset,
|
||||
const NullValue& null,
|
||||
SchemaVersion since) const
|
||||
{
|
||||
return (
|
||||
since <= block().version()
|
||||
&&
|
||||
decimal(value, offset, null)
|
||||
);
|
||||
}
|
||||
|
||||
/// Provides access to string field by its offset.
|
||||
///
|
||||
/// Given function serves as specialization
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <OnixS/CME/MDH/Composites.h>
|
||||
#include <OnixS/CME/MDH/Decimal.h>
|
||||
|
||||
#include <OnixS/CME/MDH/DirectPriceLevel.h>
|
||||
|
||||
@@ -46,17 +46,17 @@ throwBadBboThreshold()
|
||||
/// Defines tracking attributes for a particular BBO parameter.
|
||||
ONIXS_CMEMDH_LTWT_CLASS BboThreshold
|
||||
{
|
||||
// Actual threshold value.
|
||||
Decimal threshold_;
|
||||
|
||||
// Indicates whether threshold must be used.
|
||||
bool enabled_;
|
||||
|
||||
// Actual threshold value.
|
||||
FLOAT threshold_;
|
||||
|
||||
public:
|
||||
/// Initializes parameter tracking.
|
||||
BboThreshold()
|
||||
: enabled_(false)
|
||||
, threshold_()
|
||||
: threshold_()
|
||||
, enabled_(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
}
|
||||
|
||||
/// Defines value threshold for parameter being tracked.
|
||||
const FLOAT& threshold() const
|
||||
const Decimal& threshold() const
|
||||
{
|
||||
return threshold_;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
/// Defines value threshold for parameter being tracked.
|
||||
void
|
||||
threshold(
|
||||
const FLOAT& threshold)
|
||||
const Decimal& threshold)
|
||||
{
|
||||
if (0 > threshold.mantissa())
|
||||
throwBadBboThreshold();
|
||||
@@ -95,16 +95,16 @@ public:
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
bool
|
||||
thresholdExceeded(
|
||||
const FLOAT&,
|
||||
const PRICE&,
|
||||
const PRICE&);
|
||||
const Decimal&,
|
||||
const Decimal&,
|
||||
const Decimal&);
|
||||
|
||||
/// Checks whether new value exceeds given
|
||||
/// threshold in compare to the old value.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
bool
|
||||
thresholdExceeded(
|
||||
const FLOAT&,
|
||||
const Decimal&,
|
||||
Int32,
|
||||
Int32);
|
||||
|
||||
|
||||
@@ -27,6 +27,48 @@
|
||||
ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
ONIXS_CMEMDH_DATA_PACKING_BEGIN(1)
|
||||
|
||||
/// Decimal with constant exponent -9.
|
||||
typedef
|
||||
FixedPointDecimal
|
||||
<
|
||||
Int64,
|
||||
IntegralConstant<Int8, -9>
|
||||
>
|
||||
Decimal9;
|
||||
|
||||
|
||||
/// Null values definition for optional Decimal9 field.
|
||||
ONIXS_CMEMDH_LTWT_STRUCT NullDecimal9
|
||||
{
|
||||
/// Aliases the type whose null value
|
||||
/// traits are exposed by the given class.
|
||||
typedef Decimal9 Value;
|
||||
|
||||
/// Null value for optional Mantissa field.
|
||||
typedef
|
||||
IntegralConstant<Int64, 9223372036854775807LL>
|
||||
NullMantissa;
|
||||
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator ==(
|
||||
const Value& other) const
|
||||
{
|
||||
return (
|
||||
NullMantissa() ==
|
||||
other.mantissa()
|
||||
);
|
||||
}
|
||||
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator !=(
|
||||
const Value& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
};
|
||||
|
||||
/// A number representing quantity.
|
||||
///
|
||||
/// FIX type: Qty.
|
||||
@@ -42,6 +84,10 @@ DecimalQty;
|
||||
/// Null values definition for optional DecimalQty field.
|
||||
ONIXS_CMEMDH_LTWT_STRUCT NullDecimalQty
|
||||
{
|
||||
/// Aliases the type whose null value
|
||||
/// traits are exposed by the given class.
|
||||
typedef DecimalQty Value;
|
||||
|
||||
/// Null value for optional Mantissa field.
|
||||
typedef
|
||||
IntegralConstant<Int32, 2147483647>
|
||||
@@ -50,7 +96,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullDecimalQty
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator ==(
|
||||
const DecimalQty& other) const
|
||||
const Value& other) const
|
||||
{
|
||||
return (
|
||||
NullMantissa() ==
|
||||
@@ -61,7 +107,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullDecimalQty
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator !=(
|
||||
const DecimalQty& other) const
|
||||
const Value& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
@@ -118,12 +164,14 @@ public:
|
||||
IntegralConstant<UInt8, 255>
|
||||
NullWeek;
|
||||
|
||||
/// Initializes a blank instance.
|
||||
/// Default constructor.
|
||||
///
|
||||
/// Initializes fields with appropriate null values.
|
||||
MaturityMonthYear()
|
||||
: year_(NullYear::value())
|
||||
, month_(NullMonth::value())
|
||||
, day_(NullDay::value())
|
||||
, week_(NullWeek::value())
|
||||
: year_(NullYear::value()),
|
||||
month_(NullMonth::value()),
|
||||
day_(NullDay::value()),
|
||||
week_(NullWeek::value())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -174,10 +222,14 @@ private:
|
||||
/// Null values definition for optional MaturityMonthYear field.
|
||||
ONIXS_CMEMDH_LTWT_STRUCT NullMaturityMonthYear
|
||||
{
|
||||
/// Aliases the type whose null value
|
||||
/// traits are exposed by the given class.
|
||||
typedef MaturityMonthYear Value;
|
||||
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator ==(
|
||||
const MaturityMonthYear& other) const
|
||||
const Value& other) const
|
||||
{
|
||||
return (
|
||||
MaturityMonthYear::NullYear() ==
|
||||
@@ -188,7 +240,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullMaturityMonthYear
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator !=(
|
||||
const MaturityMonthYear& other) const
|
||||
const Value& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
@@ -207,6 +259,10 @@ PRICE;
|
||||
/// Null values definition for optional PRICE field.
|
||||
ONIXS_CMEMDH_LTWT_STRUCT NullPRICE
|
||||
{
|
||||
/// Aliases the type whose null value
|
||||
/// traits are exposed by the given class.
|
||||
typedef PRICE Value;
|
||||
|
||||
/// Null value for optional Mantissa field.
|
||||
typedef
|
||||
IntegralConstant<Int64, 9223372036854775807LL>
|
||||
@@ -215,7 +271,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullPRICE
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator ==(
|
||||
const PRICE& other) const
|
||||
const Value& other) const
|
||||
{
|
||||
return (
|
||||
NullMantissa() ==
|
||||
@@ -226,7 +282,49 @@ ONIXS_CMEMDH_LTWT_STRUCT NullPRICE
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator !=(
|
||||
const PRICE& other) const
|
||||
const Value& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
};
|
||||
|
||||
/// Price with constant exponent -9.
|
||||
typedef
|
||||
FixedPointDecimal
|
||||
<
|
||||
Int64,
|
||||
IntegralConstant<Int8, -9>
|
||||
>
|
||||
PRICE9;
|
||||
|
||||
|
||||
/// Null values definition for optional PRICE9 field.
|
||||
ONIXS_CMEMDH_LTWT_STRUCT NullPRICE9
|
||||
{
|
||||
/// Aliases the type whose null value
|
||||
/// traits are exposed by the given class.
|
||||
typedef PRICE9 Value;
|
||||
|
||||
/// Null value for optional Mantissa field.
|
||||
typedef
|
||||
IntegralConstant<Int64, 9223372036854775807LL>
|
||||
NullMantissa;
|
||||
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator ==(
|
||||
const Value& other) const
|
||||
{
|
||||
return (
|
||||
NullMantissa() ==
|
||||
other.mantissa()
|
||||
);
|
||||
}
|
||||
|
||||
/// Compares encoded data to NULL.
|
||||
bool
|
||||
operator !=(
|
||||
const Value& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
@@ -247,10 +345,12 @@ public:
|
||||
/// numInGroup type.
|
||||
typedef UInt8 NumInGroup;
|
||||
|
||||
/// Initializes a blank instance.
|
||||
/// Default constructor.
|
||||
///
|
||||
/// Initializes fields with zero values.
|
||||
GroupSize()
|
||||
: blockLength_()
|
||||
, numInGroup_()
|
||||
: blockLength_(0),
|
||||
numInGroup_(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -287,10 +387,12 @@ public:
|
||||
/// NumInGroup.
|
||||
typedef UInt8 NumInGroup;
|
||||
|
||||
/// Initializes a blank instance.
|
||||
/// Default constructor.
|
||||
///
|
||||
/// Initializes fields with zero values.
|
||||
GroupSize8Byte()
|
||||
: blockLength_()
|
||||
, numInGroup_()
|
||||
: blockLength_(0),
|
||||
numInGroup_(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -330,10 +432,12 @@ public:
|
||||
/// FIX type: NumInGroup.
|
||||
typedef UInt16 NumInGroup;
|
||||
|
||||
/// Initializes a blank instance.
|
||||
/// Default constructor.
|
||||
///
|
||||
/// Initializes fields with zero values.
|
||||
GroupSizeEncoding()
|
||||
: blockLength_()
|
||||
, numInGroup_()
|
||||
: blockLength_(0),
|
||||
numInGroup_(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -378,12 +482,14 @@ public:
|
||||
/// version type.
|
||||
typedef UInt16 Version;
|
||||
|
||||
/// Initializes a blank instance.
|
||||
/// Default constructor.
|
||||
///
|
||||
/// Initializes fields with zero values.
|
||||
MessageHeader()
|
||||
: blockLength_()
|
||||
, templateId_()
|
||||
, schemaId_()
|
||||
, version_()
|
||||
: blockLength_(0),
|
||||
templateId_(0),
|
||||
schemaId_(0),
|
||||
version_(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -32,8 +32,7 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
/// level data as well as provides references
|
||||
/// to price level from direct and implied order
|
||||
/// books which comply consolidated price level.
|
||||
ONIXS_CMEMDH_LTWT_CLASS
|
||||
ConsolidatedPriceLevel
|
||||
ONIXS_CMEMDH_LTWT_CLASS ConsolidatedPriceLevel
|
||||
{
|
||||
// Direct price level component.
|
||||
const DirectPriceLevel* direct_;
|
||||
@@ -110,7 +109,7 @@ public:
|
||||
}
|
||||
|
||||
/// Price component.
|
||||
const PRICE& price() const
|
||||
const Decimal& price() const
|
||||
{
|
||||
return (
|
||||
direct_->exist()
|
||||
|
||||
@@ -96,7 +96,8 @@ public:
|
||||
}
|
||||
|
||||
/// Re-initializes instance as copy of the other one.
|
||||
FixedPointDecimal& operator =(
|
||||
FixedPointDecimal&
|
||||
operator =(
|
||||
const FixedPointDecimal& other)
|
||||
{
|
||||
mantissa_ = other.mantissa_;
|
||||
@@ -113,8 +114,12 @@ template
|
||||
>
|
||||
bool
|
||||
operator ==(
|
||||
const FixedPointDecimal<Mantissa, Exponent>& left,
|
||||
const FixedPointDecimal<Mantissa, Exponent>& right)
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return left.mantissa() == right.mantissa();
|
||||
}
|
||||
@@ -127,8 +132,12 @@ template
|
||||
>
|
||||
bool
|
||||
operator !=(
|
||||
const FixedPointDecimal<Mantissa, Exponent>& left,
|
||||
const FixedPointDecimal<Mantissa, Exponent>& right)
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return left.mantissa() != right.mantissa();
|
||||
}
|
||||
@@ -141,8 +150,12 @@ template
|
||||
>
|
||||
bool
|
||||
operator <(
|
||||
const FixedPointDecimal<Mantissa, Exponent>& left,
|
||||
const FixedPointDecimal<Mantissa, Exponent>& right)
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return left.mantissa() < right.mantissa();
|
||||
}
|
||||
@@ -155,8 +168,12 @@ template
|
||||
>
|
||||
bool
|
||||
operator >(
|
||||
const FixedPointDecimal<Mantissa, Exponent>& left,
|
||||
const FixedPointDecimal<Mantissa, Exponent>& right)
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return left.mantissa() > right.mantissa();
|
||||
}
|
||||
@@ -169,8 +186,12 @@ template
|
||||
>
|
||||
bool
|
||||
operator <=(
|
||||
const FixedPointDecimal<Mantissa, Exponent>& left,
|
||||
const FixedPointDecimal<Mantissa, Exponent>& right)
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return left.mantissa() <= right.mantissa();
|
||||
}
|
||||
@@ -183,23 +204,311 @@ template
|
||||
>
|
||||
bool
|
||||
operator >=(
|
||||
const FixedPointDecimal<Mantissa, Exponent>& left,
|
||||
const FixedPointDecimal<Mantissa, Exponent>& right)
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return left.mantissa() >= right.mantissa();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
/// A real number with floating exponent.
|
||||
ONIXS_CMEMDH_LTWT_CLASS Decimal
|
||||
{
|
||||
public:
|
||||
/// Aliases mantissa component type.
|
||||
typedef Int64 Mantissa;
|
||||
|
||||
/// Aliases exponent component type.
|
||||
typedef Int32 Exponent;
|
||||
|
||||
/// Default (zero) initialization.
|
||||
Decimal()
|
||||
: mantissa_(0)
|
||||
, exponent_(0)
|
||||
{
|
||||
}
|
||||
|
||||
/// Explicitly initializes instance from its mantissa value.
|
||||
Decimal(
|
||||
Mantissa mantissa,
|
||||
Exponent exponent)
|
||||
: mantissa_(mantissa)
|
||||
, exponent_(exponent)
|
||||
{
|
||||
}
|
||||
|
||||
/// Initializes instance as copy of the other one.
|
||||
Decimal(
|
||||
const Decimal& other)
|
||||
: mantissa_(other.mantissa_)
|
||||
, exponent_(other.exponent_)
|
||||
{
|
||||
}
|
||||
|
||||
/// Initializes instance from
|
||||
/// the fixed point decimal.
|
||||
template
|
||||
<
|
||||
class OtherMantissa,
|
||||
class OtherExponent
|
||||
>
|
||||
Decimal(
|
||||
const FixedPointDecimal
|
||||
<OtherMantissa, OtherExponent>& other)
|
||||
: mantissa_(other.mantissa())
|
||||
, exponent_(other.exponent())
|
||||
{
|
||||
}
|
||||
|
||||
/// Returns mantissa of given decimal.
|
||||
Mantissa mantissa() const
|
||||
{
|
||||
return mantissa_;
|
||||
}
|
||||
|
||||
/// Returns exponent of given decimal.
|
||||
Exponent exponent() const
|
||||
{
|
||||
return exponent_;
|
||||
}
|
||||
|
||||
/// Re-initializes instance as copy of the other one.
|
||||
Decimal&
|
||||
operator =(
|
||||
const Decimal& other)
|
||||
{
|
||||
mantissa_ = other.mantissa_;
|
||||
exponent_ = other.exponent_;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Re-initializes instance as a
|
||||
/// copy of the fixed point value.
|
||||
template
|
||||
<
|
||||
class OtherMantissa,
|
||||
class OtherExponent
|
||||
>
|
||||
Decimal&
|
||||
operator =(
|
||||
const FixedPointDecimal
|
||||
<OtherMantissa, OtherExponent>& other)
|
||||
{
|
||||
mantissa_ = other.mantissa();
|
||||
exponent_ = other.exponent();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
Mantissa mantissa_;
|
||||
Exponent exponent_;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
bool
|
||||
operator ==(
|
||||
const Decimal& left,
|
||||
const Decimal& right);
|
||||
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
bool
|
||||
operator !=(
|
||||
const Decimal& left,
|
||||
const Decimal& right);
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator ==(
|
||||
const Decimal& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return (left == Decimal(right));
|
||||
}
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator ==(
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const Decimal& right)
|
||||
{
|
||||
return (Decimal(left) == right);
|
||||
}
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator !=(
|
||||
const Decimal& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return (left != Decimal(right));
|
||||
}
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator !=(
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const Decimal& right)
|
||||
{
|
||||
return (Decimal(left) != right);
|
||||
}
|
||||
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
bool
|
||||
operator <(
|
||||
const Decimal& left,
|
||||
const Decimal& right);
|
||||
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
bool
|
||||
operator <=(
|
||||
const Decimal& left,
|
||||
const Decimal& right);
|
||||
|
||||
inline
|
||||
bool
|
||||
operator >(
|
||||
const Decimal& left,
|
||||
const Decimal& right)
|
||||
{
|
||||
return (right < left);
|
||||
}
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator <(
|
||||
const Decimal& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return (left < Decimal(right));
|
||||
}
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator <(
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const Decimal& right)
|
||||
{
|
||||
return (Decimal(left) < right);
|
||||
}
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator >(
|
||||
const Decimal& left,
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& right)
|
||||
{
|
||||
return (left > Decimal(right));
|
||||
}
|
||||
|
||||
template
|
||||
<
|
||||
class Mantissa,
|
||||
class Exponent
|
||||
>
|
||||
inline
|
||||
bool
|
||||
operator >(
|
||||
const
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& left,
|
||||
const Decimal& right)
|
||||
{
|
||||
return (Decimal(left) > right);
|
||||
}
|
||||
|
||||
/// Serializes decimal presented by
|
||||
/// mantissa and exponent into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
decimalToStr(
|
||||
std::string&,
|
||||
Int64,
|
||||
Int64,
|
||||
Int32);
|
||||
|
||||
inline
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const Decimal& number)
|
||||
{
|
||||
decimalToStr
|
||||
(
|
||||
str,
|
||||
number.mantissa(),
|
||||
number.exponent()
|
||||
);
|
||||
}
|
||||
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const Decimal& number)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, number);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes fixed-point decimal into a string.
|
||||
template
|
||||
<
|
||||
@@ -214,10 +523,9 @@ toStr(
|
||||
FixedPointDecimal
|
||||
<Mantissa, Exponent>& number)
|
||||
{
|
||||
decimalToStr(
|
||||
toStr(
|
||||
str,
|
||||
number.mantissa(),
|
||||
static_cast<Int32>(number.exponent()));
|
||||
Decimal(number));
|
||||
}
|
||||
|
||||
/// Serializes fixed-point decimal into a string.
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
/// Initializes defined level
|
||||
/// according to specified attributes.
|
||||
DirectPriceLevel(
|
||||
const PRICE& price,
|
||||
const Decimal& price,
|
||||
Int32 qty,
|
||||
Int32 ordersQty)
|
||||
: ImpliedPriceLevel(price, qty)
|
||||
|
||||
@@ -26,6 +26,112 @@
|
||||
|
||||
ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
|
||||
/// Collection of parameters common for all types of feeds.
|
||||
template
|
||||
<
|
||||
typename Layout
|
||||
>
|
||||
class FeedSettingsBase
|
||||
{
|
||||
Layout layout_;
|
||||
UInt32 heartbeatInterval_;
|
||||
|
||||
std::string feedANetworkInterfaces_;
|
||||
std::string feedBNetworkInterfaces_;
|
||||
|
||||
protected:
|
||||
/// Initializes instance with default values.
|
||||
FeedSettingsBase(
|
||||
Layout layout,
|
||||
UInt32 heartbeat)
|
||||
: layout_(layout)
|
||||
, heartbeatInterval_(heartbeat)
|
||||
{
|
||||
}
|
||||
|
||||
public:
|
||||
/// Defines feed layout for a feed group.
|
||||
Layout layout() const
|
||||
{
|
||||
return layout_;
|
||||
}
|
||||
|
||||
/// Defines feed layout for recovery feed group.
|
||||
void layout(Layout value)
|
||||
{
|
||||
layout_ = value;
|
||||
}
|
||||
|
||||
/// Specifies maximal time interval between two
|
||||
/// network packets. If no data is received during
|
||||
/// specified time frame, corresponding event is raised
|
||||
/// and further behavior is defined by feed layout.
|
||||
///
|
||||
/// Interval is measured in seconds.
|
||||
UInt32 heartbeatInterval() const
|
||||
{
|
||||
return heartbeatInterval_;
|
||||
}
|
||||
|
||||
/// Specifies maximal time interval between two packets.
|
||||
void heartbeatInterval(UInt32 value)
|
||||
{
|
||||
heartbeatInterval_ = value;
|
||||
}
|
||||
|
||||
/// Specifies one or more network interfaces to use for
|
||||
/// "A" feeds while joining the multicast group; use
|
||||
/// semi-colon delimited list if more than one.
|
||||
///
|
||||
/// @note On Linux the network interface is specified
|
||||
/// by its name, on Windows - by IP address.
|
||||
///
|
||||
/// @note If the value is empty or absent then the
|
||||
/// Settings::networkInterface value is used.
|
||||
const
|
||||
std::string&
|
||||
feedANetworkInterfaces() const
|
||||
{
|
||||
return feedANetworkInterfaces_;
|
||||
}
|
||||
|
||||
/// Specifies one or more network interfaces to use for
|
||||
/// "A" feeds while joining the multicast group; use
|
||||
/// semi-colon delimited list if more than one.
|
||||
void
|
||||
feedANetworkInterfaces(
|
||||
const std::string& interfaces)
|
||||
{
|
||||
feedANetworkInterfaces_ = interfaces;
|
||||
}
|
||||
|
||||
/// Specifies one or more network interfaces to use for "B"
|
||||
/// feeds while joining the multicast group; use semi-colon
|
||||
/// delimited list if more than one.
|
||||
///
|
||||
/// @note On Linux the network interface is specified by
|
||||
/// its name, on Windows - by IP address.
|
||||
///
|
||||
/// @note If the value is empty or absent then the
|
||||
/// Settings::networkInterface value is used.
|
||||
const
|
||||
std::string&
|
||||
feedBNetworkInterfaces() const
|
||||
{
|
||||
return feedBNetworkInterfaces_;
|
||||
}
|
||||
|
||||
/// Specifies one or more network interfaces to use for
|
||||
/// "B" feeds while joining the multicast group; use
|
||||
/// semi-colon delimited list if more than one.
|
||||
void
|
||||
feedBNetworkInterfaces(
|
||||
const std::string& interfaces)
|
||||
{
|
||||
feedBNetworkInterfaces_ = interfaces;
|
||||
}
|
||||
};
|
||||
|
||||
/// Defines feed layout alternates available for
|
||||
/// recovery feeds like instrument and snapshot.
|
||||
ONIXS_CMEMDH_LTWT_STRUCT RecoveryFeedLayout
|
||||
@@ -82,54 +188,26 @@ toStr(
|
||||
}
|
||||
|
||||
/// Collection of parameters affecting recovery feeds behavior.
|
||||
ONIXS_CMEMDH_LTWT_CLASS RecoveryFeedSettings
|
||||
ONIXS_CMEMDH_LTWT_CLASS
|
||||
RecoveryFeedSettings
|
||||
: public FeedSettingsBase
|
||||
<
|
||||
RecoveryFeedLayout::Enum
|
||||
>
|
||||
{
|
||||
RecoveryFeedLayout::Enum layout_;
|
||||
UInt32 heartbeatInterval_;
|
||||
|
||||
public:
|
||||
/// Initializes instance with default values.
|
||||
///
|
||||
/// By default, feed A is used as the primary source
|
||||
/// of market recovery data with fail-over to the feed B.
|
||||
/// Heartbeats are expected within 30 seconds periodicy.
|
||||
RecoveryFeedSettings()
|
||||
: layout_(
|
||||
RecoveryFeedLayout::
|
||||
FeedAWithFailoverToFeedB)
|
||||
, heartbeatInterval_(30)
|
||||
: FeedSettingsBase<RecoveryFeedLayout::Enum>(
|
||||
RecoveryFeedLayout::
|
||||
FeedAWithFailoverToFeedB,
|
||||
30)
|
||||
{
|
||||
}
|
||||
|
||||
/// Defines feed layout for recovery feed group.
|
||||
///
|
||||
/// @note By default, feed A is used as primary
|
||||
/// source for market data with failover to feed B.
|
||||
RecoveryFeedLayout::Enum layout() const
|
||||
{
|
||||
return layout_;
|
||||
}
|
||||
|
||||
/// Defines feed layout for recovery feed group.
|
||||
void layout(RecoveryFeedLayout::Enum value)
|
||||
{
|
||||
layout_ = value;
|
||||
}
|
||||
|
||||
/// Specifies maximal time interval between two
|
||||
/// network packets. If no data is received during
|
||||
/// specified time frame, corresponding event is raised
|
||||
/// and further behavior is defined by feed layout.
|
||||
///
|
||||
/// Interval is measured in seconds.
|
||||
///
|
||||
/// @note The default value is '30'.
|
||||
UInt32 heartbeatInterval() const
|
||||
{
|
||||
return heartbeatInterval_;
|
||||
}
|
||||
|
||||
/// Specifies maximal time interval between two packets.
|
||||
void heartbeatInterval(UInt32 value)
|
||||
{
|
||||
heartbeatInterval_ = value;
|
||||
}
|
||||
};
|
||||
|
||||
/// Serializes feed settings into string.
|
||||
@@ -211,59 +289,31 @@ toStr(
|
||||
}
|
||||
|
||||
/// Collection of parameters affecting real-time feeds behavior.
|
||||
ONIXS_CMEMDH_LTWT_CLASS RealtimeFeedSettings
|
||||
ONIXS_CMEMDH_LTWT_CLASS
|
||||
RealtimeFeedSettings
|
||||
: public FeedSettingsBase
|
||||
<
|
||||
RealtimeFeedLayout::Enum
|
||||
>
|
||||
{
|
||||
RealtimeFeedLayout::Enum layout_;
|
||||
UInt32 heartbeatInterval_;
|
||||
|
||||
UInt32 outOfOrderPacketMaxInterval_;
|
||||
UInt32 lostPacketWaitTime_;
|
||||
|
||||
public:
|
||||
/// Initializes instance with default values.
|
||||
///
|
||||
/// By default, arbitrage between feeds A and B is done.
|
||||
/// Heartbeats are expected within 30 seconds periodicy.
|
||||
RealtimeFeedSettings()
|
||||
: layout_(
|
||||
: FeedSettingsBase<RealtimeFeedLayout::Enum>(
|
||||
RealtimeFeedLayout::
|
||||
BothFeedsWithArbitrage)
|
||||
, heartbeatInterval_(30)
|
||||
BothFeedsWithArbitrage,
|
||||
30)
|
||||
, outOfOrderPacketMaxInterval_(3)
|
||||
, lostPacketWaitTime_(100000)
|
||||
{
|
||||
}
|
||||
|
||||
/// Defines feed layout for real-time feed group.
|
||||
///
|
||||
/// @note By default, arbitrage between feeds A and B is done.
|
||||
RealtimeFeedLayout::Enum layout() const
|
||||
{
|
||||
return layout_;
|
||||
}
|
||||
|
||||
/// Defines feed layout for real-time feed group.
|
||||
void layout(RealtimeFeedLayout::Enum value)
|
||||
{
|
||||
layout_ = value;
|
||||
}
|
||||
|
||||
/// Specifies maximal time interval between two
|
||||
/// network packets. If no data is received during
|
||||
/// specified time frame, corresponding event is raised
|
||||
/// and further behavior is defined by feed layout.
|
||||
///
|
||||
/// Interval is measured in seconds.
|
||||
///
|
||||
/// @note The default value is '30'.
|
||||
UInt32 heartbeatInterval() const
|
||||
{
|
||||
return heartbeatInterval_;
|
||||
}
|
||||
|
||||
/// Specifies maximal time interval between two network packets.
|
||||
void heartbeatInterval(UInt32 value)
|
||||
{
|
||||
heartbeatInterval_ = value;
|
||||
}
|
||||
|
||||
/// Defines value of threshold used by Handler to differ
|
||||
/// out-of-order packets from gaps.
|
||||
///
|
||||
@@ -361,9 +411,6 @@ ONIXS_CMEMDH_LTWT_CLASS FeedSettings
|
||||
{
|
||||
std::string connectivityConfigurationFile_;
|
||||
|
||||
std::string feedANetworkInterfaces_;
|
||||
std::string feedBNetworkInterfaces_;
|
||||
|
||||
UInt16 maxPacketSize_;
|
||||
|
||||
RecoveryFeedSettings instrumentFeeds_;
|
||||
@@ -395,22 +442,6 @@ public:
|
||||
connectivityConfigurationFile_ = configurationFile;
|
||||
}
|
||||
|
||||
/// Specifies one or more network interfaces to use for
|
||||
/// "A" feeds while joining the multicast group; use
|
||||
/// semi-colon delimited list if more than one.
|
||||
///
|
||||
/// @note On Linux the network interface is specified
|
||||
/// by its name, on Windows - by IP address.
|
||||
///
|
||||
/// @note If the value is empty or absent then the
|
||||
/// Settings::networkInterface value is used.
|
||||
const
|
||||
std::string&
|
||||
feedANetworkInterfaces() const
|
||||
{
|
||||
return feedANetworkInterfaces_;
|
||||
}
|
||||
|
||||
/// Specifies one or more network interfaces to use for
|
||||
/// "A" feeds while joining the multicast group; use
|
||||
/// semi-colon delimited list if more than one.
|
||||
@@ -418,23 +449,21 @@ public:
|
||||
feedANetworkInterfaces(
|
||||
const std::string& interfaces)
|
||||
{
|
||||
feedANetworkInterfaces_ = interfaces;
|
||||
}
|
||||
instrumentFeeds_.
|
||||
feedANetworkInterfaces
|
||||
(interfaces);
|
||||
|
||||
/// Specifies one or more network interfaces to use for "B"
|
||||
/// feeds while joining the multicast group; use semi-colon
|
||||
/// delimited list if more than one.
|
||||
///
|
||||
/// @note On Linux the network interface is specified by
|
||||
/// its name, on Windows - by IP address.
|
||||
///
|
||||
/// @note If the value is empty or absent then the
|
||||
/// Settings::networkInterface value is used.
|
||||
const
|
||||
std::string&
|
||||
feedBNetworkInterfaces() const
|
||||
{
|
||||
return feedBNetworkInterfaces_;
|
||||
incrementalFeeds_.
|
||||
feedANetworkInterfaces
|
||||
(interfaces);
|
||||
|
||||
snapshotFeeds_.
|
||||
feedANetworkInterfaces
|
||||
(interfaces);
|
||||
|
||||
mboSnapshotFeeds_.
|
||||
feedANetworkInterfaces
|
||||
(interfaces);
|
||||
}
|
||||
|
||||
/// Specifies one or more network interfaces to use for
|
||||
@@ -444,7 +473,21 @@ public:
|
||||
feedBNetworkInterfaces(
|
||||
const std::string& interfaces)
|
||||
{
|
||||
feedBNetworkInterfaces_ = interfaces;
|
||||
instrumentFeeds_.
|
||||
feedBNetworkInterfaces
|
||||
(interfaces);
|
||||
|
||||
incrementalFeeds_.
|
||||
feedBNetworkInterfaces
|
||||
(interfaces);
|
||||
|
||||
snapshotFeeds_.
|
||||
feedBNetworkInterfaces
|
||||
(interfaces);
|
||||
|
||||
mboSnapshotFeeds_.
|
||||
feedBNetworkInterfaces
|
||||
(interfaces);
|
||||
}
|
||||
|
||||
/// Max size for network packet transmitted by MDP.
|
||||
|
||||
@@ -691,6 +691,18 @@ public:
|
||||
return 0 != (bits_ & 0x80000);
|
||||
}
|
||||
|
||||
/// Indicates whether TriangulationEligible bit is set.
|
||||
bool triangulationEligible() const
|
||||
{
|
||||
return 0 != (bits_ & 0x100000);
|
||||
}
|
||||
|
||||
/// Indicates whether VariableCabEligible bit is set.
|
||||
bool variableCabEligible() const
|
||||
{
|
||||
return 0 != (bits_ & 0x200000);
|
||||
}
|
||||
|
||||
/// Returns elements as they packed in the set.
|
||||
inline Bits bits() const
|
||||
{
|
||||
@@ -773,8 +785,8 @@ public:
|
||||
/// are used to indicate flag presence.
|
||||
typedef UInt8 Bits;
|
||||
|
||||
/// Indicates whether Final bit is set.
|
||||
bool final() const
|
||||
/// Indicates whether FinalDaily bit is set.
|
||||
bool finalDaily() const
|
||||
{
|
||||
return 0 != (bits_ & 0x1);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ ONIXS_CMEMDH_EXPORTED_CLASS Handler
|
||||
|
||||
public:
|
||||
/// Initializes instance according to given settings.
|
||||
Handler(
|
||||
explicit Handler(
|
||||
const HandlerSettings&);
|
||||
|
||||
/// Finalizes instance usage.
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <OnixS/CME/MDH/Integral.h>
|
||||
#include <OnixS/CME/MDH/Composites.h>
|
||||
#include <OnixS/CME/MDH/Decimal.h>
|
||||
|
||||
ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
|
||||
@@ -34,7 +33,7 @@ ONIXS_CMEMDH_LTWT_CLASS ImpliedPriceLevel
|
||||
bool exist_;
|
||||
|
||||
// Price value for the level.
|
||||
PRICE price_;
|
||||
Decimal price_;
|
||||
|
||||
// Quantity component.
|
||||
Int32 qty_;
|
||||
@@ -60,7 +59,7 @@ public:
|
||||
/// Initializes defined level
|
||||
/// according to specified attributes.
|
||||
ImpliedPriceLevel(
|
||||
const PRICE& price, Int32 qty)
|
||||
const Decimal& price, Int32 qty)
|
||||
: exist_(true), price_(price), qty_(qty)
|
||||
{
|
||||
}
|
||||
@@ -90,13 +89,13 @@ public:
|
||||
/// may be NULL in a valid (existent) price level.
|
||||
///
|
||||
/// @see NullPRICE.
|
||||
const PRICE& price() const
|
||||
const Decimal& price() const
|
||||
{
|
||||
return price_;
|
||||
}
|
||||
|
||||
/// Price value.
|
||||
PRICE& price()
|
||||
Decimal& price()
|
||||
{
|
||||
return price_;
|
||||
}
|
||||
|
||||
@@ -77,118 +77,178 @@ private:
|
||||
};
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for ChannelReset message type.
|
||||
/// for InstrumentDefinitionFuture27 message type.
|
||||
typedef
|
||||
MessageArgs<ChannelReset>
|
||||
ChannelResetArgs;
|
||||
MessageArgs<InstrumentDefinitionFuture27>
|
||||
InstrumentDefinitionFuture27Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for AdminHeartbeat message type.
|
||||
/// for InstrumentDefinitionSpread29 message type.
|
||||
typedef
|
||||
MessageArgs<AdminHeartbeat>
|
||||
AdminHeartbeatArgs;
|
||||
MessageArgs<InstrumentDefinitionSpread29>
|
||||
InstrumentDefinitionSpread29Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for AdminLogin message type.
|
||||
/// for IncrementalRefreshBook32 message type.
|
||||
typedef
|
||||
MessageArgs<AdminLogin>
|
||||
AdminLoginArgs;
|
||||
MessageArgs<IncrementalRefreshBook32>
|
||||
IncrementalRefreshBook32Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for AdminLogout message type.
|
||||
/// for IncrementalRefreshDailyStatistics33 message type.
|
||||
typedef
|
||||
MessageArgs<AdminLogout>
|
||||
AdminLogoutArgs;
|
||||
MessageArgs<IncrementalRefreshDailyStatistics33>
|
||||
IncrementalRefreshDailyStatistics33Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for InstrumentDefinitionFuture message type.
|
||||
/// for IncrementalRefreshLimitsBanding34 message type.
|
||||
typedef
|
||||
MessageArgs<InstrumentDefinitionFuture>
|
||||
InstrumentDefinitionFutureArgs;
|
||||
MessageArgs<IncrementalRefreshLimitsBanding34>
|
||||
IncrementalRefreshLimitsBanding34Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for InstrumentDefinitionSpread message type.
|
||||
/// for IncrementalRefreshSessionStatistics35 message type.
|
||||
typedef
|
||||
MessageArgs<InstrumentDefinitionSpread>
|
||||
InstrumentDefinitionSpreadArgs;
|
||||
MessageArgs<IncrementalRefreshSessionStatistics35>
|
||||
IncrementalRefreshSessionStatistics35Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for SecurityStatus message type.
|
||||
/// for SnapshotFullRefresh38 message type.
|
||||
typedef
|
||||
MessageArgs<SecurityStatus>
|
||||
SecurityStatusArgs;
|
||||
MessageArgs<SnapshotFullRefresh38>
|
||||
SnapshotFullRefresh38Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshBook message type.
|
||||
/// for InstrumentDefinitionOption41 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshBook>
|
||||
IncrementalRefreshBookArgs;
|
||||
MessageArgs<InstrumentDefinitionOption41>
|
||||
InstrumentDefinitionOption41Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshDailyStatistics message type.
|
||||
/// for IncrementalRefreshTradeSummary42 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshDailyStatistics>
|
||||
IncrementalRefreshDailyStatisticsArgs;
|
||||
MessageArgs<IncrementalRefreshTradeSummary42>
|
||||
IncrementalRefreshTradeSummary42Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshLimitsBanding message type.
|
||||
/// for IncrementalRefreshOrderBook43 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshLimitsBanding>
|
||||
IncrementalRefreshLimitsBandingArgs;
|
||||
MessageArgs<IncrementalRefreshOrderBook43>
|
||||
IncrementalRefreshOrderBook43Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshSessionStatistics message type.
|
||||
/// for SnapshotFullRefreshOrderBook44 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshSessionStatistics>
|
||||
IncrementalRefreshSessionStatisticsArgs;
|
||||
MessageArgs<SnapshotFullRefreshOrderBook44>
|
||||
SnapshotFullRefreshOrderBook44Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshTrade message type.
|
||||
/// for ChannelReset4 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshTrade>
|
||||
IncrementalRefreshTradeArgs;
|
||||
MessageArgs<ChannelReset4>
|
||||
ChannelReset4Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshVolume message type.
|
||||
/// for AdminHeartbeat12 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshVolume>
|
||||
IncrementalRefreshVolumeArgs;
|
||||
MessageArgs<AdminHeartbeat12>
|
||||
AdminHeartbeat12Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for SnapshotFullRefresh message type.
|
||||
/// for AdminLogin15 message type.
|
||||
typedef
|
||||
MessageArgs<SnapshotFullRefresh>
|
||||
SnapshotFullRefreshArgs;
|
||||
MessageArgs<AdminLogin15>
|
||||
AdminLogin15Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for QuoteRequest message type.
|
||||
/// for AdminLogout16 message type.
|
||||
typedef
|
||||
MessageArgs<QuoteRequest>
|
||||
QuoteRequestArgs;
|
||||
MessageArgs<AdminLogout16>
|
||||
AdminLogout16Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for InstrumentDefinitionOption message type.
|
||||
/// for InstrumentDefinitionFuture54 message type.
|
||||
typedef
|
||||
MessageArgs<InstrumentDefinitionOption>
|
||||
InstrumentDefinitionOptionArgs;
|
||||
MessageArgs<InstrumentDefinitionFuture54>
|
||||
InstrumentDefinitionFuture54Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshTradeSummary message type.
|
||||
/// for InstrumentDefinitionSpread56 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshTradeSummary>
|
||||
IncrementalRefreshTradeSummaryArgs;
|
||||
MessageArgs<InstrumentDefinitionSpread56>
|
||||
InstrumentDefinitionSpread56Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshOrderBook message type.
|
||||
/// for SecurityStatus30 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshOrderBook>
|
||||
IncrementalRefreshOrderBookArgs;
|
||||
MessageArgs<SecurityStatus30>
|
||||
SecurityStatus30Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for SnapshotFullRefreshOrderBook message type.
|
||||
/// for IncrementalRefreshBook46 message type.
|
||||
typedef
|
||||
MessageArgs<SnapshotFullRefreshOrderBook>
|
||||
SnapshotFullRefreshOrderBookArgs;
|
||||
MessageArgs<IncrementalRefreshBook46>
|
||||
IncrementalRefreshBook46Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshDailyStatistics49 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshDailyStatistics49>
|
||||
IncrementalRefreshDailyStatistics49Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshLimitsBanding50 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshLimitsBanding50>
|
||||
IncrementalRefreshLimitsBanding50Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshSessionStatistics51 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshSessionStatistics51>
|
||||
IncrementalRefreshSessionStatistics51Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshVolume37 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshVolume37>
|
||||
IncrementalRefreshVolume37Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for SnapshotFullRefresh52 message type.
|
||||
typedef
|
||||
MessageArgs<SnapshotFullRefresh52>
|
||||
SnapshotFullRefresh52Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for QuoteRequest39 message type.
|
||||
typedef
|
||||
MessageArgs<QuoteRequest39>
|
||||
QuoteRequest39Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for InstrumentDefinitionOption55 message type.
|
||||
typedef
|
||||
MessageArgs<InstrumentDefinitionOption55>
|
||||
InstrumentDefinitionOption55Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshTradeSummary48 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshTradeSummary48>
|
||||
IncrementalRefreshTradeSummary48Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for IncrementalRefreshOrderBook47 message type.
|
||||
typedef
|
||||
MessageArgs<IncrementalRefreshOrderBook47>
|
||||
IncrementalRefreshOrderBook47Args;
|
||||
|
||||
/// MessageArgs template instantiation
|
||||
/// for SnapshotFullRefreshOrderBook53 message type.
|
||||
typedef
|
||||
MessageArgs<SnapshotFullRefreshOrderBook53>
|
||||
SnapshotFullRefreshOrderBook53Args;
|
||||
|
||||
/// Callbacks invoked by Handler during market data
|
||||
/// processing to reflect various stages of processing.
|
||||
@@ -214,382 +274,582 @@ MarketDataListener
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// ChannelReset message has begun.
|
||||
/// InstrumentDefinitionFuture27 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const ChannelResetArgs&)
|
||||
const InstrumentDefinitionFuture27Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// ChannelReset message has ended.
|
||||
/// InstrumentDefinitionFuture27 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const ChannelResetArgs&)
|
||||
const InstrumentDefinitionFuture27Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// AdminHeartbeat message has begun.
|
||||
/// InstrumentDefinitionSpread29 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const AdminHeartbeatArgs&)
|
||||
const InstrumentDefinitionSpread29Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// AdminHeartbeat message has ended.
|
||||
/// InstrumentDefinitionSpread29 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const AdminHeartbeatArgs&)
|
||||
const InstrumentDefinitionSpread29Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// AdminLogin message has begun.
|
||||
/// IncrementalRefreshBook32 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const AdminLoginArgs&)
|
||||
const IncrementalRefreshBook32Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// AdminLogin message has ended.
|
||||
/// IncrementalRefreshBook32 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const AdminLoginArgs&)
|
||||
const IncrementalRefreshBook32Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// AdminLogout message has begun.
|
||||
/// IncrementalRefreshDailyStatistics33 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const AdminLogoutArgs&)
|
||||
const IncrementalRefreshDailyStatistics33Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// AdminLogout message has ended.
|
||||
/// IncrementalRefreshDailyStatistics33 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const AdminLogoutArgs&)
|
||||
const IncrementalRefreshDailyStatistics33Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// InstrumentDefinitionFuture message has begun.
|
||||
/// IncrementalRefreshLimitsBanding34 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionFutureArgs&)
|
||||
const IncrementalRefreshLimitsBanding34Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// InstrumentDefinitionFuture message has ended.
|
||||
/// IncrementalRefreshLimitsBanding34 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionFutureArgs&)
|
||||
const IncrementalRefreshLimitsBanding34Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// InstrumentDefinitionSpread message has begun.
|
||||
/// IncrementalRefreshSessionStatistics35 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionSpreadArgs&)
|
||||
const IncrementalRefreshSessionStatistics35Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// InstrumentDefinitionSpread message has ended.
|
||||
/// IncrementalRefreshSessionStatistics35 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionSpreadArgs&)
|
||||
const IncrementalRefreshSessionStatistics35Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// SecurityStatus message has begun.
|
||||
/// SnapshotFullRefresh38 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const SecurityStatusArgs&)
|
||||
const SnapshotFullRefresh38Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// SecurityStatus message has ended.
|
||||
/// SnapshotFullRefresh38 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const SecurityStatusArgs&)
|
||||
const SnapshotFullRefresh38Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshBook message has begun.
|
||||
/// InstrumentDefinitionOption41 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshBookArgs&)
|
||||
const InstrumentDefinitionOption41Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshBook message has ended.
|
||||
/// InstrumentDefinitionOption41 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshBookArgs&)
|
||||
const InstrumentDefinitionOption41Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshDailyStatistics message has begun.
|
||||
/// IncrementalRefreshTradeSummary42 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshDailyStatisticsArgs&)
|
||||
const IncrementalRefreshTradeSummary42Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshDailyStatistics message has ended.
|
||||
/// IncrementalRefreshTradeSummary42 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshDailyStatisticsArgs&)
|
||||
const IncrementalRefreshTradeSummary42Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshLimitsBanding message has begun.
|
||||
/// IncrementalRefreshOrderBook43 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshLimitsBandingArgs&)
|
||||
const IncrementalRefreshOrderBook43Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshLimitsBanding message has ended.
|
||||
/// IncrementalRefreshOrderBook43 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshLimitsBandingArgs&)
|
||||
const IncrementalRefreshOrderBook43Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshSessionStatistics message has begun.
|
||||
/// SnapshotFullRefreshOrderBook44 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshSessionStatisticsArgs&)
|
||||
const SnapshotFullRefreshOrderBook44Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshSessionStatistics message has ended.
|
||||
/// SnapshotFullRefreshOrderBook44 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshSessionStatisticsArgs&)
|
||||
const SnapshotFullRefreshOrderBook44Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshTrade message has begun.
|
||||
/// ChannelReset4 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshTradeArgs&)
|
||||
const ChannelReset4Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshTrade message has ended.
|
||||
/// ChannelReset4 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshTradeArgs&)
|
||||
const ChannelReset4Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshVolume message has begun.
|
||||
/// AdminHeartbeat12 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshVolumeArgs&)
|
||||
const AdminHeartbeat12Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshVolume message has ended.
|
||||
/// AdminHeartbeat12 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshVolumeArgs&)
|
||||
const AdminHeartbeat12Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// SnapshotFullRefresh message has begun.
|
||||
/// AdminLogin15 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefreshArgs&)
|
||||
const AdminLogin15Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// SnapshotFullRefresh message has ended.
|
||||
/// AdminLogin15 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefreshArgs&)
|
||||
const AdminLogin15Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// QuoteRequest message has begun.
|
||||
/// AdminLogout16 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const QuoteRequestArgs&)
|
||||
const AdminLogout16Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// QuoteRequest message has ended.
|
||||
/// AdminLogout16 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const QuoteRequestArgs&)
|
||||
const AdminLogout16Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// InstrumentDefinitionOption message has begun.
|
||||
/// InstrumentDefinitionFuture54 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionOptionArgs&)
|
||||
const InstrumentDefinitionFuture54Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// InstrumentDefinitionOption message has ended.
|
||||
/// InstrumentDefinitionFuture54 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionOptionArgs&)
|
||||
const InstrumentDefinitionFuture54Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshTradeSummary message has begun.
|
||||
/// InstrumentDefinitionSpread56 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshTradeSummaryArgs&)
|
||||
const InstrumentDefinitionSpread56Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshTradeSummary message has ended.
|
||||
/// InstrumentDefinitionSpread56 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshTradeSummaryArgs&)
|
||||
const InstrumentDefinitionSpread56Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshOrderBook message has begun.
|
||||
/// SecurityStatus30 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshOrderBookArgs&)
|
||||
const SecurityStatus30Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshOrderBook message has ended.
|
||||
/// SecurityStatus30 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshOrderBookArgs&)
|
||||
const SecurityStatus30Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// SnapshotFullRefreshOrderBook message has begun.
|
||||
/// IncrementalRefreshBook46 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefreshOrderBookArgs&)
|
||||
const IncrementalRefreshBook46Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// SnapshotFullRefreshOrderBook message has ended.
|
||||
/// IncrementalRefreshBook46 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefreshOrderBookArgs&)
|
||||
const IncrementalRefreshBook46Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshDailyStatistics49 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshDailyStatistics49Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshDailyStatistics49 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshDailyStatistics49Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshLimitsBanding50 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshLimitsBanding50Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshLimitsBanding50 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshLimitsBanding50Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshSessionStatistics51 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshSessionStatistics51Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshSessionStatistics51 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshSessionStatistics51Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshVolume37 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshVolume37Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshVolume37 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshVolume37Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// SnapshotFullRefresh52 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefresh52Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// SnapshotFullRefresh52 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefresh52Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// QuoteRequest39 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const QuoteRequest39Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// QuoteRequest39 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const QuoteRequest39Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// InstrumentDefinitionOption55 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionOption55Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// InstrumentDefinitionOption55 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const InstrumentDefinitionOption55Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshTradeSummary48 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshTradeSummary48Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshTradeSummary48 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshTradeSummary48Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// IncrementalRefreshOrderBook47 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshOrderBook47Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// IncrementalRefreshOrderBook47 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const IncrementalRefreshOrderBook47Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of
|
||||
/// SnapshotFullRefreshOrderBook53 message has begun.
|
||||
virtual
|
||||
void
|
||||
onMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefreshOrderBook53Args&)
|
||||
{
|
||||
}
|
||||
|
||||
/// Invoked when processing of message of
|
||||
/// SnapshotFullRefreshOrderBook53 message has ended.
|
||||
virtual
|
||||
void
|
||||
onEndOfMessage(
|
||||
Handler&,
|
||||
const SnapshotFullRefreshOrderBook53Args&)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,8 @@ public:
|
||||
destroy(
|
||||
pointer obj)
|
||||
{
|
||||
obj->~value_type();
|
||||
obj->~value_type();
|
||||
(void) obj;
|
||||
}
|
||||
|
||||
size_type max_size() const
|
||||
|
||||
@@ -29,23 +29,21 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
/// Data for MBO book atomic update gathered
|
||||
/// from IncrementalRefreshBook message containing
|
||||
/// atomic updates for all types of books.
|
||||
ONIXS_CMEMDH_LTWT_CLASS
|
||||
template
|
||||
<
|
||||
class Order,
|
||||
class Price
|
||||
>
|
||||
class
|
||||
IncrementalRefreshBookCombinedEntry
|
||||
{
|
||||
Order order_;
|
||||
Price price_;
|
||||
|
||||
public:
|
||||
/// Aliases order details for given update.
|
||||
typedef
|
||||
IncrementalRefreshBook::OrderIDEntries::Entry
|
||||
OrderEntry;
|
||||
|
||||
/// Aliases price details for given update.
|
||||
typedef
|
||||
IncrementalRefreshBook::Entries::Entry
|
||||
PriceEntry;
|
||||
|
||||
/// Initializes instance from order and price components.
|
||||
IncrementalRefreshBookCombinedEntry(
|
||||
const OrderEntry& order, const PriceEntry& price)
|
||||
const Order& order, const Price& price)
|
||||
: order_(order), price_(price)
|
||||
{
|
||||
}
|
||||
@@ -64,26 +62,32 @@ public:
|
||||
}
|
||||
|
||||
/// Type of market data entry.
|
||||
EntryTypeBook::Enum entryType() const
|
||||
EntryTypeBook::Enum
|
||||
entryType() const
|
||||
{
|
||||
return price_.entryType();
|
||||
}
|
||||
|
||||
/// Indicates action of atomic book update.
|
||||
OrderUpdateAction::Enum updateAction() const
|
||||
OrderUpdateAction::Enum
|
||||
updateAction() const
|
||||
{
|
||||
return order_.orderUpdateAction();
|
||||
}
|
||||
|
||||
/// Order identifier.
|
||||
OrderId id() const
|
||||
bool
|
||||
orderId(
|
||||
OrderId& id) const
|
||||
{
|
||||
return order_.orderId();
|
||||
id = order_.orderId();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/// Order priority.
|
||||
bool
|
||||
priority(
|
||||
orderPriority(
|
||||
OrderPriority& priority) const
|
||||
{
|
||||
return order_.orderPriority(priority);
|
||||
@@ -91,15 +95,15 @@ public:
|
||||
|
||||
/// Price value.
|
||||
bool
|
||||
price(
|
||||
PRICE& price) const
|
||||
entryPx(
|
||||
Decimal& price) const
|
||||
{
|
||||
return price_.entryPx(price);
|
||||
}
|
||||
|
||||
/// Display quantity.
|
||||
bool
|
||||
quantity(
|
||||
displayQty(
|
||||
DisplayQuantity& quantity) const
|
||||
{
|
||||
return order_.displayQty(quantity);
|
||||
@@ -116,10 +120,30 @@ public:
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
OrderEntry order_;
|
||||
PriceEntry price_;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
/// Data for MBO book atomic update gathered
|
||||
/// from IncrementalRefreshBook46 message containing
|
||||
/// atomic updates for all types of books.
|
||||
typedef
|
||||
IncrementalRefreshBookCombinedEntry
|
||||
<
|
||||
IncrementalRefreshBook46::OrderIDEntry,
|
||||
IncrementalRefreshBook46::Entry
|
||||
>
|
||||
IncrementalRefreshBook46CombinedEntry;
|
||||
|
||||
/// Data for MBO book atomic update gathered
|
||||
/// from IncrementalRefreshBook32 message containing
|
||||
/// atomic updates for all types of books.
|
||||
typedef
|
||||
IncrementalRefreshBookCombinedEntry
|
||||
<
|
||||
IncrementalRefreshBook32::OrderIDEntry,
|
||||
IncrementalRefreshBook32::Entry
|
||||
>
|
||||
IncrementalRefreshBook32CombinedEntry;
|
||||
|
||||
ONIXS_CMEMDH_NAMESPACE_END
|
||||
+5581
-1262
File diff suppressed because it is too large.
Load diff
@@ -20,7 +20,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <OnixS/CME/MDH/Integral.h>
|
||||
#include <OnixS/CME/MDH/Decimal.h>
|
||||
#include <OnixS/CME/MDH/Composites.h>
|
||||
|
||||
ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
@@ -50,10 +50,22 @@ OrderTraits
|
||||
return 18446744073709551615ul;
|
||||
}
|
||||
|
||||
/// Returns null price.
|
||||
static PRICE nullPrice()
|
||||
/// Returns mantissa of the null price.
|
||||
static Int64 nullPriceMantissa()
|
||||
{
|
||||
return PRICE(9223372036854775807l);
|
||||
return 9223372036854775807l;
|
||||
}
|
||||
|
||||
/// Returns mantissa of the null price.
|
||||
static
|
||||
bool
|
||||
nullPrice(
|
||||
const Decimal& price)
|
||||
{
|
||||
return (
|
||||
price.mantissa() ==
|
||||
nullPriceMantissa()
|
||||
);
|
||||
}
|
||||
|
||||
/// Returns null display quantity.
|
||||
@@ -66,18 +78,34 @@ OrderTraits
|
||||
/// Order as the member of the Market By Order (MBO) book.
|
||||
ONIXS_CMEMDH_LTWT_CLASS Order
|
||||
{
|
||||
protected:
|
||||
OrderId id_;
|
||||
OrderPriority priority_;
|
||||
|
||||
Decimal price_;
|
||||
DisplayQuantity quantity_;
|
||||
|
||||
public:
|
||||
/// Initializes instance according to given values.
|
||||
/// By default, initializes null order.
|
||||
Order(
|
||||
OrderId id =
|
||||
OrderTraits::nullId(),
|
||||
OrderPriority priority =
|
||||
OrderTraits::nullPriority(),
|
||||
PRICE price =
|
||||
OrderTraits::nullPrice(),
|
||||
DisplayQuantity quantity =
|
||||
/// Initializes blank/null instance.
|
||||
Order()
|
||||
: id_(
|
||||
OrderTraits::nullId())
|
||||
, priority_(
|
||||
OrderTraits::nullPriority())
|
||||
, price_(
|
||||
OrderTraits::nullPriceMantissa(),
|
||||
0)
|
||||
, quantity_(
|
||||
OrderTraits::nullQuantity())
|
||||
{
|
||||
}
|
||||
|
||||
/// Initializes instance according to given values.
|
||||
Order(
|
||||
OrderId id,
|
||||
OrderPriority priority,
|
||||
const Decimal& price,
|
||||
DisplayQuantity quantity)
|
||||
: id_(id)
|
||||
, priority_(priority)
|
||||
, price_(price)
|
||||
@@ -114,7 +142,7 @@ public:
|
||||
}
|
||||
|
||||
/// Order price.
|
||||
const PRICE& price() const
|
||||
const Decimal& price() const
|
||||
{
|
||||
return price_;
|
||||
}
|
||||
@@ -122,7 +150,7 @@ public:
|
||||
/// Updates order price.
|
||||
void
|
||||
price(
|
||||
const PRICE& price)
|
||||
const Decimal& price)
|
||||
{
|
||||
price_ = price;
|
||||
}
|
||||
@@ -140,13 +168,6 @@ public:
|
||||
{
|
||||
quantity_ = quantity;
|
||||
}
|
||||
|
||||
protected:
|
||||
OrderId id_;
|
||||
OrderPriority priority_;
|
||||
|
||||
PRICE price_;
|
||||
DisplayQuantity quantity_;
|
||||
};
|
||||
|
||||
/// Appends representation of order to given string.
|
||||
|
||||
@@ -38,7 +38,7 @@ ONIXS_CMEMDH_LTWT_STRUCT SchemaTraits
|
||||
/// market data processing.
|
||||
static SchemaVersion minimalVersion()
|
||||
{
|
||||
return 4;
|
||||
return 8;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -607,6 +607,25 @@ toFix(
|
||||
}
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const Decimal9& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline std::string toStr(const Decimal9& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
@@ -735,40 +754,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const ChannelReset& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline std::string toStr(const ChannelReset& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const ChannelReset& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const AdminHeartbeat& obj);
|
||||
const InstrumentDefinitionFuture27& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const AdminHeartbeat& obj)
|
||||
const InstrumentDefinitionFuture27& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -782,7 +775,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const AdminHeartbeat& obj);
|
||||
const InstrumentDefinitionFuture27& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -790,66 +783,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const AdminLogin& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline std::string toStr(const AdminLogin& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const AdminLogin& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const AdminLogout& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline std::string toStr(const AdminLogout& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const AdminLogout& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionFuture& obj);
|
||||
const InstrumentDefinitionSpread29& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const InstrumentDefinitionFuture& obj)
|
||||
const InstrumentDefinitionSpread29& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -863,7 +804,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionFuture& obj);
|
||||
const InstrumentDefinitionSpread29& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -871,14 +812,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionSpread& obj);
|
||||
const IncrementalRefreshBook32& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const InstrumentDefinitionSpread& obj)
|
||||
const IncrementalRefreshBook32& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -892,7 +833,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionSpread& obj);
|
||||
const IncrementalRefreshBook32& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -900,14 +841,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const SecurityStatus& obj);
|
||||
const IncrementalRefreshDailyStatistics33& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const SecurityStatus& obj)
|
||||
const IncrementalRefreshDailyStatistics33& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -921,7 +862,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const SecurityStatus& obj);
|
||||
const IncrementalRefreshDailyStatistics33& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -929,14 +870,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshBook& obj);
|
||||
const IncrementalRefreshLimitsBanding34& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshBook& obj)
|
||||
const IncrementalRefreshLimitsBanding34& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -950,7 +891,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshBook& obj);
|
||||
const IncrementalRefreshLimitsBanding34& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -958,14 +899,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshDailyStatistics& obj);
|
||||
const IncrementalRefreshSessionStatistics35& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshDailyStatistics& obj)
|
||||
const IncrementalRefreshSessionStatistics35& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -979,7 +920,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshDailyStatistics& obj);
|
||||
const IncrementalRefreshSessionStatistics35& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -987,14 +928,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshLimitsBanding& obj);
|
||||
const SnapshotFullRefresh38& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshLimitsBanding& obj)
|
||||
const SnapshotFullRefresh38& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1008,7 +949,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshLimitsBanding& obj);
|
||||
const SnapshotFullRefresh38& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1016,14 +957,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshSessionStatistics& obj);
|
||||
const InstrumentDefinitionOption41& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshSessionStatistics& obj)
|
||||
const InstrumentDefinitionOption41& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1037,7 +978,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshSessionStatistics& obj);
|
||||
const InstrumentDefinitionOption41& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1045,14 +986,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshTrade& obj);
|
||||
const IncrementalRefreshTradeSummary42& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshTrade& obj)
|
||||
const IncrementalRefreshTradeSummary42& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1066,7 +1007,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshTrade& obj);
|
||||
const IncrementalRefreshTradeSummary42& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1074,14 +1015,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshVolume& obj);
|
||||
const IncrementalRefreshOrderBook43& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshVolume& obj)
|
||||
const IncrementalRefreshOrderBook43& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1095,7 +1036,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshVolume& obj);
|
||||
const IncrementalRefreshOrderBook43& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1103,14 +1044,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const SnapshotFullRefresh& obj);
|
||||
const SnapshotFullRefreshOrderBook44& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const SnapshotFullRefresh& obj)
|
||||
const SnapshotFullRefreshOrderBook44& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1124,7 +1065,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const SnapshotFullRefresh& obj);
|
||||
const SnapshotFullRefreshOrderBook44& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1132,11 +1073,11 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const QuoteRequest& obj);
|
||||
const ChannelReset4& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline std::string toStr(const QuoteRequest& obj)
|
||||
inline std::string toStr(const ChannelReset4& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1150,7 +1091,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const QuoteRequest& obj);
|
||||
const ChannelReset4& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1158,14 +1099,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionOption& obj);
|
||||
const AdminHeartbeat12& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const InstrumentDefinitionOption& obj)
|
||||
const AdminHeartbeat12& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1179,7 +1120,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionOption& obj);
|
||||
const AdminHeartbeat12& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1187,14 +1128,66 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshTradeSummary& obj);
|
||||
const AdminLogin15& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline std::string toStr(const AdminLogin15& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const AdminLogin15& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const AdminLogout16& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline std::string toStr(const AdminLogout16& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const AdminLogout16& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionFuture54& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshTradeSummary& obj)
|
||||
const InstrumentDefinitionFuture54& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1208,7 +1201,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshTradeSummary& obj);
|
||||
const InstrumentDefinitionFuture54& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1216,14 +1209,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshOrderBook& obj);
|
||||
const InstrumentDefinitionSpread56& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshOrderBook& obj)
|
||||
const InstrumentDefinitionSpread56& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1237,7 +1230,7 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshOrderBook& obj);
|
||||
const InstrumentDefinitionSpread56& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
@@ -1245,14 +1238,14 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const SnapshotFullRefreshOrderBook& obj);
|
||||
const SecurityStatus30& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const SnapshotFullRefreshOrderBook& obj)
|
||||
const SecurityStatus30& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
@@ -1266,7 +1259,326 @@ ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const SnapshotFullRefreshOrderBook& obj);
|
||||
const SecurityStatus30& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshBook46& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshBook46& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshBook46& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshDailyStatistics49& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshDailyStatistics49& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshDailyStatistics49& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshLimitsBanding50& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshLimitsBanding50& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshLimitsBanding50& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshSessionStatistics51& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshSessionStatistics51& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshSessionStatistics51& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshVolume37& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshVolume37& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshVolume37& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const SnapshotFullRefresh52& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const SnapshotFullRefresh52& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const SnapshotFullRefresh52& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const QuoteRequest39& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const QuoteRequest39& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const QuoteRequest39& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionOption55& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const InstrumentDefinitionOption55& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const InstrumentDefinitionOption55& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshTradeSummary48& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshTradeSummary48& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshTradeSummary48& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const IncrementalRefreshOrderBook47& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const IncrementalRefreshOrderBook47& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const IncrementalRefreshOrderBook47& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toStr(
|
||||
std::string& str,
|
||||
const SnapshotFullRefreshOrderBook53& obj);
|
||||
|
||||
|
||||
/// Serializes object into a string.
|
||||
inline
|
||||
std::string
|
||||
toStr(
|
||||
const SnapshotFullRefreshOrderBook53& obj)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
toStr(str, obj);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Serializes object into FIX presentation.
|
||||
ONIXS_CMEMDH_EXPORTED
|
||||
void
|
||||
toFix(
|
||||
std::string& str,
|
||||
const SnapshotFullRefreshOrderBook53& obj);
|
||||
|
||||
|
||||
ONIXS_CMEMDH_NAMESPACE_END
|
||||
@@ -29,15 +29,9 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
|
||||
/// Collection of order details
|
||||
/// referring to a single trade.
|
||||
ONIXS_CMEMDH_LTWT_CLASS
|
||||
TradeOrderIds
|
||||
ONIXS_CMEMDH_LTWT_CLASS TradeOrderIds
|
||||
{
|
||||
public:
|
||||
/// Alias for market data entry containing order details.
|
||||
typedef
|
||||
IncrementalRefreshTradeSummary::OrderIDEntry
|
||||
MarketDataEntry;
|
||||
|
||||
/// Stores information on order id and other details.
|
||||
ONIXS_CMEMDH_LTWT_CLASS Details
|
||||
{
|
||||
@@ -53,12 +47,14 @@ public:
|
||||
}
|
||||
|
||||
/// Retrieves order details from given market data entry.
|
||||
template
|
||||
<
|
||||
class Entry
|
||||
>
|
||||
Details(
|
||||
const MarketDataEntry& entry)
|
||||
: orderId_(
|
||||
entry.orderId())
|
||||
, lastQty_(
|
||||
entry.lastQty())
|
||||
const Entry& entry)
|
||||
: orderId_(entry.orderId())
|
||||
, lastQty_(entry.lastQty())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -127,16 +123,17 @@ public:
|
||||
}
|
||||
|
||||
/// Adds order details to collection.
|
||||
template
|
||||
<
|
||||
class Entry
|
||||
>
|
||||
void
|
||||
add(
|
||||
const
|
||||
IncrementalRefreshTradeSummary::
|
||||
OrderIDEntry& entry)
|
||||
const Entry& entry)
|
||||
{
|
||||
ids_.push_back(Details(entry));
|
||||
}
|
||||
|
||||
|
||||
/// Resets collection to blank state.
|
||||
void clear()
|
||||
{
|
||||
|
||||
@@ -58,191 +58,291 @@ processTypified(
|
||||
{
|
||||
switch (binary.templateId())
|
||||
{
|
||||
case ChannelReset::TemplateId:
|
||||
case InstrumentDefinitionFuture27::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<ChannelReset>
|
||||
<InstrumentDefinitionFuture27>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case AdminHeartbeat::TemplateId:
|
||||
case InstrumentDefinitionSpread29::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<AdminHeartbeat>
|
||||
<InstrumentDefinitionSpread29>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case AdminLogin::TemplateId:
|
||||
case IncrementalRefreshBook32::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<AdminLogin>
|
||||
<IncrementalRefreshBook32>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case AdminLogout::TemplateId:
|
||||
case IncrementalRefreshDailyStatistics33::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<AdminLogout>
|
||||
<IncrementalRefreshDailyStatistics33>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case InstrumentDefinitionFuture::TemplateId:
|
||||
case IncrementalRefreshLimitsBanding34::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<InstrumentDefinitionFuture>
|
||||
<IncrementalRefreshLimitsBanding34>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case InstrumentDefinitionSpread::TemplateId:
|
||||
case IncrementalRefreshSessionStatistics35::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<InstrumentDefinitionSpread>
|
||||
<IncrementalRefreshSessionStatistics35>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case SecurityStatus::TemplateId:
|
||||
case SnapshotFullRefresh38::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<SecurityStatus>
|
||||
<SnapshotFullRefresh38>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshBook::TemplateId:
|
||||
case InstrumentDefinitionOption41::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshBook>
|
||||
<InstrumentDefinitionOption41>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshDailyStatistics::TemplateId:
|
||||
case IncrementalRefreshTradeSummary42::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshDailyStatistics>
|
||||
<IncrementalRefreshTradeSummary42>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshLimitsBanding::TemplateId:
|
||||
case IncrementalRefreshOrderBook43::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshLimitsBanding>
|
||||
<IncrementalRefreshOrderBook43>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshSessionStatistics::TemplateId:
|
||||
case SnapshotFullRefreshOrderBook44::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshSessionStatistics>
|
||||
<SnapshotFullRefreshOrderBook44>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshTrade::TemplateId:
|
||||
case ChannelReset4::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshTrade>
|
||||
<ChannelReset4>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshVolume::TemplateId:
|
||||
case AdminHeartbeat12::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshVolume>
|
||||
<AdminHeartbeat12>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case SnapshotFullRefresh::TemplateId:
|
||||
case AdminLogin15::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<SnapshotFullRefresh>
|
||||
<AdminLogin15>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case QuoteRequest::TemplateId:
|
||||
case AdminLogout16::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<QuoteRequest>
|
||||
<AdminLogout16>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case InstrumentDefinitionOption::TemplateId:
|
||||
case InstrumentDefinitionFuture54::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<InstrumentDefinitionOption>
|
||||
<InstrumentDefinitionFuture54>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshTradeSummary::TemplateId:
|
||||
case InstrumentDefinitionSpread56::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshTradeSummary>
|
||||
<InstrumentDefinitionSpread56>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshOrderBook::TemplateId:
|
||||
case SecurityStatus30::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshOrderBook>
|
||||
<SecurityStatus30>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case SnapshotFullRefreshOrderBook::TemplateId:
|
||||
case IncrementalRefreshBook46::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<SnapshotFullRefreshOrderBook>
|
||||
<IncrementalRefreshBook46>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshDailyStatistics49::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshDailyStatistics49>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshLimitsBanding50::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshLimitsBanding50>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshSessionStatistics51::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshSessionStatistics51>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshVolume37::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshVolume37>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case SnapshotFullRefresh52::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<SnapshotFullRefresh52>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case QuoteRequest39::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<QuoteRequest39>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case InstrumentDefinitionOption55::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<InstrumentDefinitionOption55>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshTradeSummary48::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshTradeSummary48>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case IncrementalRefreshOrderBook47::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<IncrementalRefreshOrderBook47>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case SnapshotFullRefreshOrderBook53::TemplateId:
|
||||
{
|
||||
processor(
|
||||
typify
|
||||
<SnapshotFullRefreshOrderBook53>
|
||||
(binary));
|
||||
|
||||
return true;
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#include <OnixS/CME/MDH/String.h>
|
||||
#include <OnixS/CME/MDH/Integral.h>
|
||||
|
||||
#pragma push_macro("major")
|
||||
#undef major
|
||||
#pragma push_macro("minor")
|
||||
#undef minor
|
||||
|
||||
ONIXS_CMEMDH_NAMESPACE_BEGIN
|
||||
|
||||
/// Identifies version of the product.
|
||||
@@ -187,6 +182,3 @@ toStr(
|
||||
}
|
||||
|
||||
ONIXS_CMEMDH_NAMESPACE_END
|
||||
|
||||
#pragma pop_macro("minor")
|
||||
#pragma pop_macro("major")
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
onixs="OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.5.2"
|
||||
onixs="OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.8.0"
|
||||
root=`realpath ../..`
|
||||
work=$root/work
|
||||
src=$root/src
|
||||
|
||||
Reference in new issue
Block a user