OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
Utils.h File Reference

Go to the source code of this file.

Classes

struct  hasTransactTimeImpl< T >
struct  hasTransactTimeImpl< T >::SFINAE< U, const >
struct  hasExecIdImpl< T >
struct  hasExecIdImpl< T >::SFINAE< U, noexcept >
struct  hasExecTypeImpl< T >
struct  hasExecTypeImpl< T >::SFINAE< U, V, noexcept >
struct  hasLeavesQtyImpl< T >
struct  hasLeavesQtyImpl< T >::SFINAE< U, V, noexcept >

Namespaces

namespace  Samples
namespace  Samples::details

Typedefs

template<class T>
using hasTransactTime = typename details::hasTransactTimeImpl<cleanType<T>>
template<class T>
using hasExecId = typename details::hasExecIdImpl<cleanType<T>>
template<class T>
using hasExecType = typename details::hasExecTypeImpl<cleanType<T>>
template<class T>
using hasLeavesQty = typename details::hasLeavesQtyImpl<cleanType<T>>
template<typename T>
using OptionalRef = std::optional<std::shared_ptr<T>>

Functions

template<typename MsgType>
Timestamp getTransactTime (MsgType &&msg, typename std::enable_if< hasTransactTime< MsgType >::value, void * >::type=nullptr)
template<typename MsgType>
Timestamp getTransactTime (MsgType &&msg, typename std::enable_if<!hasTransactTime< MsgType >::value &&hasExecId< MsgType >::value, void * >::type=nullptr)
template<typename MsgType>
Timestamp getTransactTime (MsgType &&, typename std::enable_if<!hasTransactTime< MsgType >::value &&!hasExecId< MsgType >::value, void * >::type=nullptr)
template<typename MsgType>
ExecTypeEnum getOrdStatus (MsgType &&msg, ExecTypeEnum, typename std::enable_if< hasExecType< MsgType >::value, void * >::type=nullptr)
template<typename MsgType>
ExecTypeEnum getOrdStatus (MsgType &&, ExecTypeEnum defaultValue, typename std::enable_if<!hasExecType< MsgType >::value, void * >::type=nullptr)
template<typename MsgType>
void setOrdStatus (Order &order, MsgType &&msg, ExecTypeEnum defaultValue)
template<typename MsgType>
void setLeavesQty (Order &order, MsgType &&msg, typename std::enable_if< hasLeavesQty< MsgType >::value, void * >::type=nullptr)
template<typename MsgType>
void setLeavesQty (Order &, MsgType &&, typename std::enable_if<!hasLeavesQty< MsgType >::value, void * >::type=nullptr)
Decimal9 toPriceMantissa (Decimal value)
template<typename T>
parseUserInput (const std::string &userInput, typename std::enable_if< std::is_integral< T >::value, void * >::type=nullptr)
template<typename T>
parseUserInput (const std::string &userInput, typename std::enable_if< isScopedEnum< T >::value, void * >::type=nullptr)
template<typename T>
Decimal parseUserInput (const std::string &userInput, typename std::enable_if< std::is_floating_point< T >::value, void * >::type=nullptr)
template<typename T>
parseUserInput (const std::string &userInput, typename std::enable_if< std::is_same< T, std::string >::value, void * >::type=nullptr)
template<typename T>
auto toValueNamePair (T v, typename std::enable_if< isScopedEnum< T >::value, void * >::type=nullptr)
template<typename It>
auto join (It first, It last, char delim, typename std::enable_if< isScopedEnum< typename It::value_type >::value, void * >::type=nullptr)