32 const std::string & sysarch()
const
39 const std::string & basearch()
const
46 const std::string & releasever()
const
54 void initArchStr()
const
71 std::string replacer(
const std::string & value_r )
73 static ReplacerData
_data;
75 std::string ret( value_r );
77 ret =
str::replaceAllFun( ret,
"$arch", []()-> std::string {
return _data.sysarch(); } );
78 ret =
str::replaceAllFun( ret,
"$basearch", []()-> std::string {
return _data.basearch(); } );
79 ret =
str::replaceAllFun( ret,
"$releasever", []()-> std::string {
return _data.releasever(); } );
88 return replacer( value );
std::string getPathData() const
Returns the encoded path component of the URL.
static ZConfig & instance()
Singleton ctor.
std::string distributionVersion() const
This is version attribute of the installed base product.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
std::list< PublicKeyData > _data
std::string operator()(const std::string &value_r) const
void setPathData(const std::string &pathdata)
Set the path data component in the URL.
std::string getQueryString() const
Returns the encoded query string component of the URL.
std::string & replaceAllFun(std::string &str_r, const std::string &from_r, function< std::string()> to_r)
void setQueryString(const std::string &querystr)
Set the query string in the URL.
Url operator()(const Url &url_r) const