#include <string>#include <cstring>#include <cctype>#include <cassert>#include <iostream>#include <fstream>#include <sstream>#include <map>#include <set>#include <unistd.h>#include <errno.h>#include <y2pm/PkgEdition.h>#include <y2pm/PMPackage.h>#include <y2pm/PMPackageDataProvider.h>#include "y2pm/PMDequeInserter.h"#include "y2pm/DbHeader.h"Namespaces | |
| namespace | std |
Classes | |
| struct | tag_desc |
| struct | PkgDbExcp |
| struct | PkgDbFileExcp |
| struct | PkgDbNoTagExcp |
| struct | PkgDbReadTagExcp |
| class | Tag |
| class | PMFakeVendorPackageDataProvider |
| class | DbHeader |
Defines | |
| #define | line (lineno ? *lineno : 0) |
| #define | prev_line (lineno ? *lineno-1 : 0) |
| #define | check_is(eof_allowed) |
| #define | add_line() do { if (lineno) ++*lineno; } while(0) |
| #define | add_line_if(c) do { if ((c) == '\n' && lineno) ++*lineno; } while(0) |
Functions | |
| ostream & | operator<< (ostream &os, const PkgDbExcp &e) |
| DEFINE_DERIVED_POINTER (PMFakeVendorPackageDataProvider, PMPackageDataProvider) | |
| IMPL_DERIVED_POINTER (PMFakeVendorPackageDataProvider, PMPackageDataProvider) | |
| static string | strip_ws (string s) |
| static std::list< std::string > | relstring2strings (std::string str) |
| static bool | parse_one_tag (istream &is, DbHeader &hdr, int *lineno, bool is_override) |
| istream & | operator>> (istream &is, DbHeader &hdr) |
| PMError | read_package_list (PMInserter< PMPackagePtr > &dest, string file) |
Variables | |
| static const struct tag_desc | known_tags [] |
|
|
|
|
|
|
|
|
Value: do { \ if ((!eof_allowed && is.eof()) || is.fail()) \ throw PkgDbReadTagExcp("EOF while reading tags"); \ } while(0) |
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
1.4.4