zypp::Script Class Reference

Class representing an update script. More...

#include <Script.h>

Inheritance diagram for zypp::Script:
[legend]

List of all members.

Public Types

typedef
detail::ScriptImplIf 
Impl
typedef Script Self
typedef ResTraits< SelfTraitsType
typedef
TraitsType::PtrType 
Ptr
typedef
TraitsType::constPtrType 
constPtr

Public Member Functions

bool doAvailable () const
 Check whether a script is available.
std::string doScriptInlined () const
 Return an inlined script if available.
OnMediaLocation doScriptLocation () const
 Location of the script, unless it is available inlined.
bool undoAvailable () const
 Check whether a script to undo the change is available.
std::string undoScriptInlined () const
 Return an inlined undo script if available.
OnMediaLocation undoScriptLocation () const
 Location of the undo script, unless it is available inlined.

Protected Member Functions

 Script (const NVRAD &nvrad_r)
 Ctor.
virtual ~Script ()
 Dtor.

Private Member Functions

virtual Implpimpl ()=0
 Access implementation.
virtual const Implpimpl () const =0
 Access implementation.


Detailed Description

Class representing an update script.

Definition at line 28 of file Script.h.


Member Typedef Documentation

typedef detail::ScriptImplIf zypp::Script::Impl

Reimplemented from zypp::ResObject.

Definition at line 31 of file Script.h.

typedef Script zypp::Script::Self

Reimplemented from zypp::ResObject.

Definition at line 32 of file Script.h.

typedef ResTraits<Self> zypp::Script::TraitsType

Reimplemented from zypp::ResObject.

Definition at line 33 of file Script.h.

typedef TraitsType::PtrType zypp::Script::Ptr

Reimplemented from zypp::ResObject.

Definition at line 34 of file Script.h.

typedef TraitsType::constPtrType zypp::Script::constPtr

Reimplemented from zypp::ResObject.

Definition at line 35 of file Script.h.


Constructor & Destructor Documentation

zypp::Script::Script ( const NVRAD nvrad_r  )  [protected]

Ctor.

Definition at line 27 of file Script.cc.

zypp::Script::~Script (  )  [protected, virtual]

Dtor.

Definition at line 36 of file Script.cc.


Member Function Documentation

bool zypp::Script::doAvailable (  )  const

Check whether a script is available.

Definition at line 45 of file Script.cc.

References pimpl().

std::string zypp::Script::doScriptInlined (  )  const

Return an inlined script if available.

Otherwise it is available at doScriptLocation.

Definition at line 48 of file Script.cc.

References pimpl().

Referenced by zypp::repo::ScriptProvider::provideDoScript().

OnMediaLocation zypp::Script::doScriptLocation (  )  const

Location of the script, unless it is available inlined.

See also:
doScriptInlined

Definition at line 51 of file Script.cc.

References pimpl().

Referenced by zypp::repo::ScriptProvider::provideDoScript().

bool zypp::Script::undoAvailable (  )  const

Check whether a script to undo the change is available.

Definition at line 54 of file Script.cc.

References pimpl().

std::string zypp::Script::undoScriptInlined (  )  const

Return an inlined undo script if available.

Otherwise it is available at undoScriptLocation.

Definition at line 57 of file Script.cc.

References pimpl().

Referenced by zypp::repo::ScriptProvider::provideUndoScript().

OnMediaLocation zypp::Script::undoScriptLocation (  )  const

Location of the undo script, unless it is available inlined.

See also:
undoScriptInlined

Definition at line 60 of file Script.cc.

References pimpl().

Referenced by zypp::repo::ScriptProvider::provideUndoScript().

virtual Impl& zypp::Script::pimpl (  )  [private, pure virtual]

Access implementation.

Implements zypp::ResObject.

Referenced by doAvailable(), doScriptInlined(), doScriptLocation(), undoAvailable(), undoScriptInlined(), and undoScriptLocation().

virtual const Impl& zypp::Script::pimpl (  )  const [private, pure virtual]

Access implementation.

Implements zypp::ResObject.


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:16 2007 for libzypp by  doxygen 1.5.3