12#ifndef ZYPP_PARSER_PRODUCTSDREADER_H
13#define ZYPP_PARSER_PRODUCTSDREADER_H
17#include <zypp/base/PtrTypes.h>
18#include <zypp/base/Function.h>
19#include <zypp-core/base/InputStream>
21#include <zypp/Pathname.h>
80 std::string
name()
const;
85 std::string
status()
const;
138 {
parse( input_r ); }
Edition represents [epoch:]version[-release]
Access to the sat-pools string space.
constexpr bool empty() const
Whether the string is empty.
Data returned by ProductFileReader.
bool empty() const
Whether this is an empty object without valid data.
std::string summary() const
const Upgrades & upgrades() const
std::string registerRelease() const
std::string updaterepokey() const
std::string shortName() const
std::string productline() const
std::vector< Upgrade > Upgrades
std::string registerFlavor() const
std::string registerTarget() const
RWCOW_pointer< Impl > _pimpl
Parser for /etc/products.d enries (just relevant entires).
ProductFileReader(const Consumer &consumer_r)
static bool scanDir(const Consumer &consumer_r, const Pathname &dir_r)
Parse all files (no symlinks) in dir_r and call consumer_r for each ProductFileData parsed.
const Consumer & consumer() const
ProductFileReader(const Consumer &consumer_r, const InputStream &input_r)
bool parse(const InputStream &input_r=InputStream()) const
Parse the input stream and call _consumer for each parsed section.
static ProductFileData scanFile(const Pathname &file_r)
Parse one file (or symlink) and return the ProductFileData parsed.
function< bool(const ProductFileData &)> Consumer
Callback being invoked for each ProductFileData parsed.
void setConsumer(const Consumer &consumer_r)
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const ProductFileData &obj)
Easy-to use interface to the ZYPP dependency resolver.
RW_pointer supporting 'copy on write' functionality.
std::string summary() const
std::string product() const
RWCOW_pointer< Impl > _pimpl
std::string status() const
std::string repository() const