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

librpmDb::DbDirInfo Class Reference

#include <librpmDb.h>

List of all members.

Public Member Functions

 DbDirInfo (const Pathname &root_r, const Pathname &dbPath_r)
const Pathnameroot () const
const PathnamedbPath () const
const PathInfodbDir () const
const PathInfodbV4 () const
const PathInfodbV3 () const
const PathInfodbV3ToV4 () const
void restat ()
bool illegalArgs () const
bool usableArgs () const
bool hasDbDir () const
bool hasDbV4 () const
bool hasDbV3 () const
bool hasDbV3ToV4 () const

Private Attributes

Pathname _root
Pathname _dbPath
PathInfo _dbDir
PathInfo _dbV4
PathInfo _dbV3
PathInfo _dbV3ToV4

Friends

std::ostream & operator<< (std::ostream &str, const DbDirInfo &obj)


Detailed Description

Collect info about what kind of rpmdb seems to be present by looking at paths and filenames.


Constructor & Destructor Documentation

librpmDb::DbDirInfo::DbDirInfo const Pathname root_r,
const Pathname dbPath_r
 

For Constructor arguments see accessPath. On illegal arguments _dbDir is unset.


Member Function Documentation

const PathInfo& librpmDb::DbDirInfo::dbDir  )  const [inline]
 

database directory (unset on illegal constructor arguments)

const Pathname& librpmDb::DbDirInfo::dbPath  )  const [inline]
 

Directory that contains the rpmdb.

const PathInfo& librpmDb::DbDirInfo::dbV3  )  const [inline]
 

rpmV3 database (_dbDir/packages.rpm)

const PathInfo& librpmDb::DbDirInfo::dbV3ToV4  )  const [inline]
 

rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3)

const PathInfo& librpmDb::DbDirInfo::dbV4  )  const [inline]
 

rpmV4 database (_dbDir/Packages)

bool librpmDb::DbDirInfo::hasDbDir  )  const [inline]
 

Whether dbDir directory exists.

bool librpmDb::DbDirInfo::hasDbV3  )  const [inline]
 

Whether dbV3 file exists.

bool librpmDb::DbDirInfo::hasDbV3ToV4  )  const [inline]
 

Whether dbV3ToV4 file exists.

bool librpmDb::DbDirInfo::hasDbV4  )  const [inline]
 

Whether dbV4 file exists.

bool librpmDb::DbDirInfo::illegalArgs  )  const [inline]
 

Whether constructor arguments were illegal.

void librpmDb::DbDirInfo::restat  ) 
 

Restat all paths

const Pathname& librpmDb::DbDirInfo::root  )  const [inline]
 

Root directory for all operations.

bool librpmDb::DbDirInfo::usableArgs  )  const [inline]
 

Whether constructor arguments were llegal and dbDir either is a directory or may be created (path does not exist).


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  str,
const DbDirInfo obj
[friend]
 


Member Data Documentation

PathInfo librpmDb::DbDirInfo::_dbDir [private]
 

database directory (unset on illegal constructor arguments)

Pathname librpmDb::DbDirInfo::_dbPath [private]
 

Directory that contains the rpmdb.

PathInfo librpmDb::DbDirInfo::_dbV3 [private]
 

rpmV3 database (_dbDir/packages.rpm)

PathInfo librpmDb::DbDirInfo::_dbV3ToV4 [private]
 

rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3)

PathInfo librpmDb::DbDirInfo::_dbV4 [private]
 

rpmV4 database (_dbDir/Packages)

Pathname librpmDb::DbDirInfo::_root [private]
 

Root directory for all operations.


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:32 2007 for yast2-packagemanager by doxygen 1.3.6