file.h File Reference

A collection of classes and functions that simplify file system access and the use of data objects, such as file names, operating system status information, etc. More...

#include <string>
#include <string.h>
#include <memory>
#include <sys/types.h>
#include <time.h>
#include <sys/stat.h>
#include <iostream>
#include <list>
#include <set>
#include <cxxtls/strtool.h>
Include dependency graph for file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FileContents
 An in-memory representation of a file's contents. An in memory copy of the file as returned by FileName::slurp(). If the ok() method returns true then no error occurred during the reading. However if it returns false, an explanation of the error can be obtained using 'error()'. More...
struct  FileMode
 A representation of a file's mode (ie permissions and type). If the file is a symbolic link, the link bit will be 1, but the other bits will refer to file to which the link points. Note that this is the design of the FileMode class -- but also note that the FileMode class does not have way of populating itself. To obtain a FileMode object's value, call FileName::file_stat(&fileMode). More...
class  FileName
 A file's name and handle for invoking many file system functions. More...
struct  Accum< Container >
 An Accum object is a template class object whose role is to provide a generic interface for any standard sequence container to the accumulate_lines virtual interface. More...
struct  accumulate_lines
 A class of functor objects whose purpose is to provide a generic interface between the read_* functions, below, and some container used to hold lines read. More...
struct  FileNameSorter
struct  is_separator
 A functor that tells you if a specifed character is a path sepator. It is meant to be used as a parameter to StrTool::parse_words -- or any function needing a predicate indicating that a character is the path separator. More...
class  Tree
 A tree of file names, representing a directory hierarcy. More...
struct  FileStatus
 The complete description of a file's attributes. More...
struct  FileTime
 A portable representation of a file's (local) time. More...

Namespaces

namespace  cxxtls
 

The namespace that encapsulates most of the functionality in the CXX toolkit.


Functions

template<class T >
bool operator!= (T const &lhs, FileName const &rhs)
template<class T >
bool operator!= (FileName const &lhs, T const &rhs)
std::ostream & operator<< (std::ostream &s, FileName const &rhs)

Detailed Description

A collection of classes and functions that simplify file system access and the use of data objects, such as file names, operating system status information, etc.

Definition in file file.h.

Generated on Wed Feb 29 22:51:05 2012 for CXXUtilities by  doxygen 1.6.3