libzypp  17.25.0
RpmPostTransCollector.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
11 #ifndef ZYPP_TARGET_RPMPOSTTRANSCOLLECTOR_H
12 #define ZYPP_TARGET_RPMPOSTTRANSCOLLECTOR_H
13 
14 #include <iosfwd>
15 
16 #include <zypp/base/PtrTypes.h>
17 #include <zypp/ManagedFile.h>
18 #include <zypp/Pathname.h>
19 
21 namespace zypp
22 {
24  namespace target
25  {
32  {
33  friend std::ostream & operator<<( std::ostream & str, const RpmPostTransCollector & obj );
34  friend std::ostream & dumpOn( std::ostream & str, const RpmPostTransCollector & obj );
35 
36  public:
38  RpmPostTransCollector( const Pathname & root_r );
39 
42 
43  public:
47  bool collectScriptFromPackage( ManagedFile rpmPackage_r );
48 
52  bool executeScripts();
53 
55  void discardScripts();
56 
57  public:
58  class Impl;
59  private:
61  };
62 
64  std::ostream & operator<<( std::ostream & str, const RpmPostTransCollector & obj );
65 
67  std::ostream & dumOn( std::ostream & str, const RpmPostTransCollector & obj );
68 
69  } // namespace target
71 } // namespace zypp
73 #endif // ZYPP_TARGET_RPMPOSTTRANSCOLLECTOR_H
zypp::target::RpmPostTransCollector::executeScripts
bool executeScripts()
Execute the remembered scripts.
Definition: RpmPostTransCollector.cc:237
zypp::target::RpmPostTransCollector::operator<<
friend std::ostream & operator<<(std::ostream &str, const RpmPostTransCollector &obj)
Definition: RpmPostTransCollector.cc:243
zypp::target::RpmPostTransCollector::Impl
RpmPostTransCollector implementation.
Definition: RpmPostTransCollector.cc:43
PtrTypes.h
Pathname.h
zypp::target::RpmPostTransCollector::~RpmPostTransCollector
~RpmPostTransCollector()
Dtor.
Definition: RpmPostTransCollector.cc:231
zypp::target::RpmPostTransCollector::_pimpl
RW_pointer< Impl > _pimpl
Implementation class.
Definition: RpmPostTransCollector.h:58
zypp::target::RpmPostTransCollector
Extract and remember posttrans scripts for later execution.
Definition: RpmPostTransCollector.h:31
zypp::target::RpmPostTransCollector::discardScripts
void discardScripts()
Discard all remembered scrips.
Definition: RpmPostTransCollector.cc:240
zypp::RW_pointer< Impl >
zypp::target::operator<<
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Definition: CommitPackageCache.cc:155
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::target::RpmPostTransCollector::RpmPostTransCollector
RpmPostTransCollector(const Pathname &root_r)
Default ctor.
Definition: RpmPostTransCollector.cc:227
zypp::target::RpmPostTransCollector::collectScriptFromPackage
bool collectScriptFromPackage(ManagedFile rpmPackage_r)
Extract and remember a packages posttrans script for later execution.
Definition: RpmPostTransCollector.cc:234
zypp::AutoDispose
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition: AutoDispose.h:92
zypp::target::RpmPostTransCollector::dumpOn
friend std::ostream & dumpOn(std::ostream &str, const RpmPostTransCollector &obj)
Definition: RpmPostTransCollector.cc:246
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:44
str
String related utilities and Regular expression matching.
ManagedFile.h