zypp::parser::RepoindexFileReader Class Reference

Reads through a repoindex.xml file and collects repositories. More...

#include <RepoindexFileReader.h>

Inheritance diagram for zypp::parser::RepoindexFileReader:
[legend]

List of all members.

Classes

class  Impl

Public Types

typedef function< bool(const
RepoInfo &)> 
ProcessResource
 Callback definition.

Public Member Functions

 RepoindexFileReader (const Pathname &repoindexFile, const ProcessResource &callback)
 CTOR.
 ~RepoindexFileReader ()
 DTOR.

Private Attributes

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


Detailed Description

Reads through a repoindex.xml file and collects repositories.

After each repository is read, a RepoInfo is prepared and _callback is called with this object passed in.

The _callback is provided on construction.

 RepoindexFileReader reader(repoindex_file, 
                  bind( &SomeClass::callbackfunc, &SomeClassInstance, _1) );

Definition at line 41 of file RepoindexFileReader.h.


Member Typedef Documentation

Callback definition.

First parameter is a RepoInfo object with the resource FIXME return value is ignored

Definition at line 51 of file RepoindexFileReader.h.


Constructor & Destructor Documentation

zypp::parser::RepoindexFileReader::RepoindexFileReader ( const Pathname &  repoindexFile,
const ProcessResource callback 
)

CTOR.

Creates also xml::Reader and starts reading.

Parameters:
repoindexFile is the repoindex.xml file you want to read
callback is a function.
See also:
RepoindexFileReader::ProcessResource

Definition at line 184 of file RepoindexFileReader.cc.

zypp::parser::RepoindexFileReader::~RepoindexFileReader (  ) 

DTOR.

Definition at line 190 of file RepoindexFileReader.cc.


Member Data Documentation

Definition at line 70 of file RepoindexFileReader.h.


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

doxygen