12#ifndef ZYPP_TARGET_REQUESTEDLOCALESFILE_H
13#define ZYPP_TARGET_REQUESTEDLOCALESFILE_H
17#include <zypp/base/PtrTypes.h>
19#include <zypp/Pathname.h>
84 if ( lhs.size() != rhs.size() )
86 for_( it, lhs.begin(), lhs.end() )
88 if ( rhs.find( *it ) == rhs.end() )
Save and restore locale set from file.
RequestedLocalesFile(const Pathname &file_r)
Ctor taking the file to read/write.
bool differs(const LocaleSet &lhs, const LocaleSet &rhs) const
Helper testing whether two LocaleSet differ.
const LocaleSet & locales() const
Return the loacale set.
static void load(const Pathname &file_r, LocaleSet &locales_r)
Read LocaleSet from file_r.
void setLocales(const LocaleSet &locales_r)
Store a new locale set.
static void store(const Pathname &file_r, const LocaleSet &locales_r)
Write LocaleSet to file_r.
friend std::ostream & operator<<(std::ostream &str, const RequestedLocalesFile &obj)
scoped_ptr< LocaleSet > _localesPtr
const Pathname & file() const
Return the file path.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Locale > LocaleSet
#define for_(IT, BEG, END)
Convenient for-loops using iterator.