libzypp: zypp/ManagedFile.h Source File

libzypp 17.25.10

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/Pathname.h>
18 #include <zypp/AutoDispose.h>
19
21 namespace zypp
22 {
23
27 typedef AutoDispose<const Pathname> ManagedFile;
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:93
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