libzypp 17.35.19
|
Save and restore a list of solvable names (ident IdString) More...
#include <zypp/target/SolvIdentFile.h>
Public Types | |
using | Data = std::unordered_set<IdString> |
Public Member Functions | |
SolvIdentFile (Pathname file_r) | |
Ctor taking the file to read/write. | |
const Pathname & | file () const |
Return the file path. | |
const Data & | data () const |
Return the data. | |
void | setData (const Data &data_r) |
Store new Data. | |
Private Member Functions | |
bool | differs (const Data &lhs, const Data &rhs) const |
Helper testing whether two Data differ. | |
Static Private Member Functions | |
static void | load (const Pathname &file_r, Data &data_r) |
Read Data from file_r . | |
static void | store (const Pathname &file_r, const Data &data_r) |
Write Data to file_r . | |
Private Attributes | |
Pathname | _file |
scoped_ptr< Data > | _dataPtr |
Friends | |
std::ostream & | operator<< (std::ostream &str, const SolvIdentFile &obj) |
Related Symbols | |
(Note that these are not member symbols.) | |
std::ostream & | operator<< (std::ostream &str, const SolvIdentFile &obj) |
Stream output. | |
Save and restore a list of solvable names (ident IdString)
Definition at line 34 of file SolvIdentFile.h.
using zypp::target::SolvIdentFile::Data = std::unordered_set<IdString> |
Definition at line 38 of file SolvIdentFile.h.
|
inline |
Ctor taking the file to read/write.
Definition at line 42 of file SolvIdentFile.h.
|
inline |
Return the file path.
Definition at line 47 of file SolvIdentFile.h.
|
inline |
Return the data.
The file is read once on demand. Returns empty Data if the file does not exist or is not readable.
Definition at line 54 of file SolvIdentFile.h.
Store new Data.
Write the new Data to file, unless we know it did not change. The directory containing file must exist.
Definition at line 70 of file SolvIdentFile.h.
|
inlineprivate |
Helper testing whether two Data differ.
Definition at line 84 of file SolvIdentFile.h.
Read Data from file_r
.
Definition at line 34 of file SolvIdentFile.cc.
|
staticprivate |
Write Data to file_r
.
Definition at line 54 of file SolvIdentFile.cc.
|
friend |
Definition at line 88 of file SolvIdentFile.cc.
|
related |
Stream output.
Definition at line 88 of file SolvIdentFile.cc.
|
private |
Definition at line 102 of file SolvIdentFile.h.
|
mutableprivate |
Definition at line 103 of file SolvIdentFile.h.