auto_bus/include/queryModel.h

56 lines
915 B
C
Raw Permalink Normal View History

//
// Created by ricardo on 2022/6/10.
//
2022-06-11 19:04:47 +08:00
#ifndef AUTO_BUS_GUI_QUERY_MODEL_H
#define AUTO_BUS_GUI_QUERY_MODEL_H
#include "railsModel.h"
struct bus_query {
/**
*
*/
int time;
2022-06-29 17:25:33 +08:00
/**
*
*/
int type;
2022-06-29 17:25:33 +08:00
/**
* /
*/
rail_node_t *node;
2022-06-29 17:25:33 +08:00
/**
*
*/
struct bus_query *next_node;
};
typedef struct bus_query bus_query_t;
class QueryModel
{
public:
bus_query_t *queries = nullptr;
~QueryModel();
/**
*
* @param type
* @param node
*/
void CreateQuery(int type, rail_node_t *node);
/**
*
* @param target_query
*/
void DeleteQuery(bus_query_t *target_query);
};
2022-06-11 19:04:47 +08:00
#endif //AUTO_BUS_GUI_QUERY_MODEL_H