blob: cc4892e616c541aed13628fe032389ea66a15677 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "configshim.h"
namespace slobrok {
ConfigShim::ConfigShim(uint32_t port)
: _port(port),
_enableStateServer(false),
_configId(""),
_factory(config::ConfigUri::createEmpty())
{}
ConfigShim::ConfigShim(uint32_t port, const std::string& cfgId)
: _port(port),
_enableStateServer(false),
_configId(cfgId),
_factory(config::ConfigUri(_configId))
{}
ConfigShim::ConfigShim(uint32_t port, const std::string& cfgId, std::shared_ptr<config::IConfigContext> cfgCtx)
: _port(port),
_enableStateServer(false),
_configId(cfgId),
_factory(config::ConfigUri(cfgId, std::move(cfgCtx)))
{}
ConfigShim::~ConfigShim() = default;
}
|