91 , handler_(other.handler_)
92 , feeds_(other.feeds_)
93 , marketData_(other.marketData_)
94 , security_(other.security_)
124 controlAssignment(
"Handler Listener", handler_, listener ? listener : &DefaultListeners::handler());
152 controlAssignment(
"ChannelFeed Listener", feeds_, listener ? listener : &DefaultListeners::feeds());
180 controlAssignment(
"MarketData Listener", marketData_, listener ? listener : &DefaultListeners::marketData());
208 controlAssignment(
"Security Listener", security_, listener ? listener : &DefaultListeners::security());
219 controlChange(
"Handler Listeners", &HandlerListeners::assignNoControl, *
this, other);
239 handler_ = other.handler_;
240 feeds_ = other.feeds_;
242 marketData_ = other.marketData_;
243 security_ = other.security_;
256 toStr(str, listeners);
Handler's configuration settings.
MarketDataListener * marketData() const
Returns an instance of MarketDataListener to be used by the Handler while raising market data related...
HandlerListener * handler() const
Returns an instance of HandlerListener to be used by the Handler while raising Handler related events...
SecurityListener * security() const
Returns an instance of SecurityListener to be used by the Handler while raising security-related even...
#define ONIXS_CMEMDH_NULLPTR
~HandlerListeners()
Finalizes the instance.
Callbacks invoked by Handler during market data processing to reflect various stages of processing...
SecurityListener & securityOrDefault() const
Returns an instance of SecurityListener to be used by the Handler while raising security-related even...
HandlerListeners & feeds(ChannelFeedListener *listener)
Assigns listener for feed related events.
HandlerListener & handlerOrDefault() const
Returns an instance of HandlerListener to be used by the Handler while raising Handler related events...
HandlerListeners(const HandlerListeners &other)
Re-initializes settings as copies of the other ones omitting group belonging.
ChannelFeedListener & feedsOrDefault() const
Returns an instance of ChannelFeedListener to be used by the Handler while raising feed related event...
#define ONIXS_CMEMDH_LTWT
HandlerListeners & marketData(MarketDataListener *listener)
Assigns listener for market data related events.
static HandlerListener & handler()
Default listener for Handler-related events.
Callbacks invoked by Handler to expose market data entities.
static SecurityListener & security()
Default listener for security-related events.
static ChannelFeedListener & feeds()
Default listener for feed-related events.
A listener for the feed-related events in the bounds of a single Handler instance.
HandlerListeners & handler(HandlerListener *listener)
Assigns listener for Handler related events.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Base services for settings grouped by a certain criteria.
HandlerListeners & security(SecurityListener *listener)
Assigns listener for security related events.
MarketDataListener & marketDataOrDefault() const
Returns an instance of MarketDataListener to be used by the Handler while raising market data related...
std::string toStr(const HandlerListeners &listeners)
Serializes information on associated listeners.
static MarketDataListener & marketData()
Default listener for market data -related events.
#define ONIXS_CMEMDH_EXPORTED
HandlerListeners & operator=(const HandlerListeners &other)
Copies listeners from the given instance.
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
Set of listeners to be used by the Handler to reflect various aspects of market data processing...
HandlerListeners(SettingChangeController *controller=nullptr)
Initializes listeners with default values.
ChannelFeedListener * feeds() const
Returns an instance of ChannelFeedListener to be used by the Handler while raising feed related event...
Represents a service controlling change/update operations for the collections of settings.
Default listeners used by the Handler if no user-defined instances are provided.
Events raised by Handler while processing market data.
#define ONIXS_CMEMDH_NAMESPACE_END