libzypp 17.38.7
RepoVariables.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
11#ifndef ZYPP_REPO_VARIABLES_H_
12#define ZYPP_REPO_VARIABLES_H_
13
14#include <string>
17#include <zypp-core/Url.h>
18
20namespace zypp
21{
23 namespace repo
24 {
58 {
60 using VarRetriever = function<const std::string *(const std::string &)>;
61
63 std::string operator()( const std::string & value_r, VarRetriever varRetriever_r ) const;
64
66 std::string operator()( std::string && value_r, VarRetriever varRetriever_r ) const;
67 };
68
106 {
107 std::string operator()( const std::string & value_r ) const;
108
110 std::string operator()( std::string && value_r ) const;
111 };
112
120 {
121 Url operator()( const Url & url_r ) const;
122 };
123 } // namespace repo
125
128
131
134
137
138} // namespace zypp
140
141#endif
Url manipulation class.
Definition Url.h:93
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.
Definition Arch.h:173
base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString
relates: RepoVariablesStringReplacer Helper managing repo variables replaced strings
Helper managing a container of raw values with transformed representation.
Helper managing raw values with transformed representation.
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