zypp::sat::Transaction::Step Class Reference

A single step within a Transaction. More...

#include <Transaction.h>

List of all members.

Public Member Functions

 Step ()
 Step (const RW_pointer< Impl > &pimpl_r, detail::IdType id_r)
StepType stepType () const
 Type of action to perform in this step.
StepStage stepStage () const
 Step action result.
void stepStage (StepStage val_r)
 Set step action result.
Solvable satSolvable () const
 Return the corresponding Solvable.
 operator const Solvable & () const
 Implicit conversion to Solvable.
 operator Solvable & ()
Post mortem acccess to @System solvables
   Transaction::Step step;
   if ( step.satSolvable() )
     std::cout << step.satSolvable() << endl;
   else
     std::cout << step.ident() << endl; // deleted @System solvable


IdString ident () const
Edition edition () const
Arch arch () const

Private Attributes

Solvable _solv
RW_pointer< Impl_pimpl
 Pointer to implementation.

Friends

std::ostream & operator<< (std::ostream &str, const Step &obj)


Detailed Description

A single step within a Transaction.

Note:
After commit, when the repo (rpm database) is reread, all solvables within the transaction are invalidated (they got deleted). Thats why we internally store the NVRA, so you can access ident (
See also:
sat::Solvable::ident), edition, arch of a deleted package, even if the satSolvable itself is meanwhile invalid.

Transaction.

Definition at line 209 of file Transaction.h.


Constructor & Destructor Documentation

zypp::sat::Transaction::Step::Step (  ) 

Definition at line 356 of file Transaction.cc.

zypp::sat::Transaction::Step::Step ( const RW_pointer< Impl > &  pimpl_r,
detail::IdType  id_r 
) [inline]

Definition at line 215 of file Transaction.h.


Member Function Documentation

Transaction::StepType zypp::sat::Transaction::Step::stepType (  )  const

Type of action to perform in this step.

Definition at line 359 of file Transaction.cc.

References _pimpl, and _solv.

Referenced by zypp::sat::Transaction::FilterAction::operator()(), and zypp::sat::operator<<().

Transaction::StepStage zypp::sat::Transaction::Step::stepStage (  )  const

Step action result.

Definition at line 362 of file Transaction.cc.

References _pimpl, and _solv.

Referenced by zypp::sat::Transaction::FilterAction::operator()(), and zypp::sat::operator<<().

void zypp::sat::Transaction::Step::stepStage ( StepStage  val_r  ) 

Set step action result.

Definition at line 365 of file Transaction.cc.

References _pimpl, and _solv.

Solvable zypp::sat::Transaction::Step::satSolvable (  )  const [inline]

Return the corresponding Solvable.

Returns Solvable::noSolvable if the item is meanwhile deleted and was removed from the pool.

See also:
Post mortem acccess to solvables.

Definition at line 234 of file Transaction.h.

Referenced by zypp::sat::operator<<().

IdString zypp::sat::Transaction::Step::ident (  )  const

See also:
sat::Solvable::ident.

Definition at line 368 of file Transaction.cc.

References _pimpl, _solv, and zypp::sat::Solvable::ident().

Referenced by zypp::sat::operator<<().

Edition zypp::sat::Transaction::Step::edition (  )  const

See also:
sat::Solvable::edition.

Definition at line 371 of file Transaction.cc.

References _pimpl, _solv, and zypp::sat::Solvable::edition().

Referenced by zypp::sat::operator<<().

Arch zypp::sat::Transaction::Step::arch (  )  const

See also:
sat::Solvable::arch.

Definition at line 374 of file Transaction.cc.

References _pimpl, _solv, and zypp::sat::Solvable::arch().

Referenced by zypp::sat::operator<<().

zypp::sat::Transaction::Step::operator const Solvable & (  )  const [inline]

Implicit conversion to Solvable.

Definition at line 258 of file Transaction.h.

zypp::sat::Transaction::Step::operator Solvable & (  )  [inline]

Definition at line 260 of file Transaction.h.


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const Step obj 
) [friend]

Stream output

Definition at line 377 of file Transaction.cc.


Member Data Documentation

Definition at line 263 of file Transaction.h.

Referenced by arch(), edition(), ident(), stepStage(), and stepType().

Pointer to implementation.

Definition at line 265 of file Transaction.h.

Referenced by arch(), edition(), ident(), stepStage(), and stepType().


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

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