12#ifndef ZYPP_MEDIAPRODUCTS_H_ 
   13#define ZYPP_MEDIAPRODUCTS_H_ 
   22#include <zypp-core/base/UserRequestException> 
   24#include <zypp-core/ui/ProgressData> 
   47      return ( res < 0 || ( res == 0 && 
_dir < rhs.
_dir ) );
 
 
 
   59  template <
class TOutputIterator>
 
   62    std::ifstream pfile( file_r.
asString().c_str() );
 
   63    while ( pfile.good() ) {
 
   67        ERR << 
"Error parsing " << file_r << std::endl;
 
 
   89  template <
class TOutputIterator>
 
  100      products_file = media_mgr.
localPath (
id, products_file);
 
  105      MIL << 
"No products description found on the Url" << std::endl;
 
 
Base class for Exception.
const std::string & asString() const
String representation.
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.