C++ Server-Side SDK
LaunchDarkly SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
launchdarkly::server_side::data_interfaces::IDestination Class Referenceabstract

IDestination represents a sink for data received by the SDK. A destination may be a database, local file, etc. More...

#include <idestination.hpp>

Inheritance diagram for launchdarkly::server_side::data_interfaces::IDestination:
Inheritance graph
[legend]

Public Member Functions

virtual void Init (data_model::SDKDataSet data_set)=0
 Initialize the destination with a base set of data.
 
virtual void Upsert (std::string const &key, data_model::FlagDescriptor flag)=0
 Upsert a flag named by key.
 
virtual void Upsert (std::string const &key, data_model::SegmentDescriptor segment)=0
 Upsert a segment named by key.
 
virtual std::string const & Identity () const =0
 
 IDestination (IDestination const &item)=delete
 
 IDestination (IDestination &&item)=delete
 
IDestinationoperator= (IDestination const &)=delete
 
IDestinationoperator= (IDestination &&)=delete
 

Detailed Description

IDestination represents a sink for data received by the SDK. A destination may be a database, local file, etc.

Member Function Documentation

◆ Identity()

virtual std::string const & launchdarkly::server_side::data_interfaces::IDestination::Identity ( ) const
pure virtual

◆ Init()

virtual void launchdarkly::server_side::data_interfaces::IDestination::Init ( data_model::SDKDataSet  data_set)
pure virtual

Initialize the destination with a base set of data.

Parameters
data_setThe initial data received by the SDK.

Implemented in launchdarkly::server_side::data_components::ChangeNotifier, launchdarkly::server_side::data_components::JsonDestination, and launchdarkly::server_side::data_components::MemoryStore.

◆ Upsert() [1/2]

virtual void launchdarkly::server_side::data_interfaces::IDestination::Upsert ( std::string const &  key,
data_model::FlagDescriptor  flag 
)
pure virtual

◆ Upsert() [2/2]

virtual void launchdarkly::server_side::data_interfaces::IDestination::Upsert ( std::string const &  key,
data_model::SegmentDescriptor  segment 
)
pure virtual

The documentation for this class was generated from the following file: