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  // and ../../cpp_toolkit_c_wrapper/include/Event_C.h
21  enum EventType {
22  // Events are spawned after:
23  STOP,
25  CONNECTION_CHANGED,
26  CONNECTION_RECOVERY,
34  CONNECT,
48  COUNT
49  };
50 
54  static std::string to_string(EventType type);
55 
56  Event();
57 
58  Event(const Event& other);
59 
60  Event& operator=(const Event& other);
61 
62  ~Event();
63 
69  const Error& error() const;
70 
73  EventType type() const;
74 
77  const std::string& id() const;
78 
83  bool has_value(const std::string& key) const;
84 
85  //Changes to this documentation should be copied over to the C# Wrapper Event.cs and C wrapper Event_C.h
86  //Really, all documentation changes should, but this one seems important
146  const std::string& get_value(const std::string& key) const;
147 
152  const std::string& all_values() const;
153 
154  private:
155  friend struct EventImpl;
156  EventImpl *m_impl;
157  };
158  } // namespace FactSet
159 } // namespace Datafeed
160 #endif
FEConsumer::authenticate_async()
Definition: Event.h:24
FEConsumer::subscribe_async()
Definition: Event.h:41
FEConsumer::stop_async()
Definition: Event.h:23
FEConsumer::request_snapshot_async()
Definition: Event.h:47
FEConsumer::recover() or FEConsumer::recover_async()
Definition: Event.h:46
Definition: Event.h:12
FEConsumer::recover_async()
Definition: Event.h:45
EventType
Set of possible event types.
Definition: Event.h:21
FEConsumer::disconnect_async()
Definition: Event.h:39
FEConsumer::unsubscribe_async()
Definition: Event.h:42
FEConsumer::request_file_async()
Definition: Event.h:43
FEConsumer::subscribe() or FEConsumer::subscribe_async() with snapshots.
Definition: Event.h:44
Definition: Error.h:10
FEConsumer::log_in_async()
Definition: Event.h:40