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

Password:

OMAOP.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OMAOP.H

Go to the documentation of this file.
00001 //Filename    : OMAOP.h
00002 //Description : MAOP Class Declaration
00003 
00004 #ifndef __OMAOP_H
00005 #define __OMAOP_H
00006 
00007 #include <OINFO.H>
00008 
00009 #ifndef __ODYNARRB_H
00010 #include <ODYNARRB.H>
00011 #endif
00012 
00013 //--------------------------------------------//
00014 
00015 //---------- Define class MAOP ------------//
00016 
00018 class MAOP {
00019 
00020 public:
00021 
00022     void  init(int departmentRecno, int rankLevel, int genderEthnicGroup, int MAOPAge, int startTeachingDate, int MAOPSalary,
00023                int talentTeaching, int talentScholarship, int talentResearch);
00024 
00025     void  next_day();
00026 
00027     void  calc_all_performance();
00028 
00029     void  disp_summary_basic(int x, int y, int xColumn2, int refreshFlag);
00030     void  disp_summary_activity(int x, int y, int xColumn2, int refreshFlag);
00031     void  disp_summary_assess(int x, int y, int xColumn2, int refreshFlag);
00032 
00033     void  disp_detail_std(int refreshFlag);
00034     void  disp_research_proposal(int y, int refreshFlag);
00035 
00036 private:
00037     void  init_photo();
00038 
00039     char* hour_str(int hourCount);
00040 
00041     void  calc_performance_teaching();
00042     void  calc_performance_scholarship();
00043     void  calc_performance_research();
00044     void  calc_satisfaction_index();
00045 };
00046 
00047 //----------- Define class MAOPArray -----//
00048 
00050 class MAOPArray : public DynArrayB {
00051 public:
00052     int     MAOP_count;
00053 
00054     //------------------------------------------//
00055 
00056 public:
00057     MAOPArray();
00058     ~MAOPArray();
00059 
00060     int     add(MAOP *newMAOP);
00061     int     add(int departmentRecno, int rankLevel, int genderEthnicGroup, int MAOPAge, int startTeachingDate, int MAOPSalary,
00062                 int talentTeaching, int talentScholarship, int talentResearch);
00063 
00064     void      del(int recNo);
00065 
00066     int       avg_discretionary_hour(int discretionaryType);
00067 
00068     void      next_day();
00069 
00070     MAOP*   get_unpacked_MAOP(int recNo);
00071 
00072     int     is_deleted(int recNo);
00073 
00074 #ifdef DEBUG
00075     MAOP*   operator[](int recNo);
00076 #else
00077     MAOP*   operator[](int recNo) { return (MAOP*) get(recNo); }
00078 #endif
00079 
00080 private:
00081 };
00082 
00083 //------------------------------------------//
00084 #endif

Generated on Fri Aug 23 01:38:04 2002 for VirtualU by doxygen1.2.17