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

DirTree Class Reference

This class contains most of the functionality taken from du. More...

#include <dutree.h>

Collaboration diagram for DirTree:

Collaboration graph
[legend]
List of all members.

Public Methods

 DirTree ()
void calc_EnTree (const char *target, EnTree *my_tree)
 Wrapper for calculating entry sizes.

void set_watcher (Watcher< DirTree > &my_watch)

Public Attributes

bool opt_count_all
 Count all entries, even if they point at the same file.

bool opt_dereference_arguments
bool opt_one_file_system
 Only display the results on one file system.

bool opt_separate_dirs
bool opt_all
 Print all entries, files and directories.

bool up_immediate
 Update ancestors in the tree immediately.

int max_depth
 The maximum depth of the tree to create.


Detailed Description

This class contains most of the functionality taken from du.

It produces a tree of EnTree objects that represent the current directory.


Constructor & Destructor Documentation

DirTree::DirTree  
 

01273 {
01274    init();
01275 }


Member Function Documentation

void DirTree::calc_EnTree const char *    target,
EnTree   my_tree
 

Wrapper for calculating entry sizes.

01304 {
01305    Context cx1("DirTree::calc_EnTree(const char *, EnTree *)");
01306    count_entry(target, 1, 0, 0, my_tree);
01307 }

void DirTree::set_watcher Watcher< DirTree > &    my_watch
 

01310 {
01311    this->my_watch=&my_watch;
01312 }


Member Data Documentation

bool DirTree::opt_count_all
 

Count all entries, even if they point at the same file.

bool DirTree::opt_dereference_arguments
 

bool DirTree::opt_one_file_system
 

Only display the results on one file system.

bool DirTree::opt_separate_dirs
 

bool DirTree::opt_all
 

Print all entries, files and directories.

bool DirTree::up_immediate
 

Update ancestors in the tree immediately.

int DirTree::max_depth
 

The maximum depth of the tree to create.


The documentation for this class was generated from the following files:
Generated on Mon Apr 7 19:43:07 2003 for DuTree by doxygen1.2.18