Parser for /etc/products.d enries (just relevant entires).
More...
#include <parser/ProductFileReader.h>
Parser for /etc/products.d enries (just relevant entires).
std::vector<ProductFileData> result;
"/etc/products.d" );
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.
GetAll< TOutputIterator > getAll(TOutputIterator result_r)
Convenience function for creating GetAll.
Definition at line 120 of file ProductFileReader.h.
◆ Consumer
◆ ProductFileReader() [1/3]
zypp::parser::ProductFileReader::ProductFileReader |
( |
| ) |
|
|
inline |
◆ ProductFileReader() [2/3]
zypp::parser::ProductFileReader::ProductFileReader |
( |
const Consumer & |
consumer_r | ) |
|
|
inline |
◆ ProductFileReader() [3/3]
zypp::parser::ProductFileReader::ProductFileReader |
( |
const Consumer & |
consumer_r, |
|
|
const InputStream & |
input_r |
|
) |
| |
|
inline |
◆ consumer()
const Consumer & zypp::parser::ProductFileReader::consumer |
( |
| ) |
const |
|
inline |
◆ setConsumer()
void zypp::parser::ProductFileReader::setConsumer |
( |
const Consumer & |
consumer_r | ) |
|
|
inline |
◆ parse()
Parse the input stream and call _consumer
for each parsed section.
Returns false
if the _consumer
requested to stop parsing.
Definition at line 217 of file ProductFileReader.cc.
◆ scanDir()
bool zypp::parser::ProductFileReader::scanDir |
( |
const Consumer & |
consumer_r, |
|
|
const Pathname & |
dir_r |
|
) |
| |
|
static |
Parse all files (no symlinks) in dir_r
and call consumer_r
for each ProductFileData parsed.
Returns false
if the _consumer
requested to stop parsing.
Definition at line 251 of file ProductFileReader.cc.
◆ scanFile()
◆ _consumer
Consumer zypp::parser::ProductFileReader::_consumer |
|
private |
The documentation for this class was generated from the following files: