libzypp  13.10.6
PackageDelta.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_SOURCE_PACKAGEDELTA_H
13 #define ZYPP_SOURCE_PACKAGEDELTA_H
14 
15 #include <iosfwd>
16 #include <list>
17 
18 #include "zypp/OnMediaLocation.h"
19 #include "zypp/Edition.h"
20 #include "zypp/Arch.h"
21 #include "zypp/Date.h"
22 
24 #include "zypp/Repository.h"
25 
27 namespace zypp
28 {
29  namespace packagedelta
31  {
32 
33 
35  class DeltaRpm
36  {
37  public:
39  {
40  public:
42  {}
43 
44  public:
45  const Edition & edition() const { return _edition; }
46  const std::string & sequenceinfo() const { return _sequenceinfo; }
47 
48  public:
49  BaseVersion & setEdition( const Edition & val_r ) { _edition = val_r; return *this; }
50  BaseVersion & setSequenceinfo( const std::string & val_r ) { _sequenceinfo = val_r; return *this; }
51 
52  private:
54  std::string _sequenceinfo;
55  };
56 
57  public:
58  DeltaRpm() {}
59  DeltaRpm( sat::LookupAttr::iterator deltaInfo_r );
60 
61  public:
64  const std::string & name() const { return _name; }
65  const Edition & edition() const { return _edition; }
66  const Arch & arch() const { return _arch; }
68  const OnMediaLocation & location() const { return _location; }
69  const BaseVersion & baseversion() const { return _baseversion; }
70  const Repository & repository() const { return _repo; }
71 
72  public:
73  DeltaRpm & setName( const std::string & val_r ) { _name = val_r; return *this; }
74  DeltaRpm & setEdition( const Edition & val_r ) { _edition = val_r; return *this; }
75  DeltaRpm & setArch( const Arch & val_r ) { _arch = val_r; return *this; }
76  DeltaRpm & setLocation( const OnMediaLocation & val_r ) { _location = val_r; return *this; }
77  DeltaRpm & setBaseversion( const BaseVersion & val_r ) { _baseversion = val_r; return *this; }
78 
79  private:
80  std::string _name;
86  };
87 
89  std::ostream & operator<<( std::ostream & str, const DeltaRpm & obj );
90 
92 
94  } // namespace packagedelta
97 } // namespace zypp
99 #endif // ZYPP_SOURCE_PACKAGEDELTA_H
const Repository & repository() const
Definition: PackageDelta.h:70
Describes a path on a certain media amongs as the information required to download it...
const BaseVersion & baseversion() const
Definition: PackageDelta.h:69
Architecture.
Definition: Arch.h:36
std::ostream & operator<<(std::ostream &str, const DeltaRpm &obj)
Edition represents [epoch:]version[-release]
Definition: Edition.h:60
DeltaRpm & setBaseversion(const BaseVersion &val_r)
Definition: PackageDelta.h:77
const Arch & arch() const
Definition: PackageDelta.h:66
const Edition & edition() const
Definition: PackageDelta.h:65
DeltaRpm & setLocation(const OnMediaLocation &val_r)
Definition: PackageDelta.h:76
BaseVersion & setSequenceinfo(const std::string &val_r)
Definition: PackageDelta.h:50
const OnMediaLocation & location() const
Definition: PackageDelta.h:68
DeltaRpm & setEdition(const Edition &val_r)
Definition: PackageDelta.h:74
DeltaRpm & setName(const std::string &val_r)
Definition: PackageDelta.h:73
const std::string & sequenceinfo() const
Definition: PackageDelta.h:46
BaseVersion & setEdition(const Edition &val_r)
Definition: PackageDelta.h:49
const std::string & name() const
Definition: PackageDelta.h:64
DeltaRpm & setArch(const Arch &val_r)
Definition: PackageDelta.h:75