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() )
Save and restore hardlocks.
void setData(const Data &data_r)
Store new Data.
bool differs(const Data &lhs, const Data &rhs) const
Helper testing whether two Data differ.
const Data & data() const
Return the data.
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.
const Pathname & file() const
Return the file path.
pool::PoolTraits::HardLockQueries Data
scoped_ptr< Data > _dataPtr
friend std::ostream & operator<<(std::ostream &str, const HardLocksFile &obj)
HardLocksFile(const Pathname &file_r)
Ctor taking the file to read/write.
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.
std::list< PoolQuery > HardLockQueries
hard locks from etc/zypp/locks
#define for_(IT, BEG, END)
Convenient for-loops using iterator.