37 PathInfo pi( file_r );
40 WAR <<
"Can't read " << pi << endl;
44 readPoolQueriesFromFile( file_r, std::back_inserter( data_r ) );
46 MIL <<
"Read " << pi << endl;
54 writePoolQueriesToFile( tmp.
path(), data_r.begin(), data_r.end() );
59 MIL <<
"Wrote " << PathInfo(file_r) << endl;
63 ERR <<
"Can't write " << PathInfo(tmp.
path()) << endl;
74 str << obj.
file() <<
' ';
const Data & data() const
Return the data.
int chmod(const Pathname &path, mode_t mode)
Like 'chmod'.
static void store(const Pathname &file_r, const Data &data_r)
Write Data to file_r.
String related utilities and Regular expression matching.
Provide a new empty temporary file and delete it when no longer needed.
static void load(const Pathname &file_r, Data &data_r)
Read Data from file_r.
int rename(const Pathname &oldpath, const Pathname &newpath)
Like 'rename'.
pool::PoolTraits::HardLockQueries Data
static TmpFile makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
friend std::ostream & operator<<(std::ostream &str, const HardLocksFile &obj)
Easy-to use interface to the ZYPP dependency resolver.
Save and restore hardlocks.
const Pathname & file() const
Return the file path.
scoped_ptr< Data > _dataPtr