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  //Any changes made to this enum should be duplicated in ../../cpp_toolkit_c_sharp_wrapper/Event.cs
20  enum EventType {
21  // Events are spawned after:
22  STOP,
24  CONNECTION_CHANGED,
25  CONNECTION_RECOVERY,
33  CONNECT,
46  COUNT
47  };
48 
52  static std::string to_string(EventType type);
53 
54  Event();
55 
56  Event(const Event& other);
57 
58  Event& operator=(const Event& other);
59 
60  ~Event();
61 
67  const Error& error() const;
68 
71  EventType type() const;
72 
75  const std::string& id() const;
76 
81  bool has_value(const std::string& key) const;
82 
83  //Changes to this documentation should be copied over to the C# Wrapper Event.cs
84  //Really, all documentation changes should, but this one seems important
144  const std::string& get_value(const std::string& key) const;
145 
150  const std::string& all_values() const;
151 
152  private:
153  friend struct EventImpl;
154  EventImpl *m_impl;
155  };
156  } // namespace FactSet
157 } // namespace Datafeed
158 #endif
FEConsumer::authenticate_async()
Definition: Event.h:23
FEConsumer::subscribe_async()
Definition: Event.h:40
FEConsumer::stop_async()
Definition: Event.h:22
FEConsumer::recover() or FEConsumer::recover_async()
Definition: Event.h:45
Definition: Event.h:12
FEConsumer::recover_async()
Definition: Event.h:44
EventType
Set of possible event types.
Definition: Event.h:20
FEConsumer::disconnect_async()
Definition: Event.h:38
FEConsumer::unsubscribe_async()
Definition: Event.h:41
FEConsumer::request_file_async()
Definition: Event.h:42
FEConsumer::subscribe() or FEConsumer::subscribe_async() with snapshots.
Definition: Event.h:43
Definition: Error.h:10
FEConsumer::log_in_async()
Definition: Event.h:39