libzypp  13.10.6
SrcPackage.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include "zypp/SrcPackage.h"
13 
15 namespace zypp
16 {
17 
18  IMPL_PTR_TYPE(SrcPackage);
19 
21  //
22  // METHOD NAME : SrcPackage::SrcPackage
23  // METHOD TYPE : Ctor
24  //
25  SrcPackage::SrcPackage( const sat::Solvable & solvable_r )
26  : ResObject( solvable_r )
27  {}
28 
30  //
31  // METHOD NAME : SrcPackage::~SrcPackage
32  // METHOD TYPE : Dtor
33  //
35  {}
36 
38  //
39  // SrcPackage interface forwarded to implementation
40  //
42 
43  std::string SrcPackage::sourcePkgType() const
45 
47  { return lookupLocation(); }
48 
50 } // namespace zypp
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...
static const SolvAttr arch
Definition: SolvAttr.h:54
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
Definition: Solvable.cc:171
std::string sourcePkgType() const
The type of the source rpm ("src" or "nosrc").
Definition: SrcPackage.cc:43
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
Definition: Solvable.cc:254
Interface base for resolvable objects (common data).
Definition: ResObject.h:44
OnMediaLocation location() const
location of resolvable in repo
Definition: SrcPackage.cc:46
virtual ~SrcPackage()
Dtor.
Definition: SrcPackage.cc:34
IMPL_PTR_TYPE(KeyRing)