12 #ifndef ZYPP_TARGET_SOLVIDENTFILE_H
13 #define ZYPP_TARGET_SOLVIDENTFILE_H
37 typedef std::unordered_set<IdString>
Data;
46 const Pathname &
file()
const
86 if ( lhs.size() != rhs.size() )
88 for_( it, lhs.begin(), lhs.end() )
90 if ( rhs.find( *it ) == rhs.end() )
96 static void load(
const Pathname & file_r,
Data & data_r );
98 static void store(
const Pathname & file_r,
const Data & data_r );
115 #endif // ZYPP_TARGET_SOLVIDENTFILE_H
friend std::ostream & operator<<(std::ostream &str, const SolvIdentFile &obj)
void setData(const Data &data_r)
Store new Data.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
SolvIdentFile(const Pathname &file_r)
Ctor taking the file to read/write.
const Data & data() const
Return the data.
static void store(const Pathname &file_r, const Data &data_r)
Write Data to file_r.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Save and restore a list of solvable names (ident IdString)
bool differs(const Data &lhs, const Data &rhs) const
Helper testing whether two Data differ.
static void load(const Pathname &file_r, Data &data_r)
Read Data from file_r.
std::unordered_set< IdString > Data
scoped_ptr< Data > _dataPtr
const Pathname & file() const
Return the file path.