- Create the cache directly from the schema (installed) file.
[platform/upstream/libzypp.git] / zypp / ManagedFile.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/ManagedFile.h
10  *
11 */
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
20 ///////////////////////////////////////////////////////////////////
21 namespace zypp
22 { /////////////////////////////////////////////////////////////////
23
24   /** A Pathname plus associated cleanup code to be executed when
25    *  path is no longer needed.
26    */
27   typedef AutoDispose<const Pathname> ManagedFile;
28
29   /////////////////////////////////////////////////////////////////
30 } // namespace zypp
31 ///////////////////////////////////////////////////////////////////
32 #endif // ZYPP_MANAGEDFILE_H