Files
baidu_fanyi/bf.interface.h
2026-03-10 11:51:02 +08:00

24 lines
522 B
C++

#ifndef BF_INTERFACE_H
#define BF_INTERFACE_H
#include <string>
#include "bf.config.h"
#include "bf.util.h"
class BF_Interface
{
public:
BF_Interface() = default;
virtual ~BF_Interface();
public:
void setConfig(std::shared_ptr<BF_Config> config);
virtual std::string doReady(const std::string& words, const std::string& from, const std::string& to) = 0;
virtual std::string getResult(const std::string& data) = 0;
protected:
std::shared_ptr<BF_Config> config_{};
};
#endif // BF_INTERFACE_H