12 #ifndef ZYPP_TARGET_REQUESTEDLOCALESFILE_H
13 #define ZYPP_TARGET_REQUESTEDLOCALESFILE_H
46 const Pathname &
file()
const
84 if ( lhs.size() != rhs.size() )
86 for_( it, lhs.begin(), lhs.end() )
88 if ( rhs.find( *it ) == rhs.end() )
94 static void load(
const Pathname & file_r,
LocaleSet & locales_r );
96 static void store(
const Pathname & file_r,
const LocaleSet & locales_r );
113 #endif // ZYPP_TARGET_REQUESTEDLOCALESFILE_H
Save and restore locale set from file.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
static void load(const Pathname &file_r, LocaleSet &locales_r)
Read LocaleSet from file_r.
const Pathname & file() const
Return the file path.
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.
bool differs(const LocaleSet &lhs, const LocaleSet &rhs) const
Helper testing whether two LocaleSet differ.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
RequestedLocalesFile(const Pathname &file_r)
Ctor taking the file to read/write.
const LocaleSet & locales() const
Return the loacale set.
friend std::ostream & operator<<(std::ostream &str, const RequestedLocalesFile &obj)
scoped_ptr< LocaleSet > _localesPtr
std::unordered_set< Locale > LocaleSet