Prüfungsamt-Projekt  1.0.0
generator.cc-Dateireferenz
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fstream.h>
#include <iostream.h>
#include <time.h>

Klassen

struct  list_t

Funktionen

int odd (int num)
int even (int num)
void Randomize ()
list_tload_list (const char *name, const int number)
char * rand_element (const list_t *list)
int rand_int (int number)
void load_all_lists (void)
void begin_transaction ()
void commit_work ()
void write_qualies_intro ()
void w_q_s ()
void write_qualies_stud_id (int stud_id)
void write_qualies_typ (int q_typ)
void write_qualies_title (int q_typ)
void write_qualies_pers_id (int faculty)
void write_qualies_date (int sem_year, int sem_typ)
void write_qualies_date_late (int sem_year, int sem_typ)
void write_qualies_comment ()
void write_qualies_closing ()
int qualies_test (int q_typ, int stud_level, int stud_id, int sem_year, int sem_typ)
void w_e_s ()
void write_exams_date (int sem_year, int sem_typ)
int generate_exams_result (int stud_level, int sem_year, int sem_typ)
void write_exams_intro ()
void write_exams_stud_id (int stud_id)
void write_exams_typ (int exam_typ)
void write_exams_counter (int counter, int subcounter)
void write_exams_entry_date (int sem_year, int sem_typ)
void write_exams_pers_id (int stud_id)
void write_exams_comment (int stud_level)
void write_exams_closing ()
int dp_exams_test (int exam_typ, int stud_level, int stud_id, int sem_year, int sem_typ, int counter)
void write_exams_thesis_intro ()
void write_exams_thesis_entry_date (int sem_year, int sem_typ)
void write_exams_thesis_dates (int sem_year, int sem_typ)
void write_exams_thesis_theme ()
int generate_exams_thesis_result (int stud_level)
int dp_exams_thesis (int exam_typ, int stud_level, int stud_id, int sem_year, int sem_typ, int counter)
void delete_student_data ()
void delete_student_data (int min_id, int max_id)
int generate_personal_data (int stud_id)
void generate_student_semester (int stud_id, int immat_year)
void generate_student (int stud_id)
void vacuum_database ()
int main (int argc, char *argv[])

Variablen

list_tlist_names_male
list_tlist_names_female
list_tlist_names_family
list_tlist_names_towns
list_tlist_names_street
list_tlist_names_str_typ
const int MAX_ELEMENTS = 500
const int MIN_STUD_ID = 20000000
const int MAX_STUD_ID = 50000000
const int MIN_PERS_ID = 98765431
const int MAX_PERS_ID = 98765460
const int SEX_QUOTA = 20
const int BIRTH_START = 1970
const int BIRTH_VAR = 11
const int ABI_AGE = 18
const int IMMAT_VAR = 6
const int YEAR_NOW = 2000
const int SEM_LIMIT = 6
const int MAX_QUALIES = 17
const int Q_HZB = 0
const int Q_INF_1 = 1
const int Q_INF_2 = 2
const int Q_INF_3 = 3
const int Q_INF_4 = 4
const int Q_INF_PS = 5
const int Q_INF_PP = 6
const int Q_M_IR_1 = 7
const int Q_M_IR_2 = 8
const int Q_M_LA_1 = 9
const int Q_M_LA_2 = 10
const int Q_V_DIPL = 11
const int Q_INF_SA = 12
const int Q_INF_SB = 13
const int Q_INF_PC = 14
const int Q_M_PMWR = 15
const int Q_DIPLOM = 16
const int MAX_DP_EXAMS = 11
const int DP_VD_DIPLOM = 0
const int DP_VD_INF_A = 1
const int DP_VD_INF_B = 2
const int DP_VD_MATHE = 3
const int DP_VD_NF = 4
const int DP_HD_INF_A = 5
const int DP_HD_INF_B = 6
const int DP_HD_INF_C = 7
const int DP_HD_NF = 8
const int DP_HD_ARBEIT = 9
const int DP_HD_DIPLOM = 10
const int NO = 1
const int YES = 0
const int NOT_PASSED = 1
const int YES_PASSED = 0
const int MAX_VD_TRY = 3
const int MAX_HD_TRY = 3
const int MAX_DIPL_TRY = 2
const int WIN_SEM = 0
const int SOM_SEM = 1

Dokumentation der Funktionen

void commit_work ( )
void delete_student_data ( int  min_id,
int  max_id 
)
int dp_exams_test ( int  exam_typ,
int  stud_level,
int  stud_id,
int  sem_year,
int  sem_typ,
int  counter 
)
int dp_exams_thesis ( int  exam_typ,
int  stud_level,
int  stud_id,
int  sem_year,
int  sem_typ,
int  counter 
)
int even ( int  num)
int generate_exams_result ( int  stud_level,
int  sem_year,
int  sem_typ 
)
int generate_exams_thesis_result ( int  stud_level)
int generate_personal_data ( int  stud_id)
void generate_student ( int  stud_id)
void generate_student_semester ( int  stud_id,
int  immat_year 
)
void load_all_lists ( void  )
list_t* load_list ( const char *  name,
const int  number 
)
int main ( int  argc,
char *  argv[] 
)
int odd ( int  num)
int qualies_test ( int  q_typ,
int  stud_level,
int  stud_id,
int  sem_year,
int  sem_typ 
)
char* rand_element ( const list_t list)
int rand_int ( int  number)
void Randomize ( )
void vacuum_database ( )
void w_e_s ( )
void w_q_s ( )
void write_exams_comment ( int  stud_level)
void write_exams_counter ( int  counter,
int  subcounter 
)
void write_exams_date ( int  sem_year,
int  sem_typ 
)
void write_exams_entry_date ( int  sem_year,
int  sem_typ 
)
void write_exams_pers_id ( int  stud_id)
void write_exams_stud_id ( int  stud_id)
void write_exams_thesis_dates ( int  sem_year,
int  sem_typ 
)
void write_exams_thesis_entry_date ( int  sem_year,
int  sem_typ 
)
void write_exams_typ ( int  exam_typ)
void write_qualies_date ( int  sem_year,
int  sem_typ 
)
void write_qualies_date_late ( int  sem_year,
int  sem_typ 
)
void write_qualies_pers_id ( int  faculty)
void write_qualies_stud_id ( int  stud_id)
void write_qualies_title ( int  q_typ)
void write_qualies_typ ( int  q_typ)

Variablen-Dokumentation

const int ABI_AGE = 18
const int BIRTH_START = 1970
const int BIRTH_VAR = 11
const int DP_HD_ARBEIT = 9
const int DP_HD_DIPLOM = 10
const int DP_HD_INF_A = 5
const int DP_HD_INF_B = 6
const int DP_HD_INF_C = 7
const int DP_HD_NF = 8
const int DP_VD_DIPLOM = 0
const int DP_VD_INF_A = 1
const int DP_VD_INF_B = 2
const int DP_VD_MATHE = 3
const int DP_VD_NF = 4
const int IMMAT_VAR = 6
const int MAX_DIPL_TRY = 2
const int MAX_DP_EXAMS = 11
const int MAX_ELEMENTS = 500
const int MAX_HD_TRY = 3
const int MAX_PERS_ID = 98765460
const int MAX_QUALIES = 17
const int MAX_STUD_ID = 50000000
const int MAX_VD_TRY = 3
const int MIN_PERS_ID = 98765431
const int MIN_STUD_ID = 20000000
const int NO = 1
const int NOT_PASSED = 1
const int Q_DIPLOM = 16
const int Q_HZB = 0
const int Q_INF_1 = 1
const int Q_INF_2 = 2
const int Q_INF_3 = 3
const int Q_INF_4 = 4
const int Q_INF_PC = 14
const int Q_INF_PP = 6
const int Q_INF_PS = 5
const int Q_INF_SA = 12
const int Q_INF_SB = 13
const int Q_M_IR_1 = 7
const int Q_M_IR_2 = 8
const int Q_M_LA_1 = 9
const int Q_M_LA_2 = 10
const int Q_M_PMWR = 15
const int Q_V_DIPL = 11
const int SEM_LIMIT = 6
const int SEX_QUOTA = 20
const int SOM_SEM = 1
const int WIN_SEM = 0
const int YEAR_NOW = 2000
const int YES = 0
const int YES_PASSED = 0
 Alle Klassen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Freundbeziehungen Makrodefinitionen