libzypp: zypp-core/ManagedFile.h Source File

libzypp 17.38.11

ManagedFile.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_MANAGEDFILE_H
13#define ZYPP_MANAGEDFILE_H
14
15#include <iosfwd>
16
17#include <zypp-core/Pathname.h>
18#include <zypp-core/AutoDispose.h>
19
21namespace zypp
22{
23
27 using ManagedFile = AutoDispose<const Pathname>;
28
30} // namespace zypp
32#endif // ZYPP_MANAGEDFILE_H
AutoDispose.h
Pathname.h
zypp::AutoDispose
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition AutoDispose.h:95
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ManagedFile
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
Definition ManagedFile.h:27