lib45d
45Drives C++ Library Development Documentation
Functions
ffd_internal Namespace Reference

Namespace for internal use, not to be exposed to ffd. More...

Functions

template<class T >
get (const std::string &key, const std::unordered_map< std::string, ffd::ConfigNode > *config_map)
 Get config entry as type T from configuration map. More...
 

Detailed Description

Namespace for internal use, not to be exposed to ffd.

Function Documentation

◆ get()

template<class T >
T ffd_internal::get ( const std::string &  key,
const std::unordered_map< std::string, ffd::ConfigNode > *  config_map 
)
private

Get config entry as type T from configuration map.

Template Parameters
TType of variable to return
Parameters
keyKey to index map, from config file before '='
config_mapMap of keys to ConfigNode structs
Returns
T Value returned from config