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

FileTree Class Reference

This object represents a file. More...

#include <filetree.h>

Inheritance diagram for FileTree:

DrawableObject List of all members.

Public Member Functions

 FileTree ()
 FileTree (char *name, char *loc, DirTree *pDir)
 ~FileTree ()
int setFileInfo (char *fullFileNameAndPath)
int setFileType (int type)
int setFileName (char *name)
int setFileLocation (char *dir)
int setPosition (int *pos)
int getFileType ()
char * getFileName ()
char * getFileLocation ()
DirTreegetParentDir ()
virtual PositionFilegetPosition ()
 A pure virtual function to get a pointer to the position object.

int getNumChildren ()
int getNumParents ()
FileTree ** getParents ()
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 (FileTree *child, int connectionType)
int removeChild (FileTree *child)
int addParent (FileTree *parent, int connectionType)
int removeParent (FileTree *parent)

Private Attributes

FileTree ** parents
int * parentConnectionType
int numParents
FileTree ** children
int * childConnectionType
int numChildren
int fileType
char * fileName
char * fileLocation
DirTreeparentDir
PositionFilethePosition
 a pointer to the position of the drawable object


Detailed Description

This object represents a file.

This child of drawable object represnts a file. it is drawable and can be linked to other files depending on their code relations


Constructor & Destructor Documentation

FileTree::FileTree  ) 
 

FileTree::FileTree char *  name,
char *  loc,
DirTree pDir
 

FileTree::~FileTree  ) 
 


Member Function Documentation

int FileTree::addChild FileTree child,
int  connectionType
 

int FileTree::addParent FileTree parent,
int  connectionType
 

void FileTree::draw void *   )  [virtual]
 

A pure virtual function to draw the object.

Parameters:
p a void pointer
Returns:
nothing

Implements DrawableObject.

char * FileTree::getFileLocation  ) 
 

char * FileTree::getFileName  ) 
 

int FileTree::getFileType  ) 
 

int FileTree::getNumChildren  ) 
 

int FileTree::getNumParents  ) 
 

DirTree * FileTree::getParentDir  ) 
 

FileTree ** FileTree::getParents  ) 
 

PositionFile * FileTree::getPosition  )  [virtual]
 

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

Returns:
a pointer to a Position object

Implements DrawableObject.

void FileTree::matrixOps void *   )  [virtual]
 

A pure virtual function to pass drawing matrix options.

Parameters:
p a void pointer
Returns:
nothing

Implements DrawableObject.

int FileTree::removeChild FileTree child  ) 
 

int FileTree::removeParent FileTree parent  ) 
 

int FileTree::setFileInfo char *  fullFileNameAndPath  ) 
 

int FileTree::setFileLocation char *  dir  ) 
 

int FileTree::setFileName char *  name  ) 
 

int FileTree::setFileType int  type  ) 
 

int FileTree::setPosition int *  pos  ) 
 


Member Data Documentation

int* FileTree::childConnectionType [private]
 

FileTree** FileTree::children [private]
 

char* FileTree::fileLocation [private]
 

char* FileTree::fileName [private]
 

int FileTree::fileType [private]
 

int FileTree::numChildren [private]
 

int FileTree::numParents [private]
 

int* FileTree::parentConnectionType [private]
 

DirTree* FileTree::parentDir [private]
 

FileTree** FileTree::parents [private]
 

PositionFile* FileTree::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