Broadcast C++ Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
FEConsumerOptions.h
1 #ifndef __FECONSUMER_OPTIONS_H__
2 #define __FECONSUMER_OPTIONS_H__
3 
4 #include <iostream>
5 #include "FdsfeApi.h"
6 
7 namespace FactSet {
8 namespace Datafeed {
9 
10 struct FEConsumerOptionsImpl;
11 
12 class FDSFE_API FEConsumerOptions {
13  public:
14 
15  enum Mode {
16  SERVER, // live data from server
17  REPLAY // recorded data from file.
18  };
19 
22  FEConsumerOptions& operator=(const FEConsumerOptions& other);
24 
25  FEConsumerOptions& set_worker_count(int value);
26  FEConsumerOptions& set_enable_compression(bool value);
27  FEConsumerOptions& set_high_watermark(int value);
28  FEConsumerOptions& set_data_channel_heartbeat_interval(int value);
29  FEConsumerOptions& set_data_channel_heartbeat_timeout(int value);
30  FEConsumerOptions& set_data_channel_heartbeat_ttl(int value);
31  FEConsumerOptions& set_mode(Mode mode, std::string host="");
32 
33  bool get_worker_count(int& value_out) const;
34  bool get_enable_compression(bool& value_out) const;
35  bool get_high_watermark(int& value_out) const;
36  bool get_data_channel_heartbeat_interval(int& value_out) const;
37  bool get_data_channel_heartbeat_timeout(int& value_out) const;
38  bool get_data_channel_heartbeat_ttl(int& value_out) const;
39  bool get_mode(Mode& value_out) const;
40  bool get_replay_host(std::string& value_out) const;
41  private:
42  friend struct FEConsumerOptionsImpl;
43  FEConsumerOptionsImpl* m_impl;
44 };
45 
46 FDSFE_API std::ostream& operator<<(std::ostream& os, const FEConsumerOptions& opt);
47 
48 } // namespace Datafeed
49 } // namespace FactSet
50 
51 #endif
Definition: FEConsumerOptions.h:12