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"
|
2022-05-20 08:52:58 +08:00
|
|
|
|
#include "define.h"
|
2022-05-20 11:18:12 +08:00
|
|
|
|
#include "controller.h"
|
2022-05-20 08:52:58 +08:00
|
|
|
|
#include "string.h"
|
|
|
|
|
#include "stdio.h"
|
2022-05-06 11:55:30 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 读取配置文件,创建轨道链表,同时读取需要使用的策略
|
|
|
|
|
* @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
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 打印当前的状态
|
|
|
|
|
*/
|
2022-06-03 12:41:44 +08:00
|
|
|
|
void PrintState();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 打印当前状态的函数,供all_test使用,在oj上有问题
|
|
|
|
|
* @param str 需要打印的内容
|
|
|
|
|
*/
|
|
|
|
|
void PrintStateInner(char *str);
|
2022-05-06 11:55:30 +08:00
|
|
|
|
|
2022-05-08 11:48:04 +08:00
|
|
|
|
#endif //AUTO_PILOT_BUS_BUS_IO_H
|