55 , stores_(other.stores_)
56 , licenseString_(other.licenseString_)
63 LicenseStores stores = stores_;
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();
403 #endif // ONIXS_CMEMDH_NO_DEPRECATED 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);
SessionSettings & session()
Settings affecting processing session.
Handler's configuration settings.
const LicenseSettings & licenseSettings() const
Settings affecting licensing.
HandlerSettings(SettingChangeController *controller=nullptr)
Initializes parameters with default values.
const std::string & instrumentCache() const
Path to the file where the Handler must store security definitions for further use instead of a live ...
const std::string & connectivityConfigurationFile() const
Path to the connectivity configuration file.
const SessionSettings & session() const
Settings affecting processing session.
To optimally service customers and meet regulatory requirements for out-of-region recovery capabiliti...
HandlerSettings & recoveryQueueMaxSize(UInt32 queueMaxSize)
Maximum number of packets to be hold in the internal queue used by the Handler while processing incom...
#define ONIXS_CMEMDH_NULLPTR
UInt32 ChannelId
Identifies CME channel.
LicenseSettings & licenseString(const std::string &value)
Assigns the license string.
~HandlerSettings()
Cleans everything up.
void assignNoControl(const SessionSettings &other)
Re-initializes the instance as a copy of the other one and bypassing assignment control.
const BookManagement & bookManagement() const
Reference to parameters affecting book management.
HandlerSettings & instrumentCache(const std::string &filename)
Defines path to a file to be used as instrument definition cache.
HandlerSettings & channel(ChannelId value)
Identifies CME market data channel.
The collection of settings affecting use of logging subsystem by the Handler.
HandlerSettings & tradeProcessing(TradeProcessing::Enum strategy)
Defines how trades are processed.
#define ONIXS_CMEMDH_LTWT
LicenseSettings(SettingChangeController *controller=nullptr)
Initializes listeners with default values.
const HandlerListeners & listeners() const
Listeners associated with the Handler.
void controlAssignment(const Char *description, Assignee &assignee, Value value) const
Guarded assignment of the given value to the given variable.
Parameters affecting what's logged at a debug level.
const std::string & licenseString() const
Returns the license string.
bool value(Number &number, const MultiContainer &container, Tag tag)
Finds a tag-value entry in the given collection by the given tag and returns its value component tran...
LicenseSettings & operator=(const LicenseSettings &other)
Re-initializes as a copy of the other one.
HandlerSettings & operator=(const HandlerSettings &other)
Re-initializes as a copy of the other one.
LicenseSettings(const LicenseSettings &other)
Re-initializes settings as copies of the other ones omitting group belonging.
Enum
To optimally service customers and meet regulatory requirements for out-of-region recovery capabiliti...
std::string makeInstrumentCacheFilename(ChannelId)
Makes filename for instrument cache for the given channel.
LicenseSettings & licenseSettings()
Settings affecting licensing.
const LicenseStores & licenseStores() const
Returns the folders that contain license file(s).
std::vector< std::string > LicenseStores
Folders that contain license file(s).
BookManagement & bookManagement()
Reference to parameters affecting book management.
UInt32 recoveryQueueMaxSize() const
Maximum number of packets transmitted via incremental feed to be hold in internal queue while market ...
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
HandlerSettings & connectivityConfigurationFile(const std::string &configurationFile, DataCenter::Enum dataCenter=DataCenter::Primary)
Path to the connectivity configuration file from which to load feed connection settings.
DataCenter::Enum dataCenter() const
Identifies the data center whose parameters are to be extracted from the connectivity configuration f...
Base services for settings grouped by a certain criteria.
Basic set of parameters affecting behavior of the Handler when the market data processing is performe...
HandlerListeners & listeners()
Listeners associated with the Handler.
FeedSettings & feeds()
Reference to parameters related with feeds.
const HandlerDebugLoggingSettings & debugLogging() const
Parameters affecting logging at debug level.
HandlerSettings(const HandlerSettings &other)
Initializes the instance as a copy of the other one.
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
Set of listeners to be used by the Handler to reflect various aspects of market data processing...
const FeedSettings & feeds() const
Reference to parameters related with feeds.
LoggingSettings & logging()
Settings affecting logging.
The parameters affecting all feeds involved into market data processing.
Represents a service controlling change/update operations for the collections of settings.
LicenseSettings & licenseStore(const std::string &value)
Assigns the path to the folder that contains license file(s).
Parameters affecting book management machinery.
const LoggingSettings & logging() const
Settings affecting logging.
TradeProcessing::Enum tradeProcessing() const
Indicates how trades are processed.
License configuration settings.
void controlChange(const Char *description, void(Changeable::*change)(), Changeable &changeable) const
Guarded invoke of the given routine which assumes complex change or update for the given object...
Defines different ways trades are processed.
ChannelId channel() const
Identifies CME market data channel.
HandlerDebugLoggingSettings & debugLogging()
Parameters affecting logging at debug level.
LicenseSettings & addLicenseStore(const std::string &value)
Adds the path to the folder that contains license file(s).
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
#define ONIXS_CMEMDH_NAMESPACE_END