OnixS C++ CME MDP Premium Market Data Handler 5.9.0
Users' manual and API documentation
Loading...
Searching...
No Matches
HandlerListeners Class Reference

#include <OnixS/CME/MDH/HandlerListeners.h>

Public Member Functions

 HandlerListeners (SettingChangeController *controller=nullptr)
 HandlerListeners (const HandlerListeners &other)
 ~HandlerListeners ()
HandlerListenerhandler () const
HandlerListenerhandlerOrDefault () const
HandlerListenershandler (HandlerListener *listener)
ChannelFeedListenerfeeds () const
ChannelFeedListenerfeedsOrDefault () const
HandlerListenersfeeds (ChannelFeedListener *listener)
MarketDataListenermarketData () const
MarketDataListenermarketDataOrDefault () const
HandlerListenersmarketData (MarketDataListener *listener)
SecurityListenersecurity () const
SecurityListenersecurityOrDefault () const
HandlerListenerssecurity (SecurityListener *listener)
HandlerListenersoperator= (const HandlerListeners &other)
Public Member Functions inherited from SettingGroup
 SettingGroup (SettingChangeController *controller=nullptr)
 ~SettingGroup ()
template<class Assignee, class Value>
void controlAssignment (const Char *description, Assignee &assignee, Value value) const
template<class Changeable>
void controlChange (const Char *description, void(Changeable::*change)(), Changeable &changeable) const
template<class Change, class Changeable, class Arg>
void controlChange (const Char *description, Change change, Changeable &changeable, const Arg &arg) const
template<class Change, class Changeable, class Arg1, class Arg2>
void controlChange (const Char *description, Change change, Changeable &changeable, const Arg1 &arg1, const Arg2 &arg2) const

Friends

class HandlerSettings

Additional Inherited Members

Static Public Member Functions inherited from SettingGroup
static const SettingGroupnull ()

Detailed Description

Set of listeners to be used by the Handler to reflect various aspects of market data processing.

Definition at line 74 of file HandlerListeners.h.

Constructor & Destructor Documentation

◆ HandlerListeners() [1/2]

HandlerListeners ( SettingChangeController * controller = nullptr)
inline

Initializes listeners with default values.

Definition at line 78 of file HandlerListeners.h.

◆ HandlerListeners() [2/2]

HandlerListeners ( const HandlerListeners & other)
inline

Re-initializes settings as copies of the other ones omitting group belonging.

Definition at line 89 of file HandlerListeners.h.

◆ ~HandlerListeners()

~HandlerListeners ( )
inline

Finalizes the instance.

Definition at line 99 of file HandlerListeners.h.

Member Function Documentation

◆ feeds() [1/2]

ChannelFeedListener * feeds ( ) const
inline

Returns an instance of ChannelFeedListener to be used by the Handler while raising feed related events.

Definition at line 131 of file HandlerListeners.h.

◆ feeds() [2/2]

HandlerListeners & feeds ( ChannelFeedListener * listener)
inline

Assigns listener for feed related events.

Assigning a null instance tells the Handler to omit invoking corresponding events.

Definition at line 150 of file HandlerListeners.h.

◆ feedsOrDefault()

ChannelFeedListener & feedsOrDefault ( ) const
inline

Returns an instance of ChannelFeedListener to be used by the Handler while raising feed related events.

If no or a null instance was previously associated, the given member returns default listener.

Definition at line 141 of file HandlerListeners.h.

◆ handler() [1/2]

HandlerListener * handler ( ) const
inline

Returns an instance of HandlerListener to be used by the Handler while raising Handler related events.

Definition at line 103 of file HandlerListeners.h.

◆ handler() [2/2]

HandlerListeners & handler ( HandlerListener * listener)
inline

Assigns listener for Handler related events.

Assigning a null instance tells the Handler to omit invoking corresponding events.

Definition at line 122 of file HandlerListeners.h.

◆ handlerOrDefault()

HandlerListener & handlerOrDefault ( ) const
inline

Returns an instance of HandlerListener to be used by the Handler while raising Handler related events.

If no or a null instance was previously associated, the given member returns default listener.

Definition at line 113 of file HandlerListeners.h.

◆ marketData() [1/2]

MarketDataListener * marketData ( ) const
inline

Returns an instance of MarketDataListener to be used by the Handler while raising market data related events.

Definition at line 159 of file HandlerListeners.h.

◆ marketData() [2/2]

HandlerListeners & marketData ( MarketDataListener * listener)
inline

Assigns listener for market data related events.

Assigning a null instance tells the Handler to omit invoking corresponding events.

Definition at line 178 of file HandlerListeners.h.

◆ marketDataOrDefault()

MarketDataListener & marketDataOrDefault ( ) const
inline

Returns an instance of MarketDataListener to be used by the Handler while raising market data related events.

If no or a null instance was previously associated, the given member returns default listener.

Definition at line 169 of file HandlerListeners.h.

◆ operator=()

HandlerListeners & operator= ( const HandlerListeners & other)
inline

Copies listeners from the given instance.

Attributes controlling value assignment are not cloned and thus only listeners are copied.

Definition at line 217 of file HandlerListeners.h.

◆ security() [1/2]

SecurityListener * security ( ) const
inline

Returns an instance of SecurityListener to be used by the Handler while raising security-related events.

Definition at line 187 of file HandlerListeners.h.

◆ security() [2/2]

HandlerListeners & security ( SecurityListener * listener)
inline

Assigns listener for security related events.

Assigning a null instance tells the Handler to omit invoking corresponding events.

Definition at line 206 of file HandlerListeners.h.

◆ securityOrDefault()

SecurityListener & securityOrDefault ( ) const
inline

Returns an instance of SecurityListener to be used by the Handler while raising security-related events.

If no or a null instance was previously associated, the given member returns default listener.

Definition at line 197 of file HandlerListeners.h.

◆ HandlerSettings

friend class HandlerSettings
friend

Definition at line 226 of file HandlerListeners.h.