auto_bus/include/bus_io.h
jackfiled 3b6d7933a7 添加了求与请求距离的函数
添加了表示整个轨道长度的全局变量
2022-06-03 21:28:52 +08:00

39 lines
774 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Created by ricardo on 2022/5/6.
//
#ifndef AUTO_PILOT_BUS_BUS_IO_H
#define AUTO_PILOT_BUS_BUS_IO_H
#include "rail.h"
#include "query.h"
#include "define.h"
#include "controller.h"
#include "string.h"
#include "stdio.h"
/**
* 读取配置文件,创建轨道链表,同时读取需要使用的策略
* @return 指向轨道链表的指针
*/
rail_node_t* ReadConfigFile();
/**
* 读取标准输入流中的输入
* @param inputString 输入的字符串
* @return 当前读取的状态
*/
int ReadInput(char* inputString);
/**
* 打印当前的状态
*/
void PrintState();
/**
* 打印当前状态的函数供all_test使用在oj上有问题
* @param str 需要打印的内容
*/
void PrintStateInner(char *str);
#endif //AUTO_PILOT_BUS_BUS_IO_H