Broadcast C++ Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
Event.h
1 #ifndef __EVENT_H__
2 #define __EVENT_H__
3 
4 #include <string>
5 #include <vector>
6 #include "Error.h"
7 #include "FdsfeApi.h"
8 
9 namespace FactSet {
10  namespace Datafeed {
11  struct EventImpl;
12  class FDSFE_API Event {
13  public:
19  enum EventType {
20  // Events are spawned after:
21  STOP,
23  CONNECTION_CHANGED,
24  CONNECTION_RECOVERY,
32  CONNECT,
43  /*SET_RECOVERY_CB, // set_recovery_cb_async()
44  RECOVER, // recover_async()*/
45  COUNT
46  };
47 
51  static std::string to_string(EventType type);
52 
53  Event();
54 
55  Event(const Event& other);
56 
57  Event& operator=(const Event& other);
58 
59  ~Event();
60 
66  const Error& error() const;
67 
70  EventType type() const;
71 
74  std::string id() const;
75 
119  std::string get_value(const std::string& key) const;
120 
125  std::string all_values() const;
126 
127  private:
128  friend struct EventImpl;
129  EventImpl *m_impl;
130  };
131  } // namespace FactSet
132 } // namespace Datafeed
133 #endif
FEConsumer::authenticate_async()
Definition: Event.h:22
FEConsumer::subscribe_async()
Definition: Event.h:39
FEConsumer::stop_async()
Definition: Event.h:21
Definition: Event.h:12
EventType
Set of possible event types.
Definition: Event.h:19
FEConsumer::disconnect_async()
Definition: Event.h:37
FEConsumer::unsubscribe_async()
Definition: Event.h:40
FEConsumer::request_file_async()
Definition: Event.h:41
FEConsumer::subscribe() or FEConsumer::subscribe_async() with snapshots.
Definition: Event.h:42
Definition: Error.h:10
FEConsumer::log_in_async()
Definition: Event.h:38