12 #ifndef ZYPP_TARGET_HARDLOCKSFILE_H 13 #define ZYPP_TARGET_HARDLOCKSFILE_H 17 #include <zypp/base/PtrTypes.h> 19 #include <zypp/Pathname.h> 93 if ( lhs.size() != rhs.size() )
97 Data::const_iterator rit = rhs.begin();
98 for_( it, lhs.begin(), lhs.end() )
126 #endif // ZYPP_TARGET_HARDLOCKSFILE_H bool differs(const Data &lhs, const Data &rhs) const
Helper testing whether two Data differ.
static void store(const Pathname &file_r, const Data &data_r)
Write Data to file_r.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
String related utilities and Regular expression matching.
void setData(const Data &data_r)
Store new Data.
const Pathname & file() const
Return the file path.
std::list< PoolQuery > HardLockQueries
hard locks from etc/zypp/locks
static void load(const Pathname &file_r, Data &data_r)
Read Data from file_r.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
HardLocksFile(const Pathname &file_r)
Ctor taking the file to read/write.
pool::PoolTraits::HardLockQueries Data
const Data & data() const
Return the data.
friend std::ostream & operator<<(std::ostream &str, const HardLocksFile &obj)
Easy-to use interface to the ZYPP dependency resolver.
Save and restore hardlocks.
scoped_ptr< Data > _dataPtr