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