OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.18.0
API documentation
PcapDataProviderSettings.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Onix Solutions Limited. All rights reserved.
3  *
4  * This software owned by Onix Solutions Limited and is protected by copyright law
5  * and international copyright treaties.
6  *
7  * Access to and use of the software is governed by the terms of the applicable ONIXS Software
8  * Services Agreement (the Agreement) and Customer end user license agreements granting
9  * a non-assignable, non-transferable and non-exclusive license to use the software
10  * for it's own data processing purposes under the terms defined in the Agreement.
11  *
12  * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13  * of this source code or associated reference material to any other location for further reproduction
14  * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15  *
16  * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17  * the terms of the Agreement is a violation of copyright law.
18  */
19 
20 #pragma once
21 
22 #include "Export.h"
23 #include "LogSettings.h"
24 #include "PcapDataProviderId.h"
25 #include "Types.h"
26 
27 #include <string>
28 
29 namespace OnixS { namespace ICE { namespace iMpact { namespace MarketData {
30 
31 /// PCAP data provider settings.
32 struct ONIXS_ICEMDH_EXPORT PcapDataProviderSettings
33 {
34  /// Path to a directory where PCAP-data is stored.
35  std::string pcapDirectory;
36 
37  /// Path to a connectivity configuration file.
39 
40  /// Max snapshot duration in seconds.
41  ///
42  /// There are two time intervals for snapshots:
43  /// - 15 seconds for active markets;
44  /// - 2 minutes for idle markets.
45  ///
46  /// By default, the value is 120 seconds.
48 
49  /// Log files are stored in this directory.
50  ///
51  /// \note Default value is \e "./" (the current directory).
52  std::string logDirectory;
53 
54  /// Template of log file name without extension.
55  ///
56  /// \note Default value is \e "PcapDataProvider".
57  std::string logFileNamePrefix;
58 
59  /// Log verbosity.
60  ///
61  /// \note Default value is LogLevels::Info.
63 
64  /// Initializes instance with default values for control parameters.
66 
67  /// Returns string representation.
68  std::string toString() const;
69 };
70 
71 }}}} // namespace OnixS::ICE::iMpact::MarketData
std::string pcapDirectory
Path to a directory where PCAP-data is stored.
std::string connectivityConfiguration
Path to a connectivity configuration file.
long long DateTime
Represents the number of nanoseconds since Jan 1st, 1970, 00:00:00 GMT.
Definition: Types.h:57