libzypp  10.5.0
ServiceFileReader.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_REPO_SERVICEFILEREADER_H
00013 #define ZYPP_REPO_SERVICEFILEREADER_H
00014 
00015 #include <iosfwd>
00016 
00017 #include "zypp/base/PtrTypes.h"
00018 #include "zypp/ProgressData.h"
00019 #include "zypp/Pathname.h"
00020 
00022 namespace zypp
00023 { 
00024 
00025   class ServiceInfo;
00027   namespace parser
00028   { 
00029 
00043     class ServiceFileReader
00044     {
00045       friend std::ostream & operator<<( std::ostream & str, const ServiceFileReader & obj );
00046     public:
00047       
00055       typedef function< bool( const ServiceInfo & )> ProcessService;
00056       
00058       class Impl;
00059 
00060     public:
00071       ServiceFileReader( const Pathname & serviceFile,
00072                       const ProcessService & callback);
00073      
00077       ~ServiceFileReader();
00078     };
00080 
00082     std::ostream & operator<<( std::ostream & str, const ServiceFileReader & obj );
00083 
00085   } // namespace parser
00088 } // namespace zypp
00090 #endif // ZYPP_REPO_SERVICEFILEREADER_H