File:
[LON-CAPA] /
capa /
capa51 /
Historic /
Scorer /
scorer.h
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Wed Aug 30 15:02:30 2000 UTC (23 years, 11 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_X,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
version_2_1_99_0,
version_2_1_3,
version_2_1_2,
version_2_1_1,
version_2_1_0,
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_11_0,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
version_2_0_X,
version_2_0_99_1,
version_2_0_2,
version_2_0_1,
version_2_0_0,
version_1_99_3,
version_1_99_2,
version_1_99_1_tmcc,
version_1_99_1,
version_1_99_0_tmcc,
version_1_99_0,
version_1_3_X,
version_1_3_3,
version_1_3_2,
version_1_3_1,
version_1_3_0,
version_1_2_X,
version_1_2_99_1,
version_1_2_99_0,
version_1_2_1,
version_1_2_0,
version_1_1_X,
version_1_1_99_5,
version_1_1_99_4,
version_1_1_99_3,
version_1_1_99_2,
version_1_1_99_1,
version_1_1_99_0,
version_1_1_3,
version_1_1_2,
version_1_1_1,
version_1_1_0,
version_1_0_99_3,
version_1_0_99_2,
version_1_0_99_1,
version_1_0_99,
version_1_0_3,
version_1_0_2,
version_1_0_1,
version_1_0_0,
version_0_99_5,
version_0_99_4,
version_0_99_3,
version_0_99_2,
version_0_99_1,
version_0_99_0,
version_0_6_2,
version_0_6,
version_0_5_1,
version_0_5,
version_0_4,
stable_2002_spring,
stable_2002_july,
stable_2002_april,
stable_2001_fall,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
conference_2003,
bz6209-base,
bz6209,
STABLE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
CAPA_5-1-6,
CAPA_5-1-5,
CAPA_5-1-4_RC1,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse,
BZ4492-feature_Support_horizontal_radioresponse,
BZ4492-Support_horizontal_radioresponse
- documentation updates
1: /*
2: * scorer.h
3: * Copyright Guy Albertelli II 1997
4: */
5: #ifndef _SCORER_H_
6: #define _SCORER_H_ 1
7:
8: #define SCO_FATALERROR 1
9: #define SCO_NEW 2
10: #define SCO_EXIST 3
11:
12: #define CAPA_METHOD 1
13: #define LENIENT_METHOD 2
14: #define STRICT 3
15:
16: #define YES 1
17: #define NO 0
18:
19: #ifndef NeXT
20: #define TRUE 1
21: #define FALSE 0
22: #endif
23:
24: #define MAX_QUEST 50
25: #define MAX_ANSWER_LENGTH 23
26: #define CONFIG_LINE_LENGTH 250
27: #define MAX_LINE_LENGTH 2048
28: #define MAX_PID_MATCHES 100
29: #define MAX_NUM_FLAG 30
30: #define SCAN_INPUT_LENGTH 577
31:
32: #define SCANTRON_ERROR 34
33: #define SCANTRON_OK 13
34:
35: #define ONE_OUT_OF_8 'a'
36: #define GLE 'b'
37: #define TF 'c'
38: #define ASSIGNED 'd'
39: #define N_OUT_OF_M 'e'
40: #define SINGLE_DIGIT 'f'
41: #define STRING_MATCH 'g'
42:
43: #define QUESTION_MENU 'y'
44: #define QUESTION_STOP 'z'
45:
46: #define CHECK_PIN 1
47: #define ANON_MODE 3
48: #define CHECK_SPACES 4
49: #define SURVEY_MODE 5
50: #define SURVEY_HEADER 6
51: #define PAUSE_TIME 8
52: #define ID_FORMAT 9
53: #define MULTIPLE_MARKS 10
54: #define QUERY_ABOUT_PID 11
55: #define LOGGING 12
56:
57: #define ANUMBER_FORMAT 1
58: #define SOC_SEC_FORMAT 2
59:
60: #define E_OPENOUTPUT 1
61: #define E_OPENOUTPUTRETURN 2
62: #define E_MODIFYFLAG 3
63: #define E_GETYESNO 4
64: #define E_PRINTQUESTIONS 5
65: #define E_OPENSERIAL 6
66: #define E_INITSCANTRON 7
67: #define E_BADFORM 8
68: #define E_UNKNOWSCANTRON 9
69: #define E_BUILDPIDPIN 10
70: #define E_GETFORM 11
71: #define E_CHECKFORM 12
72: #define E_HANDLESAVEFORM 13
73: #define E_INTREPRETFORM 14
74: #define E_CAPA_GET_STUDENT 15
75: #define E_PARSER 16
76: #define E_UNKNOWN_QTYPE 17
77: #define E_PARSER_DIFFERENT 18
78: #define E_INVALIDIDFORMAT 19
79: #define E_SINGLEDIGIT 20
80: #define E_GARBAGEPIDDATA 21
81: #define E_LOGERROR 22
82: #define E_GRADINGMETHOD 23
83:
84: #define GF_SPACES 1
85: #define GF_MULTIPLEMARKS 2
86: #define GF_EOF 4
87: #define GF_PINWRONG 8
88:
89: #define CF_STID 2
90: #define CF_CLASSL 3
91: #define CF_PIN 4
92: #define CF_NOERROR 5
93:
94: #define LOG_NOPINFOUND 1
95: #define LOG_PINWRONG 2
96: #define LOG_STUDENTNOTEXIST 3
97: #define LOG_PINNOTMATCH 4
98: #define LOG_BADPID 5
99: #define LOG_BADPIN 6
100: #define LOG_SPACES 7
101: #define LOG_MULTIPLEMARKS 8
102:
103: char NUMBER[10]={'1', '2', '3', '4', '5', '6', '7', '8', '9', '0'};
104: char LETTER[10]={'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'};
105:
106: typedef struct
107: {
108: char answerPID[10];
109: char questionPID[10];
110: char PIN[7];
111: int classlPIN;
112: char Answers[MAX_QUEST][MAX_ANSWER_LENGTH];
113: char Name[17];
114: char serialNumber[7];
115: char origString[577];
116: int error;
117: } Student;
118:
119: typedef struct
120: {
121: char type;
122: int points;
123: int leafs;
124: } Question;
125:
126: typedef struct
127: {
128: char Class[10];
129: int SetId;
130: int NumQuestions;
131: int NumOfStudents;
132: int CheckPIN;
133: int AnonMode;
134: int CheckSpaces;
135: int CheckMultipleMarks;
136: int SurveyMode;
137: int SurveyHeader;
138: int Pause;
139: float PauseTime;
140: int IdFormat;
141: int QueryAboutPID;
142: int log;
143: FILE* logFile;
144: int linesRead;
145: int loggedErrors;
146: } Flags;
147:
148: typedef struct
149: {
150: int writefd;
151: int readfd;
152: } SerialLines;
153:
154: typedef struct
155: {
156: char PID[MAX_STUDENT_NUMBER];
157: int PIN;
158: } PIDPINlist;
159:
160: #endif /*_SCORER_H_*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>