auto_bus/include/busModel.h

55 lines
828 B
C
Raw Normal View History

2022-06-11 19:05:06 +08:00
//
// Created by ricardo on 2022/6/10.
//
#ifndef AUTO_BUS_GUI_BUS_MODEL_H
#define AUTO_BUS_GUI_BUS_MODEL_H
#include "railsModel.h"
#include "queryModel.h"
#include "define.h"
#include "string"
#include "sstream"
class BusControllerModel
{
public:
/**
*
*/
rail_node_t *rail_pos;
/**
*
*/
int distance;
/**
*
*/
RailsModel *rail_manager;
/**
*
*/
QueryModel *query_manager;
/**
*
*/
BusControllerModel(RailsModel *railsModel, QueryModel *queryModel);
/**
*
*/
~BusControllerModel();
std::string PrintState();
private:
int GetBusPosition() const;
};
#endif //AUTO_BUS_GUI_BUS_MODEL_H