添加了常量定义头文件

This commit is contained in:
jackfiled 2022-06-11 19:04:47 +08:00
parent 35fa35de3f
commit 2c73b1d2ed
3 changed files with 25 additions and 6 deletions

19
include/define.h Normal file
View File

@ -0,0 +1,19 @@
//
// Created by ricardo on 2022/6/11.
//
#ifndef AUTO_BUS_GUI_DEFINE_H
#define AUTO_BUS_GUI_DEFINE_H
#define BUS_CLOCK_WISE 0 // 顺时针
#define BUS_COUNTER_CLOCK_WISE 1 // 逆时针
#define BUS_TARGET 2 // 目标
#define BUS_STOP 2 // 停止
#define IO_CLOCK 0 // 读取时钟指令
#define IO_READING 1 // 读取请求指令
#define IO_END 2 // 读取结束指令
#define BUS_FCFS 0 // 先来先服务
#define BUS_SSTF 1 // 最短寻找时间优先
#define BUS_SCAN 2 // 顺便服务
#endif //AUTO_BUS_GUI_DEFINE_H

View File

@ -2,8 +2,8 @@
// Created by ricardo on 2022/6/10. // Created by ricardo on 2022/6/10.
// //
#ifndef AUTO_BUS_GUI_QUERYMODEL_H #ifndef AUTO_BUS_GUI_QUERY_MODEL_H
#define AUTO_BUS_GUI_QUERYMODEL_H #define AUTO_BUS_GUI_QUERY_MODEL_H
#include "railsModel.h" #include "railsModel.h"
struct bus_query { struct bus_query {
@ -53,4 +53,4 @@ public:
}; };
#endif //AUTO_BUS_GUI_QUERYMODEL_H #endif //AUTO_BUS_GUI_QUERY_MODEL_H

View File

@ -2,8 +2,8 @@
// Created by ricardo on 2022/6/10. // Created by ricardo on 2022/6/10.
// //
#ifndef AUTO_BUS_GUI_RAILSMODEL_H #ifndef AUTO_BUS_GUI_RAILS_MODEL_H
#define AUTO_BUS_GUI_RAILSMODEL_H #define AUTO_BUS_GUI_RAILS_MODEL_H
#include "cstdlib" #include "cstdlib"
struct rail_node{ struct rail_node{
@ -59,4 +59,4 @@ public:
}; };
#endif //AUTO_BUS_GUI_RAILSMODEL_H #endif //AUTO_BUS_GUI_RAILS_MODEL_H