11#ifndef ZYPP_BASE_LOCALEGUARD_H
12#define ZYPP_BASE_LOCALEGUARD_H
17#include <zypp/base/Easy.h>
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Temorarily change a locale category value.
int _category
saved category or -1 if no restore needed
NON_COPYABLE(LocaleGuard)
LocaleGuard(int category_r, const std::string &value_r="C")
Ctor saving the current locale category value.
void restore()
immediately restore the saved locale category value.
~LocaleGuard()
Dtor asserts the saved locale category value is restored.
std::string _value
saved category value
Easy-to use interface to the ZYPP dependency resolver.