11#ifndef ZYPP_REPO_VARIABLES_H_
12#define ZYPP_REPO_VARIABLES_H_
15#include <zypp/base/Function.h>
60 typedef function<
const std::string * (
const std::string & )>
VarRetriever;
107 std::string
operator()(
const std::string & value_r )
const;
110 std::string
operator()( std::string && value_r )
const;
base::ContainerTransform< std::list< Url >, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrlList
Helper managing repo variables replaced url lists.
base::ValueTransform< Url, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrl
Helper managing repo variables replaced urls.
base::ContainerTransform< std::list< std::string >, repo::RepoVariablesStringReplacer > RepoVariablesReplacedStringList
Helper managing repo variables replaced string lists.
base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString
Helper managing repo variables replaced strings.
Easy-to use interface to the ZYPP dependency resolver.
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