77 lines
2.1 KiB
C++
77 lines
2.1 KiB
C++
// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
|
|
//
|
|
// This software owned by Onix Solutions Limited [OnixS] and is
|
|
// protected by copyright law and international copyright treaties.
|
|
//
|
|
// Access to and use of the software is governed by the terms of the applicable
|
|
// OnixS Software Services Agreement (the Agreement) and Customer end user license
|
|
// agreements granting a non-assignable, non-transferable and non-exclusive license
|
|
// to use the software for it's own data processing purposes under the terms defined
|
|
// in the Agreement.
|
|
//
|
|
// Except as otherwise granted within the terms of the Agreement, copying or
|
|
// reproduction of any part of this source code or associated reference material
|
|
// to any other location for further reproduction or redistribution, and any
|
|
// amendments to this copyright notice, are expressly prohibited.
|
|
//
|
|
// Any reproduction or redistribution for sale or hiring of the Software not in
|
|
// accordance with the terms of the Agreement is a violation of copyright law.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <OnixS/CME/MDH/Bootstrap.h>
|
|
|
|
ONIXS_CMEMDH_NAMESPACE_BEGIN
|
|
|
|
/// Collection of attributes for one-time initialization.
|
|
ONIXS_CMEMDH_LTWT_CLASS
|
|
InitializationSettings
|
|
{
|
|
public:
|
|
/// Initializes settings with default values.
|
|
InitializationSettings()
|
|
: licenseStore_("./")
|
|
{
|
|
}
|
|
|
|
/// Cleans up all resources.
|
|
~InitializationSettings()
|
|
{
|
|
}
|
|
|
|
/// Path to the folder where license
|
|
/// manager should look for a valid license.
|
|
///
|
|
/// @note The default value is "./".
|
|
///
|
|
const
|
|
std::string&
|
|
licenseStore() const
|
|
{
|
|
return licenseStore_;
|
|
}
|
|
|
|
/// Updates path to the folder where license
|
|
/// manager should look for a valid license.
|
|
void
|
|
licenseStore(
|
|
const std::string& value)
|
|
{
|
|
licenseStore_ = value;
|
|
}
|
|
|
|
private:
|
|
std::string licenseStore_;
|
|
};
|
|
|
|
/// One-time initialization of market data services.
|
|
ONIXS_CMEMDH_EXPORTED
|
|
void
|
|
initialize(
|
|
const InitializationSettings&);
|
|
|
|
ONIXS_CMEMDH_NAMESPACE_END
|