2022-05-06 11:55:30 +08:00
|
|
|
|
//
|
|
|
|
|
// Created by ricardo on 2022/5/6.
|
|
|
|
|
//
|
|
|
|
|
|
2022-05-08 11:48:04 +08:00
|
|
|
|
#ifndef AUTO_PILOT_BUS_BUS_IO_H
|
|
|
|
|
#define AUTO_PILOT_BUS_BUS_IO_H
|
2022-05-06 11:55:30 +08:00
|
|
|
|
#include "rail.h"
|
|
|
|
|
#include "query.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 读取配置文件,创建轨道链表,同时读取需要使用的策略
|
|
|
|
|
* @return 指向轨道链表的指针
|
|
|
|
|
*/
|
|
|
|
|
rail_node_t* ReadConfigFile();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 读取标准输入流中的输入
|
2022-05-12 15:32:45 +08:00
|
|
|
|
* @param inputString 输入的字符串
|
2022-05-06 11:55:30 +08:00
|
|
|
|
* @return 当前读取的状态
|
|
|
|
|
*/
|
2022-05-17 20:22:29 +08:00
|
|
|
|
int ReadInput(char* inputString);
|
2022-05-06 11:55:30 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 打印当前的状态
|
|
|
|
|
* @param rails 轨道链表
|
2022-05-17 20:22:29 +08:00
|
|
|
|
* @return 返回需输出的字符串
|
2022-05-06 11:55:30 +08:00
|
|
|
|
*/
|
2022-05-17 20:22:29 +08:00
|
|
|
|
char* PrintState();
|
2022-05-06 11:55:30 +08:00
|
|
|
|
|
2022-05-08 11:48:04 +08:00
|
|
|
|
#endif //AUTO_PILOT_BUS_BUS_IO_H
|