libzypp  9.1.2
Classes | Public Types | Public Member Functions | Private Attributes
zypp::parser::yum::PatchesFileReader Class Reference

Iterates through a patches.xml file giving on each iteration a OnMediaLocation object with the resource and its patch id. More...

#include <PatchesFileReader.h>

Inheritance diagram for zypp::parser::yum::PatchesFileReader:
Inheritance graph
[legend]

List of all members.

Classes

class  Impl

Public Types

typedef function< bool(const
OnMediaLocation &, const
std::string &)> 
ProcessResource
 Callback definition first parameter is a OnMediaLocation object with the resource second parameter is the patch id.

Public Member Functions

 PatchesFileReader (const Pathname &patches_file, const ProcessResource &callback)
 CTOR.
 ~PatchesFileReader ()
 DTOR.

Private Attributes

RW_pointer< Impl,
rw_pointer::Scoped< Impl > > 
_pimpl

Detailed Description

Iterates through a patches.xml file giving on each iteration a OnMediaLocation object with the resource and its patch id.

The iteration is done via a callback provided on construction.

 PatchesFileReader reader(patches_file, 
                  bind( &SomeClass::callbackfunc, &object, _1, _2 ) );

Definition at line 40 of file PatchesFileReader.h.


Member Typedef Documentation

typedef function<bool( const OnMediaLocation &, const std::string & )> zypp::parser::yum::PatchesFileReader::ProcessResource

Callback definition first parameter is a OnMediaLocation object with the resource second parameter is the patch id.

Definition at line 51 of file PatchesFileReader.h.


Constructor & Destructor Documentation

zypp::parser::yum::PatchesFileReader::PatchesFileReader ( const Pathname &  patches_file,
const ProcessResource callback 
)

CTOR.

Creates also xml::Reader and starts reading.

Parameters:
patches_fileis the patches.xml file you want to read
callbackis a function.
See also:
PatchesFileReader::ProcessResource

Definition at line 142 of file PatchesFileReader.cc.

DTOR.

Definition at line 147 of file PatchesFileReader.cc.


Member Data Documentation

Definition at line 71 of file PatchesFileReader.h.


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