37 PathInfo pi( file_r );
40 WAR <<
"Can't read " << pi << endl;
46 MIL <<
"Read " << pi << endl;
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.
void readPoolQueriesFromFile(const zypp::filesystem::Pathname &file, OutputIterator out)
sends to output iterator all queries readed from file.
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.
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'.
including fstream is not hell here because this header only included by implementation file...
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
void writePoolQueriesToFile(const zypp::filesystem::Pathname &file, InputIterator begin, InputIterator end)
Writes all queries from begin to end.
pool::PoolTraits::HardLockQueries Data
static TmpFile makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
Save and restore hardlocks.
const Pathname & file() const
Return the file path.
scoped_ptr< Data > _dataPtr