12 #ifndef ZYPP_TARGET_HARDLOCKSFILE_H
13 #define ZYPP_TARGET_HARDLOCKSFILE_H
50 const Pathname &
file()
const
89 if ( lhs.size() != rhs.size() )
93 Data::const_iterator rit = rhs.begin();
94 for_( it, lhs.begin(), lhs.end() )
103 static void load(
const Pathname & file_r,
Data & data_r );
105 static void store(
const Pathname & file_r,
const Data & data_r );
122 #endif // ZYPP_TARGET_HARDLOCKSFILE_H
const Data & data() const
Return the 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.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
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
bool differs(const Data &lhs, const Data &rhs) const
Helper testing whether two Data differ.
friend std::ostream & operator<<(std::ostream &str, const HardLocksFile &obj)
Save and restore hardlocks.
const Pathname & file() const
Return the file path.
scoped_ptr< Data > _dataPtr