filename_tree Class Reference

This is a support class for the directory_tree. More...

#include <filename_tree.h>

Inheritance diagram for filename_tree:

Inheritance graph
[legend]
Collaboration diagram for filename_tree:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 filename_tree ()
virtual ~filename_tree ()
virtual void pack (byte_array &packed_form) const
 turns this node into a compact flat form for storage.
virtual bool unpack (byte_array &packed_form)
 decompresses the "packed_form" for this node.

Public Attributes

filename _dirname
 the full directory name at this position.
filename_list _files
 the filenames that are at this node in the tree.
int _depth
 how far below root node are we.

Detailed Description

This is a support class for the directory_tree.

This class has been exported from directory_tree's implementation to avoid redundant code for iteration and such. Note: this is a heavy-weight header that should not be included in other headers.

Definition at line 30 of file filename_tree.h.


Constructor & Destructor Documentation

filename_tree::filename_tree (  ) 

Definition at line 27 of file filename_tree.cpp.

filename_tree::~filename_tree (  )  [virtual]

Definition at line 29 of file filename_tree.cpp.

References _dirname, _files, and amorph< contents >::reset().


Member Function Documentation

void filename_tree::pack ( byte_array packed_form  )  const [virtual]

turns this node into a compact flat form for storage.

Implements nodes::packable_tree.

Definition at line 31 of file filename_tree.cpp.

References _depth, _dirname, _files, basis::attach(), filename_list::pack(), and filename::pack().

bool filename_tree::unpack ( byte_array packed_form  )  [virtual]

decompresses the "packed_form" for this node.

Implements nodes::packable_tree.

Definition at line 37 of file filename_tree.cpp.

References _depth, _dirname, _files, basis::detach(), filename_list::unpack(), and filename::unpack().


Member Data Documentation

filename filename_tree::_dirname

the full directory name at this position.

Definition at line 33 of file filename_tree.h.

Referenced by directory_tree::add_path(), directory_tree::current(), directory_tree::current_dir(), pack(), directory_tree::remove_path(), directory_tree::seek(), unpack(), and ~filename_tree().

filename_list filename_tree::_files

the filenames that are at this node in the tree.

Definition at line 34 of file filename_tree.h.

Referenced by directory_tree::access(), directory_tree::add_path(), directory_tree::compare_trees(), directory_tree::current(), pack(), directory_tree::remove_path(), unpack(), and ~filename_tree().

int filename_tree::_depth

how far below root node are we.

Definition at line 35 of file filename_tree.h.

Referenced by directory_tree::add_path(), directory_tree::depth(), pack(), and unpack().


The documentation for this class was generated from the following files:
Generated on Fri Aug 29 04:30:31 2008 for HOOPLE Libraries by  doxygen 1.5.1