lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::ConfigurationComponentBuilder Class Reference

#include <ConfigurationComponentBuilder.h>

Public Member Functions

 ConfigurationComponentBuilder (const std::shared_ptr< EnvironmentConfiguration > &environmentConfiguration)
 
 ~ConfigurationComponentBuilder ()=default
 
void add (std::shared_ptr< Component > &&component)
 
void add (const std::shared_ptr< Component > &component)
 
const std::vector< std::shared_ptr< Component > > & build ()
 

Detailed Description

Builder for assembling configuration parsing components

Constructor & Destructor Documentation

◆ ConfigurationComponentBuilder()

lintel::ConfigurationComponentBuilder::ConfigurationComponentBuilder ( const std::shared_ptr< EnvironmentConfiguration > &  environmentConfiguration)

Construct a builder with the given environment configuration

Parameters
environmentConfigurationThe environment configuration

◆ ~ConfigurationComponentBuilder()

lintel::ConfigurationComponentBuilder::~ConfigurationComponentBuilder ( )
default

Destructor

Member Function Documentation

◆ add() [1/2]

void lintel::ConfigurationComponentBuilder::add ( const std::shared_ptr< Component > &  component)

Add a component via copy

Parameters
componentThe component to add

◆ add() [2/2]

void lintel::ConfigurationComponentBuilder::add ( std::shared_ptr< Component > &&  component)

Add a component via move semantics

Parameters
componentThe component to add

◆ build()

const std::vector< std::shared_ptr< Component > > & lintel::ConfigurationComponentBuilder::build ( )

Build and return the component collection

Returns
Reference to the vector of components

The documentation for this class was generated from the following file: