#include <PkgDu.h>
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 Entry & | operator+= (const Entry &rhs) const |
const Entry & | operator-= (const Entry &rhs) const |
Public Attributes | |
std::string | _dirname |
FSize | _size |
unsigned | _files |
Friends | |
std::ostream & | operator<< (std::ostream &str, const Entry &obj) |
|
Constructor |
|
Default constructor |
|
Return true if this entry denotes a directory equal to or below dirname_r. |
|
Return true if this entry denotes a directory equal to or below rhs._dirname. |
|
Numerical operation based on size and files values. |
|
Numerical operation based on size and files values. |
|
Order based on directory name. |
|
Test for equality based on directory name. |
|
|
|
Directory name (absolute path, trailing '/' is appended if missing) |
|
Nunber of files within this directory |
|
Ammount of byte within this directory |