-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
29 lines (24 loc) · 1.07 KB
/
config.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
//
// Created by sercan.ersoy on 24.07.2019.
//
#ifndef DATABASE_MANAGEMENT_SYSTEM_CONSTANTS_H
#define DATABASE_MANAGEMENT_SYSTEM_CONSTANTS_H
#define DATA_DIR "../data/"
#define SYS_CAT_FILE_NAME "SysCat.dat"
#define SYS_CAT_PAGE_HEADER_SIZE 2
#define SYS_CAT_TYPE_HEADER_SIZE 12
#define SYS_CAT_TYPE_LIMIT 10
#define SYS_CAT_PAGE_LIMIT 50
#define SYS_CAT_TYPE_FIELD_SIZE 10
#define SYS_CAT_TYPE_FIELD_LIMIT 10
#define SYS_CAT_TYPE_SIZE (SYS_CAT_TYPE_FIELD_SIZE*SYS_CAT_TYPE_FIELD_LIMIT+SYS_CAT_TYPE_HEADER_SIZE)
#define SYS_CAT_PAGE_SIZE (SYS_CAT_TYPE_SIZE*SYS_CAT_TYPE_LIMIT+SYS_CAT_PAGE_HEADER_SIZE)
#define DATA_FILE_PAGE_HEADER_SIZE 2
#define DATA_FILE_RECORD_HEADER_SIZE 1
#define DATA_FILE_RECORD_LIMIT 30
#define DATA_FILE_PAGE_LIMIT 50
#define DATA_FILE_RECORD_FIELD_SIZE 4
#define DATA_FILE_RECORD_FIELD_LIMIT 10
#define DATA_FILE_RECORD_SIZE (DATA_FILE_RECORD_FIELD_SIZE*DATA_FILE_RECORD_FIELD_LIMIT+DATA_FILE_RECORD_HEADER_SIZE)
#define DATA_FILE_PAGE_SIZE (DATA_FILE_RECORD_SIZE*DATA_FILE_RECORD_LIMIT+DATA_FILE_PAGE_HEADER_SIZE)
#endif //DATABASE_MANAGEMENT_SYSTEM_CONSTANTS_H