Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

DirTree Class Reference

A directory tree object. More...

#include <dirtree.h>

Inheritance diagram for DirTree:

DrawableObject List of all members.

Public Member Functions

 DirTree ()
 DirTree (char *name, char *loc, char *fullName, DirTree *theParent)
 ~DirTree ()
void updatePositions ()
void updatePositionRelations ()
int setDirName (char *name)
int setDirLocation (char *loc)
char * getDirName ()
char * getDirLocation ()
virtual PositionDirgetPosition ()
 A pure virtual function to get a pointer to the position object.

DirTree ** getChildren ()
int getNumChildren ()
FileTree ** getFiles ()
int getNumFiles ()
int printTree ()
int printTreeRecursive ()
int printTreeCoords ()
int printTreeCoordsRecursive ()
virtual void matrixOps (void *)
 A pure virtual function to pass drawing matrix options.

virtual void draw (void *)
 A pure virtual function to draw the object.

int addChild (DirTree *child, int connectionType)
int removeChild (DirTree *child)
int setParent (DirTree *parent)
DirTreegetParent ()
int addFile (FileTree *file)
int removeFile (FileTree *file)

Private Attributes

DirTreeparent
DirTree ** children
int * childConnectionType
int numChildren
FileTree ** filesContained
int numFiles
char * dirName
char * dirLocation
char * dirFullName
PositionDirthePosition
 a pointer to the position of the drawable object


Detailed Description

A directory tree object.

The DirTree object is a representation of a directory it is drawable, it contains files, and it contains other directories


Constructor & Destructor Documentation

DirTree::DirTree  ) 
 

DirTree::DirTree char *  name,
char *  loc,
char *  fullName,
DirTree theParent
 

DirTree::~DirTree  ) 
 


Member Function Documentation

int DirTree::addChild DirTree child,
int  connectionType
 

int DirTree::addFile FileTree file  ) 
 

void DirTree::draw void *   )  [virtual]
 

A pure virtual function to draw the object.

Parameters:
p a void pointer
Returns:
nothing

Implements DrawableObject.

DirTree ** DirTree::getChildren  ) 
 

char * DirTree::getDirLocation  ) 
 

char * DirTree::getDirName  ) 
 

FileTree ** DirTree::getFiles  ) 
 

int DirTree::getNumChildren  ) 
 

int DirTree::getNumFiles  ) 
 

DirTree * DirTree::getParent  ) 
 

PositionDir * DirTree::getPosition  )  [virtual]
 

A pure virtual function to get a pointer to the position object.

Returns:
a pointer to a Position object

Implements DrawableObject.

void DirTree::matrixOps void *   )  [virtual]
 

A pure virtual function to pass drawing matrix options.

Parameters:
p a void pointer
Returns:
nothing

Implements DrawableObject.

int DirTree::printTree  ) 
 

int DirTree::printTreeCoords  ) 
 

int DirTree::printTreeCoordsRecursive  ) 
 

int DirTree::printTreeRecursive  ) 
 

int DirTree::removeChild DirTree child  ) 
 

int DirTree::removeFile FileTree file  ) 
 

int DirTree::setDirLocation char *  loc  ) 
 

int DirTree::setDirName char *  name  ) 
 

int DirTree::setParent DirTree parent  ) 
 

void DirTree::updatePositionRelations  ) 
 

void DirTree::updatePositions  ) 
 


Member Data Documentation

int* DirTree::childConnectionType [private]
 

DirTree** DirTree::children [private]
 

char* DirTree::dirFullName [private]
 

char* DirTree::dirLocation [private]
 

char* DirTree::dirName [private]
 

FileTree** DirTree::filesContained [private]
 

int DirTree::numChildren [private]
 

int DirTree::numFiles [private]
 

DirTree* DirTree::parent [private]
 

PositionDir* DirTree::thePosition [private]
 

a pointer to the position of the drawable object

Reimplemented from DrawableObject.


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 10:33:24 2004 by doxygen 1.3.6