55 , stores_(other.stores_)
56 , licenseString_(other.licenseString_)
66 stores.push_back(value);
78 stores.push_back(value);
102 return licenseString_;
110 controlChange(
"Handler Settings", &LicenseSettings::assignNoControl, *
this, other);
118 stores_ = other.stores_;
119 licenseString_ = other.licenseString_;
122 LicenseStores stores_;
123 std::string licenseString_;
137 , session_(controller)
139 , bookManagement_(controller)
140 , recoveryQueueMaxSize_(1000000)
142 , logging_(controller)
143 , listeners_(controller)
144 , licenseSettings_(controller)
154 , channel_(other.channel_)
155 , feeds_(other.feeds_)
156 , session_(other.session_)
157 , tradeProcessing_(other.tradeProcessing_)
158 , bookManagement_(other.bookManagement_)
159 , recoveryQueueMaxSize_(other.recoveryQueueMaxSize_)
160 , instrumentCache_(other.instrumentCache_)
161 , logging_(other.logging_)
162 , listeners_(other.listeners_)
163 , licenseSettings_(other.licenseSettings_)
164 , configurationFile_(other.configurationFile_)
165 , configurationString_(other.configurationString_)
166 , dataCenter_(other.dataCenter_)
193 return configurationFile_;
200 return configurationString_;
239 "Connectivity Configuration File",
240 &HandlerSettings::assignConnectivityConfiguration,
262 "Connectivity Configuration String",
263 &HandlerSettings::assignConnectivityConfigurationString,
311 return tradeProcessing_;
327 return bookManagement_;
333 return bookManagement_;
349 return recoveryQueueMaxSize_;
358 controlAssignment(
"Recovery Queue Max Size", recoveryQueueMaxSize_, queueMaxSize);
380 return instrumentCache_;
419 return licenseSettings_;
425 return licenseSettings_;
428#if !defined(ONIXS_CMEMDH_NO_DEPRECATED)
435 HandlerDebugLoggingSettings& debugLogging()
437 return logging_.debug();
445 const HandlerDebugLoggingSettings& debugLogging()
const
447 return logging_.debug();
457 controlChange(
"Handler Settings", &HandlerSettings::assignNoControl, *
this, other);
473 std::string instrumentCache_;
481 std::string configurationFile_;
483 std::string configurationString_;
489 channel_ = other.channel_;
491 feeds_.assignNoControl(other.feeds_);
495 tradeProcessing_ = other.tradeProcessing_;
497 bookManagement_.assignNoControl(other.bookManagement_);
499 recoveryQueueMaxSize_ = other.recoveryQueueMaxSize_;
501 instrumentCache_ = other.instrumentCache_;
503 logging_.assignNoControl(other.logging_);
505 listeners_.assignNoControl(other.listeners_);
507 licenseSettings_.assignNoControl(other.licenseSettings_);
509 configurationFile_ = other.configurationFile_;
511 configurationString_ = other.configurationString_;
513 dataCenter_ = other.dataCenter_;
517 void assignConnectivityConfiguration(
const std::string& configurationFile, DataCenter::Enum dataCenter)
519 configurationFile_ = configurationFile;
521 configurationString_.clear();
523 dataCenter_ = dataCenter;
527 void assignConnectivityConfigurationString(
const std::string& configuration, DataCenter::Enum dataCenter)
529 configurationString_ = configuration;
531 configurationFile_.clear();
533 dataCenter_ = dataCenter;
546 toStr(str, settings);
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
Aggregates all book management settings used by the Handler.
Associates application-owned listeners with a Handler.
Handler's configuration settings.
HandlerSettings & connectivityConfigurationString(const std::string &configuration, DataCenter::Enum dataCenter=DataCenter::Primary)
Defines inline connectivity configuration XML from which to load feed connection settings.
LoggingSettings & logging()
Settings affecting logging.
const FeedSettings & feeds() const
Reference to parameters related with feeds.
TradeProcessing::Enum tradeProcessing() const
Indicates how trades are processed.
LicenseSettings & licenseSettings()
Settings affecting licensing.
Messaging::UInt32 recoveryQueueMaxSize() const
HandlerSettings & operator=(const HandlerSettings &other)
const std::string & connectivityConfigurationString() const
Returns the inline connectivity configuration XML.
const LoggingSettings & logging() const
Settings affecting logging.
HandlerSettings(SettingChangeController *controller=nullptr)
Initializes parameters with default values.
const LicenseSettings & licenseSettings() const
Settings affecting licensing.
HandlerSettings & connectivityConfigurationFile(const std::string &configurationFile, DataCenter::Enum dataCenter=DataCenter::Primary)
const std::string & instrumentCache() const
const SessionSettings & session() const
Settings affecting processing session.
HandlerSettings(const HandlerSettings &other)
~HandlerSettings()
Cleans everything up.
SessionSettings & session()
Settings affecting processing session.
const HandlerListeners & listeners() const
Listeners associated with the Handler.
FeedSettings & feeds()
Reference to parameters related with feeds.
BookManagement & bookManagement()
Reference to parameters affecting book management.
const std::string & connectivityConfigurationFile() const
Path to the connectivity configuration file.
HandlerSettings & recoveryQueueMaxSize(Messaging::UInt32 queueMaxSize)
HandlerSettings & channel(ChannelId value)
HandlerListeners & listeners()
Listeners associated with the Handler.
ChannelId channel() const
Identifies CME market data channel.
const BookManagement & bookManagement() const
Reference to parameters affecting book management.
HandlerSettings & tradeProcessing(TradeProcessing::Enum strategy)
DataCenter::Enum dataCenter() const
Identifies the data center selected for connectivity configuration.
HandlerSettings & instrumentCache(const std::string &filename)
License configuration settings.
LicenseSettings & operator=(const LicenseSettings &other)
LicenseSettings(SettingChangeController *controller=nullptr)
Initializes listeners with default values.
const std::string & licenseString() const
Returns the license string.
LicenseSettings(const LicenseSettings &other)
LicenseSettings & licenseString(const std::string &value)
LicenseSettings & licenseStore(const std::string &value)
friend class HandlerSettings
const LicenseStores & licenseStores() const
Returns the folders that contain license file(s).
LicenseSettings & addLicenseStore(const std::string &value)
std::vector< std::string > LicenseStores
Folders that contain license file(s).
void assignNoControl(const SessionSettings &other)
SettingGroup(SettingChangeController *controller=nullptr)
Creates a setting group that uses the specified controller.
void controlChange(const Messaging::Char *description, void(Changeable::*change)(), Changeable &changeable) const
Invokes a zero-argument member function as a guarded change.
void controlAssignment(const Messaging::Char *description, Assignee &assignee, Value value) const
Assigns a value while coordinating the change with the controller.
std::uint32_t UInt32
uInt32.
Messaging::UInt32 ChannelId
Identifies a CME MDP 3.0 market data channel.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.
std::string makeInstrumentCacheFilename(ChannelId)
Makes filename for instrument cache for the given channel.
Coordinates changes to settings that belong to a setting group.
Defines the supported levels of trade processing.
Enum
Available trade processing levels.