00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00009 00010 #ifndef ZYPP_REPO_VARIABLES_H_ 00011 #define ZYPP_REPO_VARIABLES_H_ 00012 00013 #include <iosfwd> 00014 #include <string> 00015 00016 #include "zypp/Url.h" 00017 00018 namespace zypp 00019 { 00020 namespace repo 00021 { 00022 00028 struct RepoVariablesStringReplacer : public std::unary_function<std::string, std::string> 00029 { 00030 RepoVariablesStringReplacer(); 00031 00032 std::string operator()( const std::string &value ) const; 00033 00034 ~RepoVariablesStringReplacer(); 00035 }; 00036 00042 struct RepoVariablesUrlReplacer : public std::unary_function<Url, Url> 00043 { 00044 RepoVariablesUrlReplacer(); 00045 00046 Url operator()( const Url &url ) const; 00047 00048 ~RepoVariablesUrlReplacer(); 00049 }; 00050 00051 } // ns repo 00052 } // ns zypp 00053 00054 #endif 00055 00056 // vim: set ts=2 sts=2 sw=2 et ai: