zypp::parser::yum::FilelistsFileReader Class Reference

Reads through a filelists.xml.gz file and collects list of file contained in packages. More...

#include <FilelistsFileReader.h>

Inheritance diagram for zypp::parser::yum::FilelistsFileReader:
[legend]

List of all members.

Public Types

typedef function
< bool(const
data::Resolvable_Ptr &,
const
data::Filenames &)> 
ProcessPackage
 Callback definition.

Public Member Functions

 FilelistsFileReader (const Pathname &filelists_file, const ProcessPackage &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
 CTOR.
 ~FilelistsFileReader ()
 DTOR.

Private Attributes

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

Classes

class  Impl


Detailed Description

Reads through a filelists.xml.gz file and collects list of file contained in packages.

After each package is read, a data::Resolvable and data::Filenames is prepared and _callback is called with these two objects passed in.

The _callback is provided on construction.

 FilelistsFileReader reader(filelists_file,
                        bind(&SomeClass::callbackfunc, &SomeClassInstance, _1, _2));

Definition at line 45 of file FilelistsFileReader.h.


Member Typedef Documentation

typedef function<bool(const data::Resolvable_Ptr &, const data::Filenames &)> zypp::parser::yum::FilelistsFileReader::ProcessPackage

Callback definition.

Definition at line 51 of file FilelistsFileReader.h.


Constructor & Destructor Documentation

zypp::parser::yum::FilelistsFileReader::FilelistsFileReader ( const Pathname &  filelists_file,
const ProcessPackage callback,
const ProgressData::ReceiverFnc progress = ProgressData::ReceiverFnc() 
)

CTOR.

Creates also xml::Reader and starts reading.

Parameters:
filelists_file the filelists.xml.gz file you want to read
callback function to process _resolvable data.
progress progress reporting object
See also:
FilelistsFileReader::ProcessPackage

Definition at line 197 of file FilelistsFileReader.cc.

zypp::parser::yum::FilelistsFileReader::~FilelistsFileReader (  ) 

DTOR.

Definition at line 205 of file FilelistsFileReader.cc.


Member Data Documentation

RW_pointer<Impl,rw_pointer::Scoped<Impl> > zypp::parser::yum::FilelistsFileReader::_pimpl [private]

Definition at line 73 of file FilelistsFileReader.h.


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