About the File-Date-StringUtils library

Using

Have a look at the Makefile, a compilation produces several object files that you can link to your program. The header files have .hpp as file name extension. The library is written in C++.

Overview

The library includes functionality that can be grouped into some categories:

Date Classes: The Date functionality is rather incomplete. The class 'Date' represents a date. The class 'TimeZone' is intended to represent Time Zones, but at present of very limited use.

String Utilities: These include the StringTokenizer that splits strings into tokens, and some other functions for convenience. See the header file StringUtils.hpp. Generally, the C++ Standard Library's string class is used to represent strings.

Text Utilities: Functions for text formatting; these are placed in the text subdirectory and are defined in the namespace text. [Please don't get confused that this part of the library is in its own directory and has its own namespace. Originally it was part of another application; I found it funny to play around with namespaces a bit.]

File Classes: The main class here is UnixFile, providing easy access to information about files on Unix systems. Objects from class UnixFile represent individual files. This class is rather complete. Note that file properties cannot be changed!

There is a superclass for UnixFile, File, providing a general interface. But it is not used elsewhere.

Other classes are 'DirectoryList' (holds a directory's entries and proviedes functions to sort it etc.) and 'UnixDirectoryLister' (reads a directory's entries from the filesystem).