libzypp 17.31.23
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/Date.h>
22
24#include <zypp/Repository.h>
25
27namespace zypp
28{
30 namespace packagedelta
31 {
32
33
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:
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
Architecture.
Definition: Arch.h:37
Edition represents [epoch:]version[-release]
Definition: Edition.h:61
Describes a resource file located on a medium.
const std::string & sequenceinfo() const
Definition: PackageDelta.h:46
BaseVersion & setEdition(const Edition &val_r)
Definition: PackageDelta.h:49
BaseVersion & setSequenceinfo(const std::string &val_r)
Definition: PackageDelta.h:50
const Edition & edition() const
Definition: PackageDelta.h:65
DeltaRpm & setBaseversion(const BaseVersion &val_r)
Definition: PackageDelta.h:77
DeltaRpm & setLocation(const OnMediaLocation &val_r)
Definition: PackageDelta.h:76
DeltaRpm & setArch(const Arch &val_r)
Definition: PackageDelta.h:75
const std::string & name() const
Definition: PackageDelta.h:64
const OnMediaLocation & location() const
Definition: PackageDelta.h:68
const Repository & repository() const
Definition: PackageDelta.h:70
DeltaRpm & setEdition(const Edition &val_r)
Definition: PackageDelta.h:74
const BaseVersion & baseversion() const
Definition: PackageDelta.h:69
DeltaRpm & setName(const std::string &val_r)
Definition: PackageDelta.h:73
const Arch & arch() const
Definition: PackageDelta.h:66
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const DeltaRpm &obj)
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2