libzypp 17.37.10

SrcPackageProvider.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_REPO_SRCPACKAGEPROVIDER_H
13#define ZYPP_REPO_SRCPACKAGEPROVIDER_H
14
15#include <iosfwd>
16
17#include <zypp/base/NonCopyable.h>
18#include <zypp/base/PtrTypes.h>
19
20#include <zypp/repo/RepoProvideFile.h>
21#include <zypp/ManagedFile.h>
22#include <zypp/ResTraits.h>
23
25 namespace zypp
26{
28 namespace repo
29 {
30
31 class RepoMediaAccess;
32
34 //
35 // CLASS NAME : SrcPackageProvider
36 //
38 class ZYPP_API SrcPackageProvider : private base::NonCopyable
39 {
40 public:
42 SrcPackageProvider( repo::RepoMediaAccess & access_r );
44 ~SrcPackageProvider();
45
46 public:
48 ManagedFile provideSrcPackage( const SrcPackage_constPtr & srcPackage_r ) const;
49
50 private:
51 RepoMediaAccess & _access;
52 };
53
54
56 } // namespace repo
59} // namespace zypp
61#endif // ZYPP_REPO_SRCPACKAGEPROVIDER_H
RepoProvideFile.h
ResTraits.h
zypp::repo::RepoMediaAccess
Provides files from different repos.
Definition RepoProvideFile.h:62
zypp::repo::SrcPackageProvider::_access
RepoMediaAccess & _access
Definition SrcPackageProvider.h:51
zypp::repo::SrcPackageProvider::SrcPackageProvider
SrcPackageProvider(repo::RepoMediaAccess &access_r)
Ctor.
Definition SrcPackageProvider.cc:29
zypp::repo::SrcPackageProvider::provideSrcPackage
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r) const
Provide SrcPackage in a local file.
Definition SrcPackageProvider.cc:36
zypp::base::NonCopyable
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition NonCopyable.h:26
zypp::repo
Definition DeltaCandidates.cc:30
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::ManagedFile
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
Definition ManagedFile.h:27
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
ManagedFile.h
NonCopyable.h
PtrTypes.h