libzypp: zypp-core/ManagedFile.h Source File

libzypp 17.36.6

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
21namespace zypp
22{
23
27 using ManagedFile = AutoDispose<const Pathname>;
28
30} // namespace zypp
32#endif // ZYPP_MANAGEDFILE_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 Application.cc:20
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
AutoDispose.h
Pathname.h