#include <filename_tree.h>


Public Member Functions | |
| filename_tree () | |
| virtual | ~filename_tree () |
| virtual int | packed_size () const |
| Estimates the space needed for the packed structure. | |
| virtual void | pack (basis::byte_array &packed_form) const |
| Creates a packed form of the packable object in "packed_form". | |
| virtual bool | unpack (basis::byte_array &packed_form) |
| Restores the packable from the "packed_form". | |
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. | |
Definition at line 32 of file filename_tree.h.
| filesystem::filename_tree::filename_tree | ( | ) |
Definition at line 29 of file filename_tree.cpp.
| filesystem::filename_tree::~filename_tree | ( | ) | [virtual] |
Definition at line 31 of file filename_tree.cpp.
References _dirname, _files, and structures::amorph< contents >::reset().
| void filesystem::filename_tree::pack | ( | basis::byte_array & | packed_form | ) | const [virtual] |
Creates a packed form of the packable object in "packed_form".
This must append to the data in "packed_form" rather than clearing prior contents.
Implements basis::packable.
Definition at line 37 of file filename_tree.cpp.
References _depth, _dirname, _files, nodes::tree::attach(), filesystem::filename_list::pack(), and filesystem::filename::pack().
| int filesystem::filename_tree::packed_size | ( | ) | const [virtual] |
Estimates the space needed for the packed structure.
Implements basis::packable.
Definition at line 33 of file filename_tree.cpp.
References _dirname, _files, filesystem::filename_list::packed_size(), filesystem::filename::packed_size(), and structures::PACKED_SIZE_INT32.
| bool filesystem::filename_tree::unpack | ( | basis::byte_array & | packed_form | ) | [virtual] |
Restores the packable from the "packed_form".
This object becomes the unpacked form, and therefore must lose any of its prior contents that depend on the data in "packed_form". This is up to the derived unpack function to figure out. The "packed_form" is modified by extracting all of the pieces that are used for this object; the remainder stays in "packed_form". true is returned if the unpacking was successful.
Implements basis::packable.
Definition at line 43 of file filename_tree.cpp.
References _depth, _dirname, _files, structures::detach(), filesystem::filename_list::unpack(), and filesystem::filename::unpack().
how far below root node are we.
Definition at line 37 of file filename_tree.h.
Referenced by filesystem::directory_tree::add_path(), filesystem::directory_tree::depth(), pack(), and unpack().
the full directory name at this position.
Definition at line 35 of file filename_tree.h.
Referenced by filesystem::directory_tree::add_path(), filesystem::directory_tree::current(), filesystem::directory_tree::current_dir(), filesystem::directory_tree::jump_to(), pack(), packed_size(), filesystem::directory_tree::remove_path(), filesystem::directory_tree::seek(), unpack(), and ~filename_tree().
the filenames that are at this node in the tree.
Definition at line 36 of file filename_tree.h.
Referenced by filesystem::directory_tree::access(), filesystem::directory_tree::add_path(), filesystem::directory_tree::compare_trees(), filesystem::directory_tree::current(), pack(), packed_size(), filesystem::directory_tree::remove_path(), unpack(), and ~filename_tree().
1.6.3