1 #ifndef FILENAME_LIST_CLASS
2 #define FILENAME_LIST_CLASS
49 int ¤t_file,
double ¤t_size);
Provides a dynamically resizable ASCII character string.
A very common template for a dynamic array of bytes.
A base class for objects that can pack into an array of bytes.
Encapsulates some measures and calculations based on a file's contents.
file_similarity
this enum encapsulates how files may be compared.
bool member(const filename &to_check) const
finds the index for "to_find" or returns a negative number.
bool member_with_state(const file_info &to_check, file_info::file_similarity comparison_method)
returns true if the file "to_check" exists in the list with appropriate equivalence.
virtual void pack(basis::byte_array &packed_form) const
Creates a packed form of the packable object in "packed_form".
basis::astring text_form(int max_lines=MAXINT32) const
max_lines is the maximum number of lines to print into the string.
virtual bool unpack(basis::byte_array &packed_form)
Restores the packable from the "packed_form".
int total_files() const
returns the number of files currently held in the list.
const file_info * find(const filename &to_check) const
locates the record of information for the filename "to_check".
double total_size() const
returns the full size of all files listed.
filename_list & operator=(const filename_list &to_copy)
int locate(const filename &to_find) const
bool calculate_progress(const filename &file, double current_offset, int ¤t_file, double ¤t_size)
given the last "file" and position, this returns current positioning.
void fill(structures::string_array &to_fill)
stuffs the array "to_fill" with the filesnames from our list.
virtual int packed_size() const
Estimates the space needed for the packed structure.
Provides operations commonly needed on file names.
An array of strings with some additional helpful methods.
#define MAXINT32
Maximum 32-bit integer value.
A platform independent way to obtain the timestamp of a file.