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

#include <Configuration.h>

Public Member Functions

 Configuration (const std::vector< std::shared_ptr< Component > > &components, std::shared_ptr< EnvironmentConfiguration > EnvironmentConfiguration)
 
void setEntries (std::vector< std::shared_ptr< Entry > > entries)
 
template<typename COMPONENT >
std::vector< std::shared_ptr< Entry > > configurationOf ()
 

Detailed Description

General Configuration Parser

Constructor & Destructor Documentation

◆ Configuration()

lintel::Configuration::Configuration ( const std::vector< std::shared_ptr< Component > > &  components,
std::shared_ptr< EnvironmentConfiguration >  EnvironmentConfiguration 
)
explicit

Construct a Configuration parser

Parameters
componentsThe set of components used for parsing
EnvironmentConfigurationThe environment configuration

Member Function Documentation

◆ configurationOf()

template<typename COMPONENT >
std::vector< std::shared_ptr< Entry > > lintel::Configuration::configurationOf ( )
inline

Get all configuration entries for a specific component type

Template Parameters
COMPONENTThe component type to filter by
Returns
Vector of entries belonging to that component

◆ setEntries()

void lintel::Configuration::setEntries ( std::vector< std::shared_ptr< Entry > >  entries)

Set entries directly (for testing purposes)

Parameters
entriesThe entries to set

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