C++ Client-Side SDK
LaunchDarkly SDK
flag_change_event.hpp
1 #pragma once
2 
3 #include <launchdarkly/value.hpp>
4 
5 namespace launchdarkly::client_side::flag_manager {
11  public:
16  [[nodiscard]] std::string const& FlagName() const;
17 
25  [[nodiscard]] Value const& NewValue() const;
26 
33  [[nodiscard]] Value const& OldValue() const;
34 
41  [[nodiscard]] bool Deleted() const;
42 
51  FlagValueChangeEvent(std::string name, Value new_value, Value old_value);
52  FlagValueChangeEvent(std::string name, Value old_value);
53 
54  private:
55  Value new_value_;
56  Value old_value_;
57  bool deleted_;
58  std::string flag_name_;
59 };
60 
61 std::ostream& operator<<(std::ostream& out, FlagValueChangeEvent const& event);
62 
63 } // namespace launchdarkly::client_side::flag_manager
Definition: value.hpp:42
Value const & NewValue() const
Definition: flag_change_event.cpp:9
std::string const & FlagName() const
Definition: flag_change_event.cpp:5
Value const & OldValue() const
Definition: flag_change_event.cpp:13
bool Deleted() const
Definition: flag_change_event.cpp:17
FlagValueChangeEvent(std::string name, Value new_value, Value old_value)
Definition: flag_change_event.cpp:21