|
SlHelpers
|
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. | |
| CollectConfigs & | operator= (const CollectConfigs &)=delete |
| Deleted copy assignment operator. | |
| CollectConfigs (CollectConfigs &&)=default | |
| Defaulted move constructor. | |
| CollectConfigs & | operator= (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... | |
Class to walk the KernCVS repository and report arch, flavor and configs via callbacks passed to the constructor.
| SlKernCVS::CollectConfigs::CollectConfigs | ( | const SlGit::Commit & | commit | ) |
CollectConfigs constructor.
| commit | The commit in the KernCVS repository to walk |
|
static |
Create a CollectConfigs from the repoPath and rev.
| repoPath | Path to the KernCVS repository |
| rev | The revision in the KernCVS repository to walk |