Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

DbHeader.cc File Reference

#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 []

Define Documentation

 
#define add_line  )     do { if (lineno) ++*lineno; } while(0)
 

#define add_line_if  )     do { if ((c) == '\n' && lineno) ++*lineno; } while(0)
 

#define check_is eof_allowed   ) 
 

Value:

do {                                                                                                            \
                if ((!eof_allowed && is.eof()) || is.fail())                    \
                        throw PkgDbReadTagExcp("EOF while reading tags");       \
        } while(0)

#define line   (lineno ? *lineno : 0)
 

#define prev_line   (lineno ? *lineno-1 : 0)
 


Function Documentation

DEFINE_DERIVED_POINTER PMFakeVendorPackageDataProvider  ,
PMPackageDataProvider 
 

IMPL_DERIVED_POINTER PMFakeVendorPackageDataProvider  ,
PMPackageDataProvider 
 

ostream& operator<< ostream &  os,
const PkgDbExcp e
 

istream& operator>> istream &  is,
DbHeader hdr
 

static bool parse_one_tag istream &  is,
DbHeader hdr,
int *  lineno,
bool  is_override
[static]
 

PMError read_package_list PMInserter< PMPackagePtr > &  dest,
string  file
 

static std::list<std::string> relstring2strings std::string  str  )  [static]
 

static string strip_ws string  s  )  [static]
 


Variable Documentation

const struct tag_desc known_tags[] [static]
 


Generated on Mon Sep 12 21:52:13 2005 for yast2-packagemanager by  doxygen 1.4.4