zypp::parser::yum::PrimaryFileReader Class Reference

Reads through a primary.xml.gz file and collects package data including dependencies. More...

#include <PrimaryFileReader.h>

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

List of all members.

Public Types

typedef function
< bool(const
data::Packagebase_Ptr &)> 
ProcessPackage
 Callback definition.

Public Member Functions

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

Private Attributes

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

Classes

class  Impl


Detailed Description

Reads through a primary.xml.gz file and collects package data including dependencies.

After a package is read, a zypp::data::Package object is prepared and _callback is called with this object passed in.

The _callback is provided on construction.

 PrimaryFileReader reader(repomd_file, 
                          bind(&SomeClass::callbackfunc, &object, _1));

Definition at line 48 of file PrimaryFileReader.h.


Member Typedef Documentation

typedef function<bool(const data::Packagebase_Ptr &)> zypp::parser::yum::PrimaryFileReader::ProcessPackage

Callback definition.

Definition at line 54 of file PrimaryFileReader.h.


Constructor & Destructor Documentation

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

CTOR.

Creates also xml::Reader and starts reading.

Parameters:
primary_file the primary.xml.gz file you want to read
callback function to process _package data.
progress progress reporting function
Exceptions:
AbortRequestException if user request for aborting the parsing has been received through progress reporting callback.
See also:
PrimaryFileReader::ProcessPackage

Definition at line 190 of file PrimaryFileReader.cc.

zypp::parser::yum::PrimaryFileReader::~PrimaryFileReader (  ) 

DTOR.

Definition at line 198 of file PrimaryFileReader.cc.


Member Data Documentation

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

Definition at line 78 of file PrimaryFileReader.h.


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