1 #ifndef FILENAME_TREE_CLASS
2 #define FILENAME_TREE_CLASS
A very common template for a dynamic array of bytes.
int _depth
how far below root node are we.
filename_list _files
the filenames that are at this node in the tree.
filename _dirname
the full directory name at this position.
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".
Provides operations commonly needed on file names.
this is the tree factory used in the recursive_unpack.
virtual nodes::packable_tree * create()
implements the create() method for filename_trees to support packing.
A tree object that can be packed into an array of bytes and unpacked again.
A platform independent way to obtain the timestamp of a file.