Bank System
config.h
Go to the documentation of this file.
1#ifndef CONFIG_H
2#define CONFIG_H
3
4// System config
5// UserData file name
6#define USER_DATA_FILE "UserData.txt"
7
8// 储蓄账户结算周期(天)
9#define SAVING_ACCOUNT_PERIOD 365
10
11// 信用卡账户结算周期(天)
12#define CREDIT_ACCOUNT_PERIOD 31
13
14// 信用卡年费
15#define CREDIT_ACCOUNT_ANNUAL_FEE 50
16
17// invalid characters
18#define INVALID_CHAR invalid_chars
19#define INVALID_CHAR_NUM 10
20
21// copyright msg
22#define COPYRIGHT_MESSAGE "Author: 42024203 in USTB"
23#define GITHUB_REPO_URL "\nGithub_Repo: https://github.com/LinYuanChan/BankSystem"
24
25// index
26#define SAVINGS_ACCOUNT_INDEX 0
27#define CREDIT_ACCOUNT_INDEX 1
28#define DEFAULT_ACCOUNT_INDEX 2
29
30// System valid year range
31#define SYSTEM_MINIMUM_YEAR 1949
32#define SYSTEM_MAXIMUM_YEAR 9999
33
34// includes
35#include <QString>
36#include <stdexcept>
37
38// System file dir
39// QString SYS_DIR;
40
41#endif // CONFIG_H