lintel
0.2.0
Loading...
Searching...
No Matches
src
include
lintel
app
ConfigurationComponentBuilder.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
#include <vector>
5
6
#include "
lintel/core/configuration/Component.h
"
7
#include "
lintel/core/configuration/EnvironmentConfiguration.h
"
8
9
10
namespace
lintel
{
12
class
ConfigurationComponentBuilder
13
{
14
private
:
16
std::vector<std::shared_ptr<Component>> m_components;
17
18
public
:
21
ConfigurationComponentBuilder
(
const
std::shared_ptr<EnvironmentConfiguration> &environmentConfiguration);
22
24
~ConfigurationComponentBuilder
() =
default
;
25
28
void
add
(std::shared_ptr<Component> &&component);
29
32
void
add
(
const
std::shared_ptr<Component> &component);
33
36
[[nodiscard]]
const
std::vector<std::shared_ptr<Component>> &
build
();
37
};
38
}
// namespace lintel
Component.h
EnvironmentConfiguration.h
lintel::ConfigurationComponentBuilder
Definition
ConfigurationComponentBuilder.h:13
lintel::ConfigurationComponentBuilder::add
void add(std::shared_ptr< Component > &&component)
lintel::ConfigurationComponentBuilder::build
const std::vector< std::shared_ptr< Component > > & build()
lintel::ConfigurationComponentBuilder::ConfigurationComponentBuilder
ConfigurationComponentBuilder(const std::shared_ptr< EnvironmentConfiguration > &environmentConfiguration)
lintel::ConfigurationComponentBuilder::add
void add(const std::shared_ptr< Component > &component)
lintel::ConfigurationComponentBuilder::~ConfigurationComponentBuilder
~ConfigurationComponentBuilder()=default
lintel
Definition
BaseFeature.h:6
Generated by
1.9.8