userver
C++ Async Framework (beta)
Loading...
Searching...
No Matches
userver
yaml_config
merge_schemas.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <
userver/yaml_config/schema.hpp
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
yaml_config
{
11
12
namespace
impl {
13
14
void
Merge
(Schema& destination, Schema&& source);
15
16
}
// namespace impl
17
21
template
<
typename
ParentComponent>
22
Schema
MergeSchemas
(
const
std::string& yaml_string) {
23
auto
schema = impl::SchemaFromString(yaml_string);
24
impl::Merge(schema, ParentComponent::GetStaticConfigSchema());
25
return
schema;
26
}
27
28
}
// namespace yaml_config
29
30
USERVER_NAMESPACE_END
Generated on Tue Mar 14 2023 16:21:23 for userver by
Doxygen
1.9.6