OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.17.0
API documentation
PcapDataProvider.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 "LogReplayInputStream.h"
24 #include "PcapDataProviderId.h"
26 
27 #include <string>
28 
29 namespace OnixS { namespace ICE { namespace iMpact { namespace MarketData {
30 
31 /// PCAP data provider interface.
32 class ONIXS_ICEMDH_EXPORT PcapDataProvider : public LogReplayInputStream
33 {
34 public:
35  virtual ~PcapDataProvider() {}
36 };
37 
38 /// PCAP data provider factory.
39 class ONIXS_ICEMDH_EXPORT PcapDataProviderFactory
40 {
41 public:
42  /// Creates an instance of PCAP data provider.
43  ///
44  /// \param id Data provider unique ID.
45  /// \param path Path to a location where data is stored.
46  /// \param c10y Path to a connectivity configuration file.
47  ///
48  /// \deprecated Use `PcapDataProviderSettings` to provide
49  /// PCAP data provider settings.
50  static PcapDataProvider* create(
52  , const std::string& path
53  , const std::string& c10y
54  );
55 
56  /// Creates an instance of PCAP data provider.
57  ///
58  /// \param id Data provider unique ID.
59  /// \param settings PCAP data provider settings.
60  static PcapDataProvider* create(
62  , PcapDataProviderSettings settings
63  );
64 };
65 
66 }}}} // namespace MarketData, iMpact, ICE, OnixS