zypp::target::CommitPlugins Class Reference
[RAII solutions]

Helper for commit plugin execution. More...

Inheritance diagram for zypp::target::CommitPlugins:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CommitPlugins ()
 Default ctor: Empty plugin list.
 ~CommitPlugins ()
 Dtor: Send PLUGINEND message and close plugins.
void load (const Pathname &path_r)
 Find and launch plugins sending PLUGINSTART message.

Private Member Functions

void doLoad (const PathInfo &pi_r)

Private Attributes

std::list< PluginScript_scripts


Detailed Description

Helper for commit plugin execution.

Definition at line 74 of file TargetImpl.cc.


Constructor & Destructor Documentation

zypp::target::CommitPlugins::CommitPlugins (  )  [inline]

Default ctor: Empty plugin list.

Definition at line 80 of file TargetImpl.cc.

zypp::target::CommitPlugins::~CommitPlugins (  )  [inline]

Dtor: Send PLUGINEND message and close plugins.

Definition at line 84 of file TargetImpl.cc.

References _scripts, for_, MIL, and WAR.


Member Function Documentation

void zypp::target::CommitPlugins::load ( const Pathname &  path_r  )  [inline]

Find and launch plugins sending PLUGINSTART message.

If path_r is a directory all executable files whithin are expected to be plugins. Otherwise path_r must point to an executable plugin.

Definition at line 112 of file TargetImpl.cc.

References doLoad(), for_, zypp::filesystem::readdir(), and WAR.

Referenced by zypp::target::TargetImpl::commit(), and zypp::target::testCommitPlugins().

void zypp::target::CommitPlugins::doLoad ( const PathInfo &  pi_r  )  [inline, private]

Definition at line 144 of file TargetImpl.cc.

References _scripts, MIL, and WAR.

Referenced by load().


Member Data Documentation

Definition at line 168 of file TargetImpl.cc.

Referenced by doLoad(), and ~CommitPlugins().


The documentation for this class was generated from the following file:

Generated on Tue May 5 14:49:55 2015 for libzypp by  doxygen 1.5.6