|
libzypp 17.32.6
|
Parser for /etc/products.d enries (just relevant entires). More...
#include <zypp/parser/ProductFileReader.h>
Public Types | |
| using | Consumer = function<bool (const ProductFileData &)> |
| Callback being invoked for each ProductFileData parsed. | |
Public Member Functions | |
| ProductFileReader () | |
| ProductFileReader (Consumer consumer_r) | |
| ProductFileReader (Consumer consumer_r, const InputStream &input_r) | |
| const Consumer & | consumer () const |
| void | setConsumer (const Consumer &consumer_r) |
| bool | parse (const InputStream &input_r=InputStream()) const |
Parse the input stream and call _consumer for each parsed section. | |
Static Public Member Functions | |
| 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. | |
| static ProductFileData | scanFile (const Pathname &file_r) |
| Parse one file (or symlink) and return the ProductFileData parsed. | |
Private Attributes | |
| Consumer | _consumer |
Parser for /etc/products.d enries (just relevant entires).
Definition at line 121 of file ProductFileReader.h.
| using zypp::parser::ProductFileReader::Consumer = function<bool (const ProductFileData &)> |
Callback being invoked for each ProductFileData parsed.
Return false to stop parsing.
Definition at line 127 of file ProductFileReader.h.
|
inline |
Definition at line 130 of file ProductFileReader.h.
|
inline |
Definition at line 133 of file ProductFileReader.h.
|
inline |
Definition at line 137 of file ProductFileReader.h.
|
inline |
Definition at line 142 of file ProductFileReader.h.
Definition at line 145 of file ProductFileReader.h.
| bool zypp::parser::ProductFileReader::parse | ( | const InputStream & | input_r = InputStream() | ) | const |
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.
|
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.
|
static |
Parse one file (or symlink) and return the ProductFileData parsed.
Definition at line 272 of file ProductFileReader.cc.
|
private |
Definition at line 169 of file ProductFileReader.h.