OnixS CME Drop Copy Handler C++ library  5.7.1
API documentation

Specifying License Location

Handler needs a license for successful execution. If the Handler is not able to find a valid license it will throw an exception at the initialization stage.

OnixS::CME::DropCopy::HandlerSettings structure exposes OnixS::CME::DropCopy::HandlerSettings::licenseStore parameter which allows to instruct the Handler where to look for a valid license. By default, the Handler looks for a license in the current directory for the application which uses the Handler. However, by using noted parameter, it's possible to specify another folder anywhere on filesystem.

Note
Handler looks for a valid license in the specified folder and selects the best one. If multiple license available, it will select most significant one (for example, production instead of trial if both are available).

Example

Following example demonstrates how supply license to the Handler:

using namespace OnixS::CME::DropCopy;
// Parameters for one-time initialization.
// Where to store Handler and FIX Engine logs.
initSettings.fixEngineLogDirectory = "logs";
// The folder in which the license is stored.
initSettings.licenseStore = "../../license";
// File in which FIX dialect for CME is stored.
initSettings.fixDictionaryFile = "CmeDropCopyFixDictionary.xml";
// Initializes all Handler services explicitly.
initialize(initSettings);