libzypp  17.31.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
void discardScripts()
Discard all remembered scrips.
String related utilities and Regular expression matching.
friend std::ostream & dumpOn(std::ostream &str, const RpmPostTransCollector &obj)
RW_pointer< Impl > _pimpl
Implementation class.
RpmPostTransCollector(const Pathname &root_r)
Default ctor.
Extract and remember posttrans scripts for later execution.
friend std::ostream & operator<<(std::ostream &str, const RpmPostTransCollector &obj)
bool collectScriptFromPackage(ManagedFile rpmPackage_r)
Extract and remember a packages posttrans script for later execution.
bool executeScripts()
Execute the remembered scripts.
RpmPostTransCollector implementation.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition: AutoDispose.h:93
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1