zypp::parser::yum::OtherFileReader Class Reference

Reads through a other.xml file and collects additional package data (changelogs). More...

#include <OtherFileReader.h>

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

List of all members.

Public Types

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

Public Member Functions

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

Private Attributes

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

Classes

class  Impl


Detailed Description

Reads through a other.xml file and collects additional package data (changelogs).

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

The _callback is provided on construction.

 OtherFileReader reader(other_file,
                        bind(&SomeClass::callbackfunc, &SomeClassInstance, _1, _2));

Definition at line 45 of file OtherFileReader.h.


Member Typedef Documentation

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

Callback definition.

Definition at line 51 of file OtherFileReader.h.


Constructor & Destructor Documentation

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

CTOR.

Creates also xml::Reader and starts reading.

Parameters:
other_file the other.xml.gz file you want to read
callback function to process _resolvable data.
progress progress reporting object
See also:
OtherFileReader::ProcessPackage

Definition at line 201 of file OtherFileReader.cc.

zypp::parser::yum::OtherFileReader::~OtherFileReader (  ) 

DTOR.

Definition at line 209 of file OtherFileReader.cc.


Member Data Documentation

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

Definition at line 73 of file OtherFileReader.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