SlHelpers
SlKernCVS::CollectConfigs Class Reference

Class to walk the KernCVS repository and report arch, flavor and configs via callbacks passed to the constructor. More...

#include <CollectConfigs.h>

Public Types

using ConfigMap = std::unordered_map< std::string, ConfigValue, SlHelpers::String::Hash, SlHelpers::String::Eq >
 Map of config name to config value.
 
using FlavorMap = std::unordered_map< std::string, ConfigMap, SlHelpers::String::Hash, SlHelpers::String::Eq >
 Map of flavor name to config map.
 
using ArchMap = std::unordered_map< std::string, FlavorMap, SlHelpers::String::Hash, SlHelpers::String::Eq >
 Map of arch name to flavor map.
 

Public Member Functions

 CollectConfigs (const SlGit::Commit &commit)
 CollectConfigs constructor. More...
 
 CollectConfigs (const CollectConfigs &)=delete
 Deleted copy constructor.
 
CollectConfigsoperator= (const CollectConfigs &)=delete
 Deleted copy assignment operator.
 
 CollectConfigs (CollectConfigs &&)=default
 Defaulted move constructor.
 
CollectConfigsoperator= (CollectConfigs &&)=default
 Defaulted move assignment operator.
 
const auto & getArchMap () const
 Get the arch map.
 
const auto & getFlavorMap (const std::string &arch) const
 Get the flavor map for a given arch.
 
const auto & getConfigMap (const std::string &arch, const std::string &flavor) const
 Get the config map for a given arch, flavor.
 
auto getConfig (const std::string &arch, const std::string &flavor, const std::string &config) const
 Get the config value for a given arch, flavor and config.
 
auto begin () const
 Get the archs iterator.
 
auto end () const
 Get the archs end iterator.
 

Static Public Member Functions

static CollectConfigs create (const std::filesystem::path &repoPath, const std::string &rev)
 Create a CollectConfigs from the repoPath and rev. More...
 

Detailed Description

Class to walk the KernCVS repository and report arch, flavor and configs via callbacks passed to the constructor.

Constructor & Destructor Documentation

◆ CollectConfigs()

SlKernCVS::CollectConfigs::CollectConfigs ( const SlGit::Commit commit)

CollectConfigs constructor.

Parameters
commitThe commit in the KernCVS repository to walk

Member Function Documentation

◆ create()

static CollectConfigs SlKernCVS::CollectConfigs::create ( const std::filesystem::path &  repoPath,
const std::string &  rev 
)
static

Create a CollectConfigs from the repoPath and rev.

Parameters
repoPathPath to the KernCVS repository
revThe revision in the KernCVS repository to walk

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