- Create the cache directly from the schema (installed) file.
[platform/upstream/libzypp.git] / zypp / Script.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Script.cc
10  *
11 */
12 #include "zypp/Script.h"
13
14 using namespace std;
15
16 ///////////////////////////////////////////////////////////////////
17 namespace zypp
18 { /////////////////////////////////////////////////////////////////
19
20   ///////////////////////////////////////////////////////////////////
21   //
22   //    METHOD NAME : Script::Script
23   //    METHOD TYPE : Ctor
24   //
25   Script::Script( const NVRAD & nvrad_r )
26   : ResObject( TraitsType::kind, nvrad_r )
27   {}
28
29   ///////////////////////////////////////////////////////////////////
30   //
31   //    METHOD NAME : Script::~Script
32   //    METHOD TYPE : Dtor
33   //
34   Script::~Script()
35   {}
36
37   ///////////////////////////////////////////////////////////////////
38   //
39   //    Script interface forwarded to implementation
40   //
41   ///////////////////////////////////////////////////////////////////
42
43   Pathname Script::do_script() const
44   { return pimpl().do_script(); }
45
46   Pathname Script::undo_script() const
47   { return pimpl().undo_script(); }
48
49   bool Script::undo_available() const
50   { return pimpl().undo_available(); }
51
52   /////////////////////////////////////////////////////////////////
53 } // namespace zypp
54 ///////////////////////////////////////////////////////////////////