OnixS C++ HKEX OMD-C Handler 1.0.0
API documentation
Loading...
Searching...
No Matches
BinaryFields< Block, BlockSize > Class Template Reference

Protected Member Functions

template<class SubMessage>
const SubMessage submessage (BlockSize offset, BlockSize size) const noexcept
template<class FieldValue>
FieldValue ordinary (BlockSize offset) const noexcept
template<class FieldValue>
const FieldValue & ordinaryRef (BlockSize offset) const noexcept
template<class Enumeration>
Enumeration::Enum enumeration (BlockSize offset) const noexcept
template<BlockSize Size>
StrRef fixedStr (BlockSize offset) const noexcept

Detailed Description

template<class Block, class BlockSize>
class OnixS::HKEX::MarketData::Omdc::BinaryFields< Block, BlockSize >

Class represents an abstraction, instance construction available through descendants implementing actual access to encoded data.

Definition at line 54 of file BinaryMessage.h.

Member Function Documentation

◆ enumeration()

template<class Block, class BlockSize>
template<class Enumeration>
Enumeration::Enum enumeration ( BlockSize offset) const
inlineprotectednoexcept

Returns value of a field by its offset.

Given function serves as specialization of general case for fields of enumeration type.

Definition at line 102 of file BinaryMessage.h.

◆ fixedStr()

template<class Block, class BlockSize>
template<BlockSize Size>
StrRef fixedStr ( BlockSize offset) const
inlineprotectednoexcept

Provides access to string field by its offset.

Given function serves as specialization of general case for fields of string type.

Definition at line 117 of file BinaryMessage.h.

◆ ordinary()

template<class Block, class BlockSize>
template<class FieldValue>
FieldValue ordinary ( BlockSize offset) const
inlineprotectednoexcept

Returns value of a field by its offset.

Definition at line 78 of file BinaryMessage.h.

◆ ordinaryRef()

template<class Block, class BlockSize>
template<class FieldValue>
const FieldValue & ordinaryRef ( BlockSize offset) const
inlineprotectednoexcept

Returns value of a field by its offset.

Definition at line 88 of file BinaryMessage.h.

◆ submessage()

template<class Block, class BlockSize>
template<class SubMessage>
const SubMessage submessage ( BlockSize offset,
BlockSize size ) const
inlineprotectednoexcept

Returns sub message.

Definition at line 67 of file BinaryMessage.h.