3 #include <launchdarkly/data_model/descriptors.hpp> 
    7 #include <unordered_map> 
    9 namespace launchdarkly::server_side::data_interfaces {
 
   22     [[nodiscard]] 
virtual std::shared_ptr<data_model::FlagDescriptor> 
GetFlag(
 
   23         std::string 
const& key) 
const = 0;
 
   30     [[nodiscard]] 
virtual std::shared_ptr<data_model::SegmentDescriptor>
 
   37     [[nodiscard]] 
virtual std::
 
   38         unordered_map<std::string, std::shared_ptr<data_model::FlagDescriptor>>
 
   45     [[nodiscard]] 
virtual std::unordered_map<
 
   47         std::shared_ptr<data_model::SegmentDescriptor>>
 
   55     virtual ~
IStore() = 
default;
 
IStore provides shared ownership of flag and segment domain objects.
Definition: istore.hpp:15
virtual std::shared_ptr< data_model::SegmentDescriptor > GetSegment(std::string const &key) const =0
Get the segment named by key. Returns nullptr if no such flag exists.
virtual std::shared_ptr< data_model::FlagDescriptor > GetFlag(std::string const &key) const =0
Get the flag named by key. Returns nullptr if no such flag exists.
virtual std::unordered_map< std::string, std::shared_ptr< data_model::FlagDescriptor > > AllFlags() const =0
Get a map of all flags.
virtual std::unordered_map< std::string, std::shared_ptr< data_model::SegmentDescriptor > > AllSegments() const =0
Get a map of all segments.
virtual bool Initialized() const =0