Files
externals/linux/include/OnixS/CME/MDP3/Initialization.h
T
2017-08-09 14:33:06 +00:00

83 lines
2.8 KiB
C++
Executable File

// 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/MDP3/Config.h"
namespace OnixS
{
namespace CME
{
namespace MDP3
{
/// Collection of attributes for one-time initialization.
struct ONIXS_CME_MDP3_API InitializationSettings
{
/// Path to the folder in which licenses are stored.
///
/// @note The default value is "./".
///
const std::string& licenseStore() const
{
return *licenseStore_;
}
void licenseStore(const std::string& value)
{
*licenseStore_ = value;
}
/// Initializes settings with default values.
InitializationSettings();
/// Cleans up all resources.
~InitializationSettings();
/// Returns the text representation.
std::string toString() const
{
std::string str;
toString(str);
return str;
}
/// Appends the text representation.
void toString(std::string&) const;
private:
Exportable<std::string> licenseStore_;
};
/// One-time initialization of market data services.
ONIXS_CME_MDP3_API
void
initialize(const InitializationSettings&);
/// Cleans up everything done by one-time initialization.
///
/// Has no effect while there's at least one instance
/// of the Handler is constructed. Thus, is to be invoked
/// when no Handler instances are allocated.
ONIXS_CME_MDP3_API void finalize();
}
}
}