-
Notifications
You must be signed in to change notification settings - Fork 9
/
constants_and_globals.h
61 lines (47 loc) · 1.83 KB
/
constants_and_globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef __CONSTANTS_H__
#define __CONSTANTS_H__
#define MAX_STRING_LENGTH 10000
#include <map>
#include "grade.h"
class Student;
// ==========================================================
// What sections to display in the output table
extern bool DISPLAY_INSTRUCTOR_NOTES;
extern bool DISPLAY_EXAM_SEATING;
extern bool DISPLAY_ACADEMIC_SANCTION_DETAILS;
extern bool DISPLAY_FINAL_GRADE;
extern bool DISPLAY_GRADE_SUMMARY;
extern bool DISPLAY_GRADE_DETAILS;
extern bool DISPLAY_LATE_DAYS;
extern bool DISPLAY_RANK_TO_INDIVIDUAL;
// ==========================================================
// messages for zone assignment
extern std::string GLOBAL_EXAM_TITLE;
extern std::string GLOBAL_EXAM_DATE;
extern std::string GLOBAL_EXAM_TIME;
extern std::string GLOBAL_EXAM_DEFAULT_ROOM;
extern std::string GLOBAL_EXAM_DEFAULT_BUILDING;
extern float GLOBAL_MIN_OVERALL_FOR_ZONE_ASSIGNMENT;
extern std::vector<std::string> MESSAGES;
extern std::vector<std::string> OMIT_SECTION_FROM_STATS;
// ==========================================================
extern Student* PERFECT_STUDENT_POINTER;
extern bool TEST_IMPROVEMENT_AVERAGING_ADJUSTMENT;
extern float LATE_DAY_PERCENTAGE_PENALTY;
extern bool LOWEST_TEST_COUNTS_HALF;
extern int QUIZ_NORMALIZE_AND_DROP;
// ==========================================================
extern std::map<std::string,std::string> sectionNames;
extern std::map<std::string,std::string> sectionColors;
extern std::map<std::string,float> CUTOFFS;
extern std::map<Grade,int> grade_counts;
extern std::map<Grade,float> grade_avg;
extern int took_final;
extern int dropped;
extern int auditors;
extern float LATE_DAY_PERCENTAGE_PENALTY;
// ==========================================================
// PROTOTYPES
bool validSection(std::string section);
bool OmitSectionFromStats(const std::string §ion);
#endif // __CONSTANTS_H__