11 #include <launchdarkly/connection.hpp>
12 #include <launchdarkly/data_sources/data_source_status_base.hpp>
14 namespace launchdarkly::client_side::data_sources {
19 enum class DataSourceState : std::int32_t {
74 char const* GetDataSourceStateName(DataSourceState state,
75 char const* default_if_unknown);
77 using DataSourceStatus =
78 common::data_sources::DataSourceStatusBase<DataSourceState>;
122 std::ostream& operator<<(std::ostream& out,
123 DataSourceStatus::DataSourceState
const& state);
125 std::ostream& operator<<(std::ostream& out,
DataSourceStatus const& status);
Definition: data_source_status.hpp:83
virtual std::unique_ptr< IConnection > OnDataSourceStatusChangeEx(std::function< bool(data_sources::DataSourceStatus status)> handler)=0
virtual DataSourceStatus Status() const =0
virtual std::unique_ptr< IConnection > OnDataSourceStatusChange(std::function< void(data_sources::DataSourceStatus status)> handler)=0
Definition: data_source_status_base.hpp:12