auto_bus/include/StrategyFactory.h

28 lines
557 B
C
Raw Normal View History

2022-06-27 14:21:07 +08:00
//
// Created by ricardo on 2022/6/27.
//
#ifndef AUTO_BUS_GUI_STRATEGY_FACTORY_H
#define AUTO_BUS_GUI_STRATEGY_FACTORY_H
#include "cstdio"
#include "QByteArray"
#include "BusStrategyBase.h"
#include "BusFCFSStrategy.h"
#include "BusSSTFStrategy.h"
#include "BusSCANStrategy.h"
class StrategyFactory
{
public:
2022-06-29 17:25:33 +08:00
/**
*
* @param file_name
* @return
*/
2022-06-27 14:21:07 +08:00
static BusStrategyBase *GetStrategy(const QString& file_name);
};
#endif //AUTO_BUS_GUI_STRATEGY_FACTORY_H