libzypp: zypp/repo/PackageDelta.h Source File

libzypp 17.38.10

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-core/OnMediaLocation>
19#include <zypp/Edition.h>
20#include <zypp/Arch.h>
21#include <zypp-core/Date.h>
22
23#include <zypp/sat/detail/PoolMember.h>
24#include <zypp/Repository.h>
25
27namespace zypp
28{
30 namespace packagedelta
31 {
32
33
35 class DeltaRpm
36 {
37 public:
38 class BaseVersion
39 {
40 public:
41 BaseVersion()
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:
53 Edition _edition;
54 std::string _sequenceinfo;
55 };
56
57 public:
58 DeltaRpm() {}
59 DeltaRpm( const 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;
81 Edition _edition;
82 Arch _arch;
83 OnMediaLocation _location;
84 BaseVersion _baseversion;
85 Repository _repo;
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
Arch.h
Date.h
Edition.h
PoolMember.h
Repository.h
zypp::Arch
Architecture.
Definition Arch.h:37
zypp::Edition
Edition represents [epoch:]version[-release].
Definition Edition.h:60
zypp::OnMediaLocation
Describes a resource file located on a medium.
Definition onmedialocation.h:37
zypp::Repository
Definition Repository.h:40
zypp::packagedelta::DeltaRpm::BaseVersion
Definition PackageDelta.h:39
zypp::packagedelta::DeltaRpm::BaseVersion::edition
const Edition & edition() const
Definition PackageDelta.h:45
zypp::packagedelta::DeltaRpm::BaseVersion::BaseVersion
BaseVersion()
Definition PackageDelta.h:41
zypp::packagedelta::DeltaRpm::BaseVersion::_sequenceinfo
std::string _sequenceinfo
Definition PackageDelta.h:54
zypp::packagedelta::DeltaRpm::BaseVersion::sequenceinfo
const std::string & sequenceinfo() const
Definition PackageDelta.h:46
zypp::packagedelta::DeltaRpm::BaseVersion::_edition
Edition _edition
Definition PackageDelta.h:53
zypp::packagedelta::DeltaRpm::BaseVersion::setEdition
BaseVersion & setEdition(const Edition &val_r)
Definition PackageDelta.h:49
zypp::packagedelta::DeltaRpm::BaseVersion::setSequenceinfo
BaseVersion & setSequenceinfo(const std::string &val_r)
Definition PackageDelta.h:50
zypp::packagedelta::DeltaRpm
Definition PackageDelta.h:36
zypp::packagedelta::DeltaRpm::edition
const Edition & edition() const
Definition PackageDelta.h:65
zypp::packagedelta::DeltaRpm::setBaseversion
DeltaRpm & setBaseversion(const BaseVersion &val_r)
Definition PackageDelta.h:77
zypp::packagedelta::DeltaRpm::setLocation
DeltaRpm & setLocation(const OnMediaLocation &val_r)
Definition PackageDelta.h:76
zypp::packagedelta::DeltaRpm::_repo
Repository _repo
Definition PackageDelta.h:85
zypp::packagedelta::DeltaRpm::setArch
DeltaRpm & setArch(const Arch &val_r)
Definition PackageDelta.h:75
zypp::packagedelta::DeltaRpm::name
const std::string & name() const
Definition PackageDelta.h:64
zypp::packagedelta::DeltaRpm::location
const OnMediaLocation & location() const
Definition PackageDelta.h:68
zypp::packagedelta::DeltaRpm::_edition
Edition _edition
Definition PackageDelta.h:81
zypp::packagedelta::DeltaRpm::repository
const Repository & repository() const
Definition PackageDelta.h:70
zypp::packagedelta::DeltaRpm::_location
OnMediaLocation _location
Definition PackageDelta.h:83
zypp::packagedelta::DeltaRpm::setEdition
DeltaRpm & setEdition(const Edition &val_r)
Definition PackageDelta.h:74
zypp::packagedelta::DeltaRpm::baseversion
const BaseVersion & baseversion() const
Definition PackageDelta.h:69
zypp::packagedelta::DeltaRpm::setName
DeltaRpm & setName(const std::string &val_r)
Definition PackageDelta.h:73
zypp::packagedelta::DeltaRpm::arch
const Arch & arch() const
Definition PackageDelta.h:66
zypp::packagedelta::DeltaRpm::_baseversion
BaseVersion _baseversion
Definition PackageDelta.h:84
zypp::packagedelta::DeltaRpm::_name
std::string _name
Definition PackageDelta.h:80
zypp::packagedelta::DeltaRpm::DeltaRpm
DeltaRpm()
Definition PackageDelta.h:58
zypp::packagedelta::DeltaRpm::_arch
Arch _arch
Definition PackageDelta.h:82
zypp::sat::LookupAttr::iterator
Result iterator.
Definition LookupAttr.h:364
str
String related utilities and Regular expression matching.
zypp::packagedelta
Definition PackageDelta.cc:33
zypp::packagedelta::operator<<
std::ostream & operator<<(std::ostream &str, const DeltaRpm &obj)
relates: DeltaRpm Stream output.
Definition PackageDelta.cc:127
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2