1 #ifndef FILE_TIME_CLASS
2 #define FILE_TIME_CLASS
59 void reset(FILE *the_FILE);
68 void reset(
const time_t &init);
71 time_t
raw()
const {
return _when; }
Provides a dynamically resizable ASCII character string.
Defines the base class for all string processing objects in hoople.
A very common template for a dynamic array of bytes.
Base class for object that can tell itself apart from other instances.
the base class of the most easily used and tested objects in the library.
A base for objects that can be alphabetically (lexicographically) ordered.
bool set_time(const basis::astring &filename)
sets the time for the the "filename" to the currently held time.
virtual bool equal_to(const basis::equalizable &ft2) const
virtual bool less_than(const basis::orderable &ft2) const
virtual int packed_size() const
virtual void pack(basis::byte_array &packed_form) const
virtual void text_form(basis::base_string &time_string) const
returns a definitive but sorta ugly version of the file's time.
void reset(FILE *the_FILE)
reacquires the time from a different FILE than constructed with.
time_t raw() const
provides the OS version of the file's timestamp.
virtual void readable_text_form(basis::base_string &time_string) const
sets "time_string" to a human readable form of the file's time.
DEFINE_CLASS_NAME("file_time")
virtual bool unpack(basis::byte_array &packed_form)
file_time()
sets up a bogus file_time object.
Provides operations commonly needed on file names.
A platform independent way to obtain the timestamp of a file.