Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

dataMgr Class Reference

This class manages the database. More...

#include <dataMgr.h>

Inheritance diagram for dataMgr:

Inheritance graph
[legend]
Collaboration diagram for dataMgr:

Collaboration graph
[legend]
List of all members.

Public Methods

 dataMgr ()
virtual ~dataMgr ()
void showTree ()
 This will show the data that's in the tree. More...

void setMerge (const bool &merge)
 Set the merge. More...

bool getMerge ()
 Get if we are merging. More...

personfindNode (int key)
void add (ustud &s)
 Add a person to the database through the person class uses. virtual functions to add correctly. More...

void add (gstud &s)
void add (faculty &s)
void add (staff &s)
void userAdd (faculty &s)
 If this add is comming from the user, then use this function. Due to the fact that faculty are already added to the adviseMgr. More...

void remove (ustud &s)
 Remove a student from the database. More...

void remove (gstud &s)
void remove (faculty &s)
void remove (staff &s)
void update (ustud &s)
 Update a student in the database. More...

void update (gstud &s)
void update (faculty &s)
void update (staff &s)
void reset ()
 reset the database. More...

void begin ()

Public Attributes

bool m_merge
 is the database going to be merged. More...


Friends

class query
 Allow query to have access to all members of this class. More...


Detailed Description

This class manages the database.


Constructor & Destructor Documentation

dataMgr::dataMgr  
 

virtual dataMgr::~dataMgr   [virtual]
 


Member Function Documentation

void dataMgr::add staff   s
 

void dataMgr::add faculty   s
 

void dataMgr::add gstud   s
 

void dataMgr::add ustud   s
 

Add a person to the database through the person class uses. virtual functions to add correctly.

void dataMgr::begin  
 

person* dataMgr::findNode int    key
 

bool dataMgr::getMerge  
 

Get if we are merging.

void dataMgr::remove staff   s
 

void dataMgr::remove faculty   s
 

void dataMgr::remove gstud   s
 

void dataMgr::remove ustud   s
 

Remove a student from the database.

void dataMgr::reset  
 

reset the database.

void dataMgr::setMerge const bool &    merge
 

Set the merge.

void dataMgr::showTree  
 

This will show the data that's in the tree.

void dataMgr::update staff   s
 

void dataMgr::update faculty   s
 

void dataMgr::update gstud   s
 

void dataMgr::update ustud   s
 

Update a student in the database.

void dataMgr::userAdd faculty   s
 

If this add is comming from the user, then use this function. Due to the fact that faculty are already added to the adviseMgr.


Friends And Related Function Documentation

friend class query [friend]
 

Allow query to have access to all members of this class.


Member Data Documentation

bool dataMgr::m_merge
 

is the database going to be merged.


The documentation for this class was generated from the following file:
Generated on Mon Oct 22 20:19:11 2001 for University People Management System by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001