libzypp  14.36.0
RepoVariables.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
10 #ifndef ZYPP_REPO_VARIABLES_H_
11 #define ZYPP_REPO_VARIABLES_H_
12 
13 #include <string>
15 #include "zypp/Url.h"
16 
18 namespace zypp
19 {
21  namespace repo
22  {
56  struct RepoVariablesStringReplacer : public std::unary_function<const std::string &, std::string>
57  {
58  std::string operator()( const std::string & value_r ) const;
59  };
60 
67  struct RepoVariablesUrlReplacer : public std::unary_function<const Url &, Url>
68  {
69  Url operator()( const Url & url_r ) const;
70  };
71  } // namespace repo
73 
75  typedef base::ValueTransform<std::string, repo::RepoVariablesStringReplacer> RepoVariablesReplacedString;
76 
78  typedef base::ContainerTransform<std::list<std::string>, repo::RepoVariablesStringReplacer> RepoVariablesReplacedStringList;
79 
81  typedef base::ValueTransform<Url, repo::RepoVariablesUrlReplacer> RepoVariablesReplacedUrl;
82 
84  typedef base::ContainerTransform<std::list<Url>, repo::RepoVariablesUrlReplacer> RepoVariablesReplacedUrlList;
85 
86 } // namespace zypp
88 
89 #endif
base::ValueTransform< Url, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrl
Definition: RepoVariables.h:81
base::ContainerTransform< std::list< std::string >, repo::RepoVariablesStringReplacer > RepoVariablesReplacedStringList
Definition: RepoVariables.h:78
std::string operator()(const std::string &value_r) const
base::ContainerTransform< std::list< Url >, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrlList
Definition: RepoVariables.h:84
base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString
Definition: RepoVariables.h:75
Functor replacing repository variables.
Definition: RepoVariables.h:56
Functor replacing repository variables.
Definition: RepoVariables.h:67
Url operator()(const Url &url_r) const
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
Url manipulation class.
Definition: Url.h:87