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

PkgDu::Entry Struct Reference

Helper classe to collect package diskspace usage info. More...

#include <PkgDu.h>

List of all members.

Public Member Functions

 Entry (const std::string &dirname_r, const FSize &size_r=0, const unsigned &files_r=0)
 Entry ()
bool operator== (const Entry &rhs) const
bool operator< (const Entry &rhs) const
bool isBelow (const Entry &rhs) const
bool isBelow (const std::string &dirname_r) const
const Entryoperator+= (const Entry &rhs) const
const Entryoperator-= (const Entry &rhs) const

Public Attributes

std::string _dirname
FSize _size
unsigned _files

Friends

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


Detailed Description

Helper classe to collect package diskspace usage info.


Constructor & Destructor Documentation

PkgDu::Entry::Entry const std::string &  dirname_r,
const FSize size_r = 0,
const unsigned &  files_r = 0
[inline]
 

Constructor

PkgDu::Entry::Entry  )  [inline]
 

Default constructor


Member Function Documentation

bool PkgDu::Entry::isBelow const std::string &  dirname_r  )  const [inline]
 

Return true if this entry denotes a directory equal to or below dirname_r.

bool PkgDu::Entry::isBelow const Entry rhs  )  const [inline]
 

Return true if this entry denotes a directory equal to or below rhs._dirname.

const Entry& PkgDu::Entry::operator+= const Entry rhs  )  const [inline]
 

Numerical operation based on size and files values.

const Entry& PkgDu::Entry::operator-= const Entry rhs  )  const [inline]
 

Numerical operation based on size and files values.

bool PkgDu::Entry::operator< const Entry rhs  )  const [inline]
 

Order based on directory name.

bool PkgDu::Entry::operator== const Entry rhs  )  const [inline]
 

Test for equality based on directory name.


Friends And Related Function Documentation

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


Member Data Documentation

std::string PkgDu::Entry::_dirname
 

Directory name (absolute path, trailing '/' is appended if missing)

unsigned PkgDu::Entry::_files [mutable]
 

Nunber of files within this directory

FSize PkgDu::Entry::_size [mutable]
 

Ammount of byte within this directory


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