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

enum  ConfigValue : char { Disabled = 'n' , BuiltIn = 'y' , Module = 'm' , WithValue = 'v' }
 Value for a config.
using InsertArchFlavor = std::function<bool (const std::string &, const std::string &)>
 A callback invoked for arch and flavor.
using InsertConfig
 A callback invoked for arch, flavor, config, and its value.

Public Member Functions

 CollectConfigs (const SlGit::Repo &repo, InsertArchFlavor insertArchFlavor, InsertConfig insertConfig)
 CollectConfigs constructor.
bool collectConfigs (const SlGit::Commit &commit) noexcept
 The real work function of this class.

Detailed Description

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

Member Typedef Documentation

◆ InsertConfig

Initial value:
std::function<bool (const std::string &, const std::string &,
const std::string &, const ConfigValue &)>
ConfigValue
Value for a config.
Definition CollectConfigs.h:23

A callback invoked for arch, flavor, config, and its value.

Constructor & Destructor Documentation

◆ CollectConfigs()

SlKernCVS::CollectConfigs::CollectConfigs ( const SlGit::Repo & repo,
InsertArchFlavor insertArchFlavor,
InsertConfig insertConfig )
inline

CollectConfigs constructor.

Parameters
repoKernCVS repository to search in
insertArchFlavorCallback to invoke for an arch and flavor
insertConfigCallback to invoke for a config

Member Function Documentation

◆ collectConfigs()

bool SlKernCVS::CollectConfigs::collectConfigs ( const SlGit::Commit & commit)
noexcept

The real work function of this class.

Parameters
commitThe commit to walk
Returns
true on success.

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/kerncvs/CollectConfigs.h