12 #ifndef ZYPP_PARSER_PRODUCTSDREADER_H
13 #define ZYPP_PARSER_PRODUCTSDREADER_H
79 std::string
name()
const;
84 std::string
status()
const;
125 typedef function<bool( const ProductFileData & )>
Consumer;
137 {
parse( input_r ); }
160 static bool scanDir(
const Consumer & consumer_r,
const Pathname & dir_r );
177 #endif // ZYPP_PARSER_PRODUCTSDREADER_H
std::string shortName() const
ProductFileReader(const Consumer &consumer_r)
static ProductFileData scanFile(const Pathname &file_r)
Parse one file (or symlink) and return the ProductFileData parsed.
std::string repository() const
ProductFileReader(const Consumer &consumer_r, const InputStream &input_r)
Access to the sat-pools string space.
std::ostream & operator<<(std::ostream &str, const IniDict &obj)
Edition represents [epoch:]version[-release]
std::string product() const
std::string summary() const
RWCOW_pointer< Impl > _pimpl
RWCOW_pointer< Impl > _pimpl
const Upgrades & upgrades() const
const Consumer & consumer() const
std::string registerTarget() const
bool parse(const InputStream &input_r=InputStream()) const
Parse the input stream and call _consumer for each parsed section.
Data returned by ProductFileReader.
std::string status() const
Upgrade(Impl *allocated_r=0)
Ctor takes ownership of allocated_r.
std::string summary() const
bool empty() const
Whether the string is empty.
std::string productline() const
ProductFileData(Impl *allocated_r=0)
Ctor takes ownership of allocated_r.
std::vector< Upgrade > Upgrades
std::string registerRelease() const
Parser for /etc/products.d enries (just relevant entires).
void setConsumer(const Consumer &consumer_r)
bool empty() const
Whether this is an empty object without valid data.
std::string updaterepokey() const
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...
function< bool(const ProductFileData &)> Consumer
Callback being invoked for each ProductFileData parsed.
RW_pointer supporting 'copy on write' functionality.