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

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 = std::function< bool(const std::string &, const std::string &, const std::string &, const ConfigValue &)>
 A callback invoked for arch, flavor, config, and its value.
 

Public Member Functions

 CollectConfigs (const SlGit::Repo &repo, InsertArchFlavor insertArchFlavor, InsertConfig insertConfig)
 CollectConfigs constructor. More...
 
bool collectConfigs (const SlGit::Commit &commit) noexcept
 The real work function of this class. 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::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: