Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

DepartmentRes class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

DepartmentRes Class Reference

Class for initializing and loading faculty members for a department. More...

#include <ODEPTRES.H>

List of all members.

Public Methods

 DepartmentRes ()
 ~DepartmentRes ()
void init ()
void deinit ()
int write_file (File *)
int read_file (File *)
void calc_total_elective_course_pref ()
 It calculates the total preference weights for all existing departments.

int get_prob_school_type ()
DepartmentInfooperator[] (int departmentId)

Public Attributes

char init_flag
short department_count
DepartmentInfoinfo_array
DepartmentInfo general_dept_info
GeneralDepartment general_dept


Detailed Description

Class for initializing and loading faculty members for a department.

Definition at line 264 of file ODEPTRES.H.


Constructor & Destructor Documentation

DepartmentRes::DepartmentRes  
 

Definition at line 58 of file ODEPTRES.CPP.

References init_flag.

DepartmentRes::~DepartmentRes  
 

Definition at line 66 of file ODEPTRES.CPP.

References deinit().


Member Function Documentation

void DepartmentRes::calc_total_elective_course_pref  
 

It calculates the total preference weights for all existing departments.

Definition at line 551 of file ODEPTRES.CPP.

References GeneralDepartmentInfo::bachelor_elective_course_pref, err_when, DepartmentInfo::master_elective_course_pref, GeneralDepartmentInfo::total_bachelor_elective_course_pref, and DepartmentInfo::total_master_elective_course_pref.

void DepartmentRes::deinit  
 

Definition at line 96 of file ODEPTRES.CPP.

References StudentArray::del(), general_dept, info_array, init_flag, StudentArray::is_deleted(), mem_del, DynArray::size(), and GeneralDepartment::student_array.

Referenced by ~DepartmentRes().

int DepartmentRes::get_prob_school_type  
 

Definition at line 582 of file ODEPTRES.CPP.

void DepartmentRes::init  
 

This function must be called after a map is generated.

Definition at line 76 of file ODEPTRES.CPP.

DepartmentInfo * DepartmentRes::operator[] int    departmentId
 

Definition at line 590 of file ODEPTRES.CPP.

int DepartmentRes::read_file File  
 

Definition at line 74 of file OGFILE3.CPP.

References department_count, err_when, File::file_get_short(), File::file_read(), general_dept, general_dept_info, info_array, init_flag, and GeneralDepartment::read_file().

int DepartmentRes::write_file File  
 

Definition at line 46 of file OGFILE3.CPP.

References department_count, err_when, File::file_put_short(), File::file_write(), general_dept, general_dept_info, info_array, init_flag, and GeneralDepartment::write_file().


Member Data Documentation

short DepartmentRes::department_count
 

Definition at line 268 of file ODEPTRES.H.

Referenced by read_file(), and write_file().

GeneralDepartment DepartmentRes::general_dept
 

Definition at line 272 of file ODEPTRES.H.

Referenced by deinit(), read_file(), and write_file().

DepartmentInfo DepartmentRes::general_dept_info
 

Definition at line 271 of file ODEPTRES.H.

Referenced by read_file(), and write_file().

DepartmentInfo* DepartmentRes::info_array
 

Definition at line 269 of file ODEPTRES.H.

Referenced by deinit(), read_file(), and write_file().

char DepartmentRes::init_flag
 

Definition at line 266 of file ODEPTRES.H.

Referenced by deinit(), DepartmentRes(), read_file(), and write_file().


The documentation for this class was generated from the following files:
Generated on Fri Aug 23 01:39:05 2002 for VirtualU by doxygen1.2.17