C++ Server-Side SDK
LaunchDarkly SDK
common
include
launchdarkly
context_builder.hpp
1
#pragma once
2
3
#include <launchdarkly/attributes_builder.hpp>
4
#include <launchdarkly/context.hpp>
5
6
#include <string>
7
8
namespace
launchdarkly {
9
62
class
ContextBuilder
final {
63
friend
AttributesBuilder<ContextBuilder, Context>
;
64
65
public
:
66
ContextBuilder
() =
default
;
67
77
ContextBuilder
(
Context
const
& context);
78
91
AttributesBuilder<ContextBuilder, Context>
&
Kind
(std::string
const
& kind,
92
std::string key);
93
101
AttributesBuilder<ContextBuilder, Context>
*
Kind
(std::string
const
& kind);
102
112
Context
Build
()
const
;
113
114
private
:
115
std::map<std::string, AttributesBuilder<ContextBuilder, Context>> builders_;
116
};
117
118
}
// namespace launchdarkly
launchdarkly::AttributesBuilder
Definition:
attributes_builder.hpp:22
launchdarkly::ContextBuilder
Definition:
context_builder.hpp:62
launchdarkly::ContextBuilder::Kind
AttributesBuilder< ContextBuilder, Context > & Kind(std::string const &kind, std::string key)
Definition:
context_builder.cpp:41
launchdarkly::ContextBuilder::Build
Context Build() const
Definition:
context_builder.cpp:56
launchdarkly::Context
Definition:
context.hpp:29
Generated by
1.9.1