添加了全局变量的注释
添加了概要设计书的画图文档 完善了.gitignore
This commit is contained in:
parent
229c87c97a
commit
053ea80067
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,3 +1,11 @@
|
|||
# 项目的构建文件夹
|
||||
build/
|
||||
|
||||
# VSCode的配置文件夹
|
||||
.vscode/
|
||||
|
||||
# CLion的配置文件夹
|
||||
.idea/
|
||||
|
||||
# draw.io的缓存文件
|
||||
*.bkp
|
1
docs/概要设计书/auto_pilot_bus.drawio
Normal file
1
docs/概要设计书/auto_pilot_bus.drawio
Normal file
|
@ -0,0 +1 @@
|
|||
<mxfile host="Electron" modified="2022-05-12T07:28:58.662Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/18.0.1 Chrome/100.0.4896.143 Electron/18.2.0 Safari/537.36" etag="Ik_97Cbde92uuiPKVPvS" version="18.0.1" type="device"><diagram id="bu9w77FjTZBGwHDWVuck" name="第 1 页">7VhNc5swEP01HJsBhGl8bGy3PbQznTozbU8d1WxAGYGIELHpr68UVgbZ8UfGTsK0PVn7tJKW95ZnDR6Z5KsPkpbZZ5EA90I/WXlk6oVh4JNL/WOQpkXiKGiBVLKkhfwOmLPfYFciWrMEKsRaSAnBFStdcCGKAhbKwaiUYumm3QieOEBJU3DKMMB8QTlspX1jicoQjf1e+kdgaYZHj+1ETm0yAlVGE7HsQWTmkYkUQrWjfDUBbshzeXm/Y3ZdmIRCHbPg+maS1mnz9Srnd9nsdppW8vpNjLWpxj4wJPr5MRRSZSIVBeWzDr2Soi4SMLv6OupyPglRajDQ4C0o1aCYtFZCQ5nKOc7qgmXz3ay/GNnwB273EExXTtRg1NZqCtxJAUKVqOUC9jy3bSUqU1B78sK1ULrDQeSg69HrJHCq2L1bB8VWS9d5uPSdlLTpJZSCFarq7fzFADoB3xoSj9sd8Z0JI0dZPWh3tFGvtA56UP8JnXD5vxP2dgI5sRN66j1dHNz3nvIaT/LCmCtDphmlZpRTVlwsLK6P6aa2pO2EMyosM6ZgXtIHnpbax12R8GyQClb76d6mBxdE0UZHW3tf9jzVGmXWs9PYfy5Gw3+038/iaFuWFbx1BY7CDeHa9wtXbWh3BvcKxq8h57llOcKGAv9E/U56a9Z3mb+e5h1+9kI077Z7Yj1dX3iVFJyDdE2fDMb0SeB6AgkfMX3/EdMfPZfpkyN4/VVXP5kYKqexPzROx0dweleDbIZKaRDs+Ot6NUrt5ehQnw6VURJGBxkdvyihe+7Pa9okZXyojI78wz16JkZ12H2TaK9n3ZcdMvsD</diagram></mxfile>
|
BIN
docs/概要设计书/模块结构图.png
Normal file
BIN
docs/概要设计书/模块结构图.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -35,18 +35,15 @@ rail_node_t* ReadConfigFile();
|
|||
|
||||
/**
|
||||
* 读取标准输入流中的输入
|
||||
* @param up_queries 上车的请求队列
|
||||
* @param down_queries 下车的请求队列
|
||||
* @param inputString 输入的字符串
|
||||
* @return 当前读取的状态
|
||||
*/
|
||||
read_state_t ReadInput(up_bus_t* up_queries, down_bus_t* down_queries);
|
||||
read_state_t ReadInput(char* inputString);
|
||||
|
||||
/**
|
||||
* 打印当前的状态
|
||||
* @param up_queries 上车的请求队列
|
||||
* @param down_queries 下车的请求队列
|
||||
* @param rails 轨道链表
|
||||
*/
|
||||
void PrintState(up_bus_t* up_queries, down_bus_t* down_queries, rail_node_t* rails);
|
||||
void PrintState();
|
||||
|
||||
#endif //AUTO_PILOT_BUS_BUS_IO_H
|
||||
|
|
|
@ -43,7 +43,14 @@ typedef struct up_bus up_bus_t;
|
|||
*/
|
||||
typedef struct down_bus down_bus_t;
|
||||
|
||||
/**
|
||||
* 全局的上车请求链表头节点地址,也就是当前未处理的首个请求
|
||||
*/
|
||||
extern up_bus_t *up_queries;
|
||||
|
||||
/**
|
||||
* 全局的下车请求链表头节点地址,也就是当前未处理的首个请求
|
||||
*/
|
||||
extern down_bus_t *down_queries;
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,6 +29,9 @@ struct {
|
|||
*/
|
||||
typedef struct rail_node rail_node_t;
|
||||
|
||||
/**
|
||||
* 全局的轨道链表头节点,也就是第一个公交站
|
||||
*/
|
||||
extern rail_node_t* rails;
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,10 +3,15 @@
|
|||
//
|
||||
#include "gtest/gtest.h"
|
||||
#include "gmock/gmock.h"
|
||||
// 在C++中引用C语言中的函数
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "rail.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
using ::testing::Return;
|
||||
using ::testing::AtLeast;
|
||||
|
|
Loading…
Reference in New Issue
Block a user