55 , stores_(other.stores_)
56 , licenseString_(other.licenseString_)
64 stores.push_back(value);
74 stores.push_back(value);
96 return licenseString_;
102 controlChange(
"Handler Settings", &LicenseSettings::assignNoControl, *
this, other);
110 stores_ = other.stores_;
111 licenseString_ = other.licenseString_;
114 LicenseStores stores_;
115 std::string licenseString_;
129 , session_(controller)
131 , bookManagement_(controller)
132 , recoveryQueueMaxSize_(1000000)
134 , logging_(controller)
135 , listeners_(controller)
136 , licenseSettings_(controller)
146 , channel_(other.channel_)
147 , feeds_(other.feeds_)
148 , session_(other.session_)
149 , tradeProcessing_(other.tradeProcessing_)
150 , bookManagement_(other.bookManagement_)
151 , recoveryQueueMaxSize_(other.recoveryQueueMaxSize_)
152 , instrumentCache_(other.instrumentCache_)
153 , logging_(other.logging_)
154 , listeners_(other.listeners_)
155 , licenseSettings_(other.licenseSettings_)
156 , configurationFile_(other.configurationFile_)
157 , dataCenter_(other.dataCenter_)
182 return configurationFile_;
216 const std::string& configurationFile,
221 "Connectivity Configuration File",
222 &HandlerSettings::assignConnectivityConfiguration,
270 return tradeProcessing_;
284 return bookManagement_;
290 return bookManagement_;
306 return recoveryQueueMaxSize_;
313 controlAssignment(
"Recovery Queue Max Size", recoveryQueueMaxSize_, queueMaxSize);
335 return instrumentCache_;
372 return licenseSettings_;
378 return licenseSettings_;
381#if !defined(ONIXS_CMEMDH_NO_DEPRECATED)
390 return logging_.debug();
400 return logging_.debug();
408 controlChange(
"Handler Settings", &HandlerSettings::assignNoControl, *
this, other);
423 UInt32 recoveryQueueMaxSize_;
424 std::string instrumentCache_;
432 std::string configurationFile_;
438 channel_ = other.channel_;
440 feeds_.assignNoControl(other.feeds_);
444 tradeProcessing_ = other.tradeProcessing_;
446 bookManagement_.assignNoControl(other.bookManagement_);
448 recoveryQueueMaxSize_ = other.recoveryQueueMaxSize_;
450 instrumentCache_ = other.instrumentCache_;
452 logging_.assignNoControl(other.logging_);
454 listeners_.assignNoControl(other.listeners_);
456 licenseSettings_.assignNoControl(other.licenseSettings_);
458 configurationFile_ = other.configurationFile_;
460 dataCenter_ = other.dataCenter_;
464 void assignConnectivityConfiguration(
const std::string& configurationFile, DataCenter::Enum dataCenter)
466 configurationFile_ = configurationFile;
468 dataCenter_ = dataCenter;
481 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_NULLPTR
#define ONIXS_CMEMDH_EXPORTED
Parameters affecting book management machinery.
Handler's configuration settings.
HandlerDebugLoggingSettings & debugLogging()
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.
HandlerSettings & operator=(const HandlerSettings &other)
Re-initializes as a copy of the other one.
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)
const HandlerDebugLoggingSettings & debugLogging() const
~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.
HandlerSettings & recoveryQueueMaxSize(UInt32 queueMaxSize)
BookManagement & bookManagement()
Reference to parameters affecting book management.
const std::string & connectivityConfigurationFile() const
Path to the connectivity configuration file.
UInt32 recoveryQueueMaxSize() const
HandlerSettings & channel(ChannelId value)
Identifies CME market data channel.
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)
Defines how trades are processed.
DataCenter::Enum dataCenter() const
HandlerSettings & instrumentCache(const std::string &filename)
License configuration settings.
LicenseSettings & operator=(const LicenseSettings &other)
Re-initializes as a copy of the other one.
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)
Assigns the license string.
LicenseSettings & licenseStore(const std::string &value)
Assigns the path to the folder that contains license file(s).
friend class HandlerSettings
const LicenseStores & licenseStores() const
Returns the folders that contain license file(s).
LicenseSettings & addLicenseStore(const std::string &value)
Adds the path to the folder that contains license file(s).
std::vector< std::string > LicenseStores
Folders that contain license file(s).
void assignNoControl(const SessionSettings &other)
void controlAssignment(const Char *description, Assignee &assignee, Value value) const
SettingGroup(SettingChangeController *controller=nullptr)
void controlChange(const Char *description, void(Changeable::*change)(), Changeable &changeable) const
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
std::string makeInstrumentCacheFilename(ChannelId)
Makes filename for instrument cache for the given channel.
DebugLoggingSettings HandlerDebugLoggingSettings
UInt32 ChannelId
Identifies CME channel.
Defines different ways trades are processed.