Annotation of capa/capa51/Historic/Scorer/scorer.h, revision 1.1

1.1     ! albertel    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>