libzypp  17.24.1
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
zypp::packagedelta::DeltaRpm::location
const OnMediaLocation & location() const
Definition: PackageDelta.h:68
Edition.h
zypp::packagedelta::DeltaRpm::setLocation
DeltaRpm & setLocation(const OnMediaLocation &val_r)
Definition: PackageDelta.h:76
zypp::packagedelta::DeltaRpm::BaseVersion::_edition
Edition _edition
Definition: PackageDelta.h:53
zypp::packagedelta::DeltaRpm::_edition
Edition _edition
Definition: PackageDelta.h:81
zypp::packagedelta::DeltaRpm::setArch
DeltaRpm & setArch(const Arch &val_r)
Definition: PackageDelta.h:75
zypp::packagedelta::DeltaRpm::_name
std::string _name
Definition: PackageDelta.h:80
zypp::Edition
Edition represents [epoch:]version[-release]
Definition: Edition.h:60
zypp::OnMediaLocation
Describes a resource file located on a medium.
Definition: OnMediaLocation.h:38
zypp::packagedelta::DeltaRpm::setName
DeltaRpm & setName(const std::string &val_r)
Definition: PackageDelta.h:73
zypp::packagedelta::DeltaRpm::BaseVersion::BaseVersion
BaseVersion()
Definition: PackageDelta.h:41
PoolMember.h
zypp::packagedelta::operator<<
std::ostream & operator<<(std::ostream &str, const DeltaRpm &obj)
Definition: PackageDelta.cc:126
zypp::packagedelta::DeltaRpm::_location
OnMediaLocation _location
Definition: PackageDelta.h:83
zypp::Arch
Architecture.
Definition: Arch.h:36
zypp::packagedelta::DeltaRpm::setEdition
DeltaRpm & setEdition(const Edition &val_r)
Definition: PackageDelta.h:74
zypp::packagedelta::DeltaRpm::DeltaRpm
DeltaRpm()
Definition: PackageDelta.h:58
zypp::packagedelta::DeltaRpm::BaseVersion
Definition: PackageDelta.h:38
OnMediaLocation.h
zypp::packagedelta::DeltaRpm::_arch
Arch _arch
Definition: PackageDelta.h:82
Arch.h
zypp::packagedelta::DeltaRpm::BaseVersion::edition
const Edition & edition() const
Definition: PackageDelta.h:45
zypp::packagedelta::DeltaRpm
Definition: PackageDelta.h:35
zypp::packagedelta::DeltaRpm::_repo
Repository _repo
Definition: PackageDelta.h:85
zypp::packagedelta::DeltaRpm::repository
const Repository & repository() const
Definition: PackageDelta.h:70
Date.h
zypp::packagedelta::DeltaRpm::BaseVersion::setSequenceinfo
BaseVersion & setSequenceinfo(const std::string &val_r)
Definition: PackageDelta.h:50
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::packagedelta::DeltaRpm::_baseversion
BaseVersion _baseversion
Definition: PackageDelta.h:84
zypp::packagedelta::DeltaRpm::edition
const Edition & edition() const
Definition: PackageDelta.h:65
zypp::packagedelta::DeltaRpm::BaseVersion::_sequenceinfo
std::string _sequenceinfo
Definition: PackageDelta.h:54
zypp::sat::LookupAttr::iterator
Result iterator.
Definition: LookupAttr.h:350
zypp::packagedelta::DeltaRpm::baseversion
const BaseVersion & baseversion() const
Definition: PackageDelta.h:69
zypp::packagedelta::DeltaRpm::BaseVersion::setEdition
BaseVersion & setEdition(const Edition &val_r)
Definition: PackageDelta.h:49
Repository.h
str
String related utilities and Regular expression matching.
zypp::packagedelta::DeltaRpm::setBaseversion
DeltaRpm & setBaseversion(const BaseVersion &val_r)
Definition: PackageDelta.h:77
zypp::packagedelta::DeltaRpm::BaseVersion::sequenceinfo
const std::string & sequenceinfo() const
Definition: PackageDelta.h:46
zypp::Repository
Definition: Repository.h:39
zypp::packagedelta::DeltaRpm::arch
const Arch & arch() const
Definition: PackageDelta.h:66
zypp::packagedelta::DeltaRpm::name
const std::string & name() const
Definition: PackageDelta.h:64