libzypp 17.35.19
|
Save and restore locale set from file. More...
#include <zypp/target/RequestedLocalesFile.h>
Public Member Functions | |
RequestedLocalesFile (Pathname file_r) | |
Ctor taking the file to read/write. | |
const Pathname & | file () const |
Return the file path. | |
const LocaleSet & | locales () const |
Return the loacale set. | |
void | setLocales (const LocaleSet &locales_r) |
Store a new locale set. | |
Private Member Functions | |
bool | differs (const LocaleSet &lhs, const LocaleSet &rhs) const |
Helper testing whether two LocaleSet differ. | |
Static Private Member Functions | |
static void | load (const Pathname &file_r, LocaleSet &locales_r) |
Read LocaleSet from file_r . | |
static void | store (const Pathname &file_r, const LocaleSet &locales_r) |
Write LocaleSet to file_r . | |
Private Attributes | |
Pathname | _file |
scoped_ptr< LocaleSet > | _localesPtr |
Friends | |
std::ostream & | operator<< (std::ostream &str, const RequestedLocalesFile &obj) |
Related Symbols | |
(Note that these are not member symbols.) | |
std::ostream & | operator<< (std::ostream &str, const RequestedLocalesFile &obj) |
Stream output. | |
Save and restore locale set from file.
Definition at line 36 of file RequestedLocalesFile.h.
|
inline |
Ctor taking the file to read/write.
Definition at line 42 of file RequestedLocalesFile.h.
|
inline |
Return the file path.
Definition at line 47 of file RequestedLocalesFile.h.
|
inline |
Return the loacale set.
The file is read once on demand. returns an empty set if the file does not exist or is not readable.
Definition at line 54 of file RequestedLocalesFile.h.
Store a new locale set.
Write the new localeset to file, unless we know it did not change. The directory containing file must exist.
Definition at line 69 of file RequestedLocalesFile.h.
|
inlineprivate |
Helper testing whether two LocaleSet differ.
Definition at line 83 of file RequestedLocalesFile.h.
|
staticprivate |
Read LocaleSet from file_r
.
Definition at line 34 of file RequestedLocalesFile.cc.
|
staticprivate |
Write LocaleSet to file_r
.
Definition at line 54 of file RequestedLocalesFile.cc.
|
friend |
Definition at line 80 of file RequestedLocalesFile.cc.
|
related |
Stream output.
Definition at line 80 of file RequestedLocalesFile.cc.
|
private |
Definition at line 100 of file RequestedLocalesFile.h.
|
mutableprivate |
Definition at line 101 of file RequestedLocalesFile.h.