OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
BinaryBlock< Container, BlockLength > Class Template Reference

Protected Member Functions

 BinaryBlock ()
 ~BinaryBlock ()
template<class Value>
Value ordinary (BlockLength offset) const
template<class Value, class NullValue>
bool ordinary (Value &value, BlockLength offset, const NullValue &null) const
template<class Value, class NullValue>
bool ordinary (Value &value, BlockLength offset, const NullValue &null, SchemaVersion since) const
template<class Enumeration>
Enumeration::Enum enumeration (BlockLength offset) const
template<class Enumeration, class NullValue>
bool enumeration (typename Enumeration::Enum &value, BlockLength offset, const NullValue &null) const
template<class Enumeration, class NullValue>
bool enumeration (typename Enumeration::Enum &value, BlockLength offset, const NullValue &null, SchemaVersion since) const
template<class Value>
Decimal decimal (BlockLength offset) const
template<class NullValue>
bool decimal (Decimal &value, BlockLength offset, const NullValue &null) const
template<class NullValue>
bool decimal (Decimal &value, BlockLength offset, const NullValue &null, SchemaVersion since) const
template<BlockLength Length>
StrRef fixedStr (BlockLength offset) const
template<BlockLength Length>
StrRef fixedStr (BlockLength offset, SchemaVersion since) const

Detailed Description

template<class Container, class BlockLength>
class OnixS::CME::ConflatedUDP::BinaryBlock< Container, BlockLength >

Exposes base services to access fields stored in a SBE-encoded block of fixed-length fields.

The given class represents an abstraction to be used by descendants as a base class with static polymorphism.

Definition at line 46 of file BinaryMessage.h.

Constructor & Destructor Documentation

◆ BinaryBlock()

template<class Container, class BlockLength>
BinaryBlock ( )
inlineprotected

Initializes the blank instance.

Definition at line 62 of file BinaryMessage.h.

◆ ~BinaryBlock()

template<class Container, class BlockLength>
~BinaryBlock ( )
inlineprotected

Ends life of the instance.

Definition at line 67 of file BinaryMessage.h.

Member Function Documentation

◆ decimal() [1/3]

template<class Container, class BlockLength>
template<class Value>
Decimal decimal ( BlockLength offset) const
inlineprotected

Returns value of a field by its offset converted into a decimal.

Definition at line 288 of file BinaryMessage.h.

◆ decimal() [2/3]

template<class Container, class BlockLength>
template<class NullValue>
bool decimal ( Decimal & value,
BlockLength offset,
const NullValue & null ) const
inlineprotected

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.

Definition at line 309 of file BinaryMessage.h.

◆ decimal() [3/3]

template<class Container, class BlockLength>
template<class NullValue>
bool decimal ( Decimal & value,
BlockLength offset,
const NullValue & null,
SchemaVersion since ) const
inlineprotected

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.

Definition at line 350 of file BinaryMessage.h.

◆ enumeration() [1/3]

template<class Container, class BlockLength>
template<class Enumeration>
Enumeration::Enum enumeration ( BlockLength offset) const
inlineprotected

Returns value of a field by its offset.

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

Definition at line 185 of file BinaryMessage.h.

◆ enumeration() [2/3]

template<class Container, class BlockLength>
template<class Enumeration, class NullValue>
bool enumeration ( typename Enumeration::Enum & value,
BlockLength offset,
const NullValue & null ) const
inlineprotected

Provides access to value of an optional field by its offset.

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

Definition at line 214 of file BinaryMessage.h.

◆ enumeration() [3/3]

template<class Container, class BlockLength>
template<class Enumeration, class NullValue>
bool enumeration ( typename Enumeration::Enum & value,
BlockLength offset,
const NullValue & null,
SchemaVersion since ) const
inlineprotected

Provides access to value of an optional field by its offset.

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

Definition at line 257 of file BinaryMessage.h.

◆ fixedStr() [1/2]

template<class Container, class BlockLength>
template<BlockLength Length>
StrRef fixedStr ( BlockLength offset) const
inlineprotected

Provides access to string field by its offset.

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

Definition at line 379 of file BinaryMessage.h.

◆ fixedStr() [2/2]

template<class Container, class BlockLength>
template<BlockLength Length>
StrRef fixedStr ( BlockLength offset,
SchemaVersion since ) const
inlineprotected

Provides access to an optional field of string type by its offset.

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

Definition at line 422 of file BinaryMessage.h.

◆ ordinary() [1/3]

template<class Container, class BlockLength>
template<class Value>
Value ordinary ( BlockLength offset) const
inlineprotected

Returns value of a field by its offset.

Definition at line 77 of file BinaryMessage.h.

◆ ordinary() [2/3]

template<class Container, class BlockLength>
template<class Value, class NullValue>
bool ordinary ( Value & value,
BlockLength offset,
const NullValue & null ) const
inlineprotected

Provides access to a value of an optional field by its offset.

Returned result indicates whether field is present in given field block and its value was copied into a given parameter-variable.

Definition at line 119 of file BinaryMessage.h.

◆ ordinary() [3/3]

template<class Container, class BlockLength>
template<class Value, class NullValue>
bool ordinary ( Value & value,
BlockLength offset,
const NullValue & null,
SchemaVersion since ) const
inlineprotected

Provides access to a value of an optional field by its offset.

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.

Definition at line 155 of file BinaryMessage.h.