SlHelpers
Loading...
Searching...
No Matches
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
 Map of config name to config value.
using FlavorMap
 Map of flavor name to config map.
using ArchMap
 Map of arch name to flavor map.

Public Member Functions

 CollectConfigs (const SlGit::Commit &commit)
 CollectConfigs constructor.
 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.

Detailed Description

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

Member Typedef Documentation

◆ ArchMap

Initial value:
std::unordered_map<std::string, FlavorMap, SlHelpers::String::Hash,
std::unordered_map< std::string, ConfigMap, SlHelpers::String::Hash, SlHelpers::String::Eq > FlavorMap
Map of flavor name to config map.
Definition CollectConfigs.h:38
Equality test for string and string_view to be used in containers.
Definition String.h:250
Hash for string and string_view to be used in hashing containers.
Definition String.h:223

Map of arch name to flavor map.

◆ ConfigMap

Initial value:
std::unordered_map<std::string, ConfigValue, SlHelpers::String::Hash,

Map of config name to config value.

◆ FlavorMap

Initial value:
std::unordered_map<std::string, ConfigMap, SlHelpers::String::Hash,
std::unordered_map< std::string, ConfigValue, SlHelpers::String::Hash, SlHelpers::String::Eq > ConfigMap
Map of config name to config value.
Definition CollectConfigs.h:35

Map of flavor name to config map.

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()

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:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260608.f7d85d4-build/slhelpers-20260608.f7d85d4/include/kerncvs/CollectConfigs.h