OnixS Euronext XDP Handler for C++  1.29.2.6
Adjusting Handler's Settings
Getting Started

Handler Settings

OnixS::Euronext::XDP::Handler constructor accepts instance of the OnixS::Euronext::XDP::Settings class which defines values for various parameters which affect Handler's behavior. Below section describes role of the most important parameters used in usual cases.

Primary Settings

Directory for Log Files

By default, Handler logs all important aspects of its activity while processing market data. Therefore, it must know where on local filesystem it can store this kind of information. OnixS::Euronext::XDP::Settings::logDirectory parameter value must be defined to point the Handler in which directory it can place its log files.

Example

Following example demonstrates how to setup primary settings for the Handler:

using namespace OnixS::Euronext::XDP;

Handler* constructHandler(int serviceId)
{
    Settings settings;

    // Please, always make sure the latest versions of 
    // configuration & FAST templates are obtained from Euronext.

    settings.servicesConfigurationFile = "nyseliffectsgcurrentconfig.xml"; 
    settings.fastTemplatesFile = "UTPMD_FAST_Templates_1.3.0.xml";
    
    settings.standingDataDirectory = "StandingData";

    // Logs will be stored in 'logs' local subfolder.
    settings.logDirectory = "logs";

    settings.logSettings = LogSettings::Default
                       | LogSettings::TraceToConsole
                       | LogSettings::TraceProtocol;

    settings.logLevel = LogLevel::Debug;


    return new Handler(serviceId, settings);
}