#include <dirtree.h>
Inheritance diagram for DirTree:

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 PositionDir * | getPosition () |
| 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) |
| DirTree * | getParent () |
| int | addFile (FileTree *file) |
| int | removeFile (FileTree *file) |
Private Attributes | |
| DirTree * | parent |
| DirTree ** | children |
| int * | childConnectionType |
| int | numChildren |
| FileTree ** | filesContained |
| int | numFiles |
| char * | dirName |
| char * | dirLocation |
| char * | dirFullName |
| PositionDir * | thePosition |
| a pointer to the position of the drawable object | |
The DirTree object is a representation of a directory it is drawable, it contains files, and it contains other directories
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
A pure virtual function to draw the object.
Implements DrawableObject. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A pure virtual function to get a pointer to the position object.
Implements DrawableObject. |
|
|
A pure virtual function to pass drawing matrix options.
Implements DrawableObject. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a pointer to the position of the drawable object
Reimplemented from DrawableObject. |
1.3.6