d8ead2cbd6db5c783985a03215bc3ff70aeba17f
[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 std::string & name_r,
26                   const Edition & edition_r,
27                   const Arch & arch_r )
28   : ResObject( ResTraits<Self>::_kind, name_r, edition_r, arch_r )
29   {}
30
31   ///////////////////////////////////////////////////////////////////
32   //
33   //    METHOD NAME : Script::~Script
34   //    METHOD TYPE : Dtor
35   //
36   Script::~Script()
37   {}
38
39   ///////////////////////////////////////////////////////////////////
40   //
41   //    Script interface forwarded to implementation
42   //
43   ///////////////////////////////////////////////////////////////////
44
45   std::string Script::do_script()
46   { return pimpl().do_script(); }
47
48   std::string Script::undo_script()
49   { return pimpl().undo_script(); }
50
51   bool Script::undo_available()
52   { return pimpl().undo_available(); }
53
54   /////////////////////////////////////////////////////////////////
55 } // namespace zypp
56 ///////////////////////////////////////////////////////////////////