libzypp 17.31.20
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
21namespace 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
RpmPostTransCollector implementation.
Extract and remember posttrans scripts for later execution.
RW_pointer< Impl > _pimpl
Implementation class.
bool collectScriptFromPackage(ManagedFile rpmPackage_r)
Extract and remember a packages posttrans script for later execution.
bool executeScripts()
Execute the remembered scripts.
friend std::ostream & operator<<(std::ostream &str, const RpmPostTransCollector &obj)
friend std::ostream & dumpOn(std::ostream &str, const RpmPostTransCollector &obj)
void discardScripts()
Discard all remembered scrips.
std::ostream & dumOn(std::ostream &str, const RpmPostTransCollector &obj)
Verbose stream output.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:286