11#ifndef ZYPP_REPO_VARIABLES_H_
12#define ZYPP_REPO_VARIABLES_H_
60 using VarRetriever = function<
const std::string *(
const std::string &)>;
107 std::string
operator()(
const std::string & value_r )
const;
110 std::string
operator()( std::string && value_r )
const;
Easy-to use interface to the ZYPP dependency resolver.
base::ValueTransform< Url, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrl
relates: RepoVariablesUrlReplacer Helper managing repo variables replaced urls
base::ContainerTransform< std::list< Url >, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrlList
relates: RepoVariablesUrlReplacer Helper managing repo variables replaced url lists
base::ContainerTransform< std::list< std::string >, repo::RepoVariablesStringReplacer > RepoVariablesReplacedStringList
relates: RepoVariablesStringReplacer Helper managing repo variables replaced string lists
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString
relates: RepoVariablesStringReplacer Helper managing repo variables replaced strings
Functor expanding repo variables in a string.
function< const std::string *(const std::string &)> VarRetriever
Function taking a variable name and returning a pointer to the variable value or nullptr if unset.
std::string operator()(const std::string &value_r, VarRetriever varRetriever_r) const
Return a copy of value_r with embedded variables expanded.
Functor replacing repository variables.
std::string operator()(const std::string &value_r) const
Functor replacing repository variables.
Url operator()(const Url &url_r) const