/
ManagedFile.h
32 lines (27 loc) · 1.21 KB
/
ManagedFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*---------------------------------------------------------------------\
| ____ _ __ __ ___ |
| |__ / \ / / . \ . \ |
| / / \ V /| _/ _/ |
| / /__ | | | | | | |
| /_____||_| |_| |_| |
| |
\---------------------------------------------------------------------*/
/** \file zypp/ManagedFile.h
*
*/
#ifndef ZYPP_MANAGEDFILE_H
#define ZYPP_MANAGEDFILE_H
#include <iosfwd>
#include "zypp/Pathname.h"
#include "zypp/AutoDispose.h"
///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
/** A Pathname plus associated cleanup code to be executed when
* path is no longer needed.
*/
typedef AutoDispose<const Pathname> ManagedFile;
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
#endif // ZYPP_MANAGEDFILE_H