OnixS C++ HKEX OMD-C Handler 1.0.0
API documentation
Loading...
Searching...
No Matches
NewsMsg Struct Reference

Public Member Functions

UInt16 msgSize () const noexcept
UInt16 msgType () const noexcept
StrRef newsType () const noexcept
StrRef newsID () const noexcept
StrRef headline () const noexcept
StrRef cancelFlag () const noexcept
StrRef lastFragment () const noexcept
UInt64 releaseTime () const noexcept
UInt16 noMarketCodes () const noexcept
UInt16 marketCode (UInt16 index) const noexcept
UInt16 noSecurityCodes () const noexcept
UInt16 securityCode (UInt16 index) const noexcept
UInt16 noNewsLines () const noexcept
StrRef newsLine (UInt16 index) const noexcept
 NewsMsg (const void *data, MessageSize size) noexcept
Public Member Functions inherited from BinaryMessage
 BinaryMessage () noexcept
 BinaryMessage (const void *data, MessageSize size) noexcept
 BinaryMessage (const BinaryMessage &other) noexcept
 operator bool () const noexcept
const void * binary () const noexcept
MessageSize binarySize () const noexcept
BinaryMessageoperator= (const BinaryMessage &other) noexcept

Static Public Member Functions

static void validateSize (MessageSize size)

Static Public Attributes

static constexpr MessageSize messageSize_ = 348

Additional Inherited Members

Public Types inherited from BinaryMessage
typedef MessageSize BinarySize
Protected Member Functions inherited from BinaryFields< BinaryMessage, MessageSize >
const SubMessage submessage (MessageSize offset, MessageSize size) const noexcept
FieldValue ordinary (MessageSize offset) const noexcept
const FieldValue & ordinaryRef (MessageSize offset) const noexcept
Enumeration::Enum enumeration (MessageSize offset) const noexcept
StrRef fixedStr (MessageSize offset) const noexcept

Detailed Description

Definition at line 36 of file News.h.

Constructor & Destructor Documentation

◆ NewsMsg()

NewsMsg ( const void * data,
MessageSize size )
inlinenoexcept

Initializes instance over given memory block.

Definition at line 157 of file News.h.

Member Function Documentation

◆ cancelFlag()

StrRef cancelFlag ( ) const
inlinenoexcept

Indicator of whether previously released exchange news (identified by NewsType and NewsID) has been cancelled.

Definition at line 75 of file News.h.

◆ headline()

StrRef headline ( ) const
inlinenoexcept

News headline.

Definition at line 67 of file News.h.

◆ lastFragment()

StrRef lastFragment ( ) const
inlinenoexcept

Indicates whether this message is the last in a sequence of messages.

Definition at line 82 of file News.h.

◆ marketCode()

UInt16 marketCode ( UInt16 index) const
inlinenoexcept

Market segment identifier.

Definition at line 103 of file News.h.

◆ msgSize()

UInt16 msgSize ( ) const
inlinenoexcept

Size of the message.

Definition at line 39 of file News.h.

◆ msgType()

UInt16 msgType ( ) const
inlinenoexcept

Type of message.

Definition at line 46 of file News.h.

◆ newsID()

StrRef newsID ( ) const
inlinenoexcept

Unique number for the news page within each NewsType.

Definition at line 60 of file News.h.

◆ newsLine()

StrRef newsLine ( UInt16 index) const
inlinenoexcept

News line.

Definition at line 137 of file News.h.

◆ newsType()

StrRef newsType ( ) const
inlinenoexcept

Type of Exchange news.

Definition at line 53 of file News.h.

◆ noMarketCodes()

UInt16 noMarketCodes ( ) const
inlinenoexcept

Number of Market segment identifier within this message.

Definition at line 96 of file News.h.

◆ noNewsLines()

UInt16 noNewsLines ( ) const
inlinenoexcept

Number of news lines.

Definition at line 130 of file News.h.

◆ noSecurityCodes()

UInt16 noSecurityCodes ( ) const
inlinenoexcept

Number of security codes within this message.

Definition at line 113 of file News.h.

◆ releaseTime()

UInt64 releaseTime ( ) const
inlinenoexcept

Release time of the news.

Definition at line 89 of file News.h.

◆ securityCode()

UInt16 securityCode ( UInt16 index) const
inlinenoexcept

Uniquely identifies a security available for trading.

Definition at line 120 of file News.h.

◆ validateSize()

void validateSize ( MessageSize size)
inlinestatic

Check the given size.

Definition at line 150 of file News.h.

Member Data Documentation

◆ messageSize_

MessageSize messageSize_ = 348
staticconstexpr

Total message size.

Definition at line 147 of file News.h.