ff48aa994458c04fe592d4ec148cae74b303a1ab
[platform/upstream/libzypp.git] / zypp / Package.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/Package.h
10  *
11 */
12 #ifndef ZYPP_PACKAGE_H
13 #define ZYPP_PACKAGE_H
14
15 #include "zypp/ResObject.h"
16 #include "zypp/detail/PackageImplIf.h"
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 { /////////////////////////////////////////////////////////////////
21
22   ///////////////////////////////////////////////////////////////////
23   //
24   //    CLASS NAME : Package
25   //
26   /** Package interface.
27   */
28   class Package : public ResObject
29   {
30   public:
31     typedef Package                         Self;
32     typedef detail::PackageImplIf           Impl;
33     typedef base::intrusive_ptr<Self>       Ptr;
34     typedef base::intrusive_ptr<const Self> constPtr;
35
36   public:
37     /** */
38     // data here:
39
40   protected:
41     /** Ctor */
42     Package( const std::string & name_r,
43              const Edition & edition_r,
44              const Arch & arch_r );
45     /** Dtor */
46     virtual ~Package();
47
48   private:
49     /** Access implementation */
50     virtual Impl & pimpl() = 0;
51     /** Access implementation */
52     virtual const Impl & pimpl() const = 0;
53   };
54   ///////////////////////////////////////////////////////////////////
55
56   /////////////////////////////////////////////////////////////////
57 } // namespace zypp
58 ///////////////////////////////////////////////////////////////////
59 #endif // ZYPP_PACKAGE_H