tree.cxx File Reference

This file implementa a program, tree, that prints directory listings to stdout based on command line options. Its output is intended to draw a picture of the directory structure, not just list the names. Line drawing characters are used to describe the selected directory structures. More...

#include <cxxtls/file.h>
#include <iostream>
#include <iomanip>
#include <cxxtls/options.h>
#include <set>
#include <fnmatch.h>
Include dependency graph for tree.cxx:

Go to the source code of this file.

Typedefs

typedef
Tree::children_t::const_iterator 
const_iterator
typedef Tree::children_t::iterator iterator
typedef FileName::Tree Tree
typedef std::auto_ptr< TreeTreePtr

Functions

int main (int argc, char **argv, char **environ)
void print_children (Tree const *p, string prefix)

Variables

set< string > ignored_names
bool include_attributes = false
bool include_size = false
bool include_time = false
set< string > name_filters

Detailed Description

This file implementa a program, tree, that prints directory listings to stdout based on command line options. Its output is intended to draw a picture of the directory structure, not just list the names. Line drawing characters are used to describe the selected directory structures.

Definition in file tree.cxx.


Typedef Documentation

Definition at line 50 of file tree.cxx.

Definition at line 51 of file tree.cxx.

Definition at line 48 of file tree.cxx.

typedef std::auto_ptr<Tree> TreePtr

Definition at line 49 of file tree.cxx.


Function Documentation

int main ( int  argc,
char **  argv,
char **  environ 
)

Definition at line 149 of file tree.cxx.

Here is the call graph for this function:

void print_children ( Tree const *  p,
string  prefix 
)

Definition at line 60 of file tree.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

set<string> ignored_names

Definition at line 57 of file tree.cxx.

bool include_attributes = false

Definition at line 53 of file tree.cxx.

bool include_size = false

Definition at line 55 of file tree.cxx.

bool include_time = false

Definition at line 54 of file tree.cxx.

set<string> name_filters

Definition at line 58 of file tree.cxx.

Generated on Wed Feb 29 22:50:53 2012 for CXXUtilities by  doxygen 1.6.3