zypp::DiskUsageCounter Class Reference

#include <DiskUsageCounter.h>

List of all members.

Public Types

typedef std::set
< MountPoint
MountPointSet

Public Member Functions

 DiskUsageCounter ()
bool setMountPoints (const MountPointSet &m)
MountPointSet getMountPoints () const
MountPointSet disk_usage (const ResPool &pool)
 Compute disk usage of the pool.

Static Public Member Functions

static MountPointSet detectMountPoints (const std::string &rootdir="/")

Private Attributes

MountPointSet mps

Classes

struct  MountPoint


Detailed Description

Definition at line 25 of file DiskUsageCounter.h.


Member Typedef Documentation

typedef std::set<MountPoint> zypp::DiskUsageCounter::MountPointSet

Definition at line 75 of file DiskUsageCounter.h.


Constructor & Destructor Documentation

zypp::DiskUsageCounter::DiskUsageCounter (  )  [inline]

Definition at line 77 of file DiskUsageCounter.h.


Member Function Documentation

bool zypp::DiskUsageCounter::setMountPoints ( const MountPointSet m  )  [inline]

Definition at line 79 of file DiskUsageCounter.h.

References mps.

MountPointSet zypp::DiskUsageCounter::getMountPoints (  )  const [inline]

Definition at line 85 of file DiskUsageCounter.h.

References mps.

DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::detectMountPoints ( const std::string &  rootdir = "/"  )  [static]

Definition at line 133 of file DiskUsageCounter.cc.

References DBG, zypp::str::getline(), zypp::url::split(), and WAR.

Referenced by zypp::zypp_detail::ZYppImpl::diskUsage(), and zypp::zypp_detail::ZYppImpl::getPartitions().

DiskUsageCounter::MountPointSet zypp::DiskUsageCounter::disk_usage ( const ResPool pool  ) 

Compute disk usage of the pool.

Definition at line 69 of file DiskUsageCounter.cc.

References zypp::addDu(), zypp::ResPool::begin(), zypp::ResPool::byNameBegin(), zypp::ResPool::byNameEnd(), zypp::delDu(), zypp::ResPool::end(), for_, and mps.


Member Data Documentation

MountPointSet zypp::DiskUsageCounter::mps [private]

Definition at line 99 of file DiskUsageCounter.h.

Referenced by disk_usage(), getMountPoints(), and setMountPoints().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:14 2007 for libzypp by  doxygen 1.5.3