12#ifndef ZYPP_MEDIAPRODUCTS_H_
13#define ZYPP_MEDIAPRODUCTS_H_
22#include <zypp-core/base/UserRequestException>
24#include <zypp-core/ui/ProgressData>
59 template <
class TOutputIterator>
63 while (
pfile.good() ) {
67 ERR <<
"Error parsing " <<
file_r << std::endl;
89 template <
class TOutputIterator>
105 MIL <<
"No products description found on the Url" << std::endl;
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Base class for Exception.
std::string stripFirstWord(std::string &line, const bool ltrim_first)
std::string getline(std::istream &str, const Trim trim_r)
Return stream content up to (but not returning) the next newline.
Easy-to use interface to the ZYPP dependency resolver.
static void scanProductsFile(const Pathname &file_r, TOutputIterator result)
FIXME: add a comment here...
std::set< MediaProductEntry > MediaProductSet
A set of available products in media.
void productsInMedia(const Url &url_r, TOutputIterator result)
Available products in a url location.
Represents an available product in media.
MediaProductEntry(Pathname dir_r="/", std::string name_r=std::string())
Ctor.
bool operator<(const MediaProductEntry &rhs) const
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.