ignore
[platform/upstream/libzypp.git] / zypp / Atom.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Atom.h
10  *
11 */
12 #ifndef ZYPP_ATOM_H
13 #define ZYPP_ATOM_H
14
15 #include "zypp/ResObject.h"
16 #include "zypp/detail/AtomImplIf.h"
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 { /////////////////////////////////////////////////////////////////
21
22   ///////////////////////////////////////////////////////////////////
23   //
24   //    CLASS NAME : Atom
25   //
26   class Atom : public ResObject
27   {
28   public:
29     typedef detail::AtomImplIf       Impl;
30     typedef Atom                     Self;
31     typedef ResTraits<Self>          TraitsType;
32     typedef TraitsType::PtrType      Ptr;
33     typedef TraitsType::constPtrType constPtr;
34
35   protected:
36     Atom( const NVRAD & nvrad_r );
37     /** Dtor */
38     virtual ~Atom();
39
40   private:
41     /** Access implementation */
42     virtual Impl & pimpl() = 0;
43     /** Access implementation */
44     virtual const Impl & pimpl() const = 0;
45   };
46
47   /////////////////////////////////////////////////////////////////
48 } // namespace zypp
49 ///////////////////////////////////////////////////////////////////
50 #endif // ZYPP_ATOM_H