libzypp  13.10.6
SrcPackage.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_SRCPACKAGE_H
13 #define ZYPP_SRCPACKAGE_H
14 
15 #include "zypp/ResObject.h"
16 
18 namespace zypp
19 {
20 
21  DEFINE_PTR_TYPE(SrcPackage);
22 
24  //
25  // CLASS NAME : SrcPackage
26  //
29  class SrcPackage : public ResObject
30  {
31 
32  public:
33  typedef SrcPackage Self;
37 
38  public:
40  std::string sourcePkgType() const;
41 
43  OnMediaLocation location() const;
44 
45  protected:
46  friend Ptr make<Self>( const sat::Solvable & solvable_r );
48  SrcPackage( const sat::Solvable & solvable_r );
50  virtual ~SrcPackage();
51  };
53 
55 } // namespace zypp
57 #endif // ZYPP_SRCPACKAGE_H
A Solvable object within the sat Pool.
Definition: Solvable.h:55
SrcPackage(const sat::Solvable &solvable_r)
Ctor.
Definition: SrcPackage.cc:25
Describes a path on a certain media amongs as the information required to download it...
TraitsType::PtrType Ptr
Definition: SrcPackage.h:35
TraitsType::PtrType Ptr
Definition: ResObject.h:49
std::string sourcePkgType() const
The type of the source rpm (&quot;src&quot; or &quot;nosrc&quot;).
Definition: SrcPackage.cc:43
ResTraits.
Definition: ResTraits.h:77
ResTraits< Self > TraitsType
Definition: SrcPackage.h:34
DEFINE_PTR_TYPE(KeyRing)
SrcPackage Self
Definition: SrcPackage.h:33
Interface base for resolvable objects (common data).
Definition: ResObject.h:44
SrcPackage interface.
Definition: SrcPackage.h:29
OnMediaLocation location() const
location of resolvable in repo
Definition: SrcPackage.cc:46
TraitsType::constPtrType constPtr
Definition: SrcPackage.h:36
intrusive_ptr< _Res > PtrType
Definition: ResTraits.h:80
virtual ~SrcPackage()
Dtor.
Definition: SrcPackage.cc:34
intrusive_ptr< const _Res > constPtrType
Definition: ResTraits.h:81