12#ifndef ZYPP_TARGET_SOLVIDENTFILE_H
13#define ZYPP_TARGET_SOLVIDENTFILE_H
17#include <zypp/base/PtrTypes.h>
20#include <zypp/Pathname.h>
37 typedef std::unordered_set<IdString>
Data;
86 if ( lhs.size() != rhs.size() )
88 for_( it, lhs.begin(), lhs.end() )
90 if ( rhs.find( *it ) == rhs.end() )
Save and restore a list of solvable names (ident IdString)
static void load(const Pathname &file_r, Data &data_r)
Read Data from file_r.
const Data & data() const
Return the data.
SolvIdentFile(const Pathname &file_r)
Ctor taking the file to read/write.
friend std::ostream & operator<<(std::ostream &str, const SolvIdentFile &obj)
scoped_ptr< Data > _dataPtr
bool differs(const Data &lhs, const Data &rhs) const
Helper testing whether two Data differ.
std::unordered_set< IdString > Data
static void store(const Pathname &file_r, const Data &data_r)
Write Data to file_r.
void setData(const Data &data_r)
Store new Data.
const Pathname & file() const
Return the file path.
String related utilities and Regular expression matching.
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.