基本通信测试通过。
This commit is contained in:
24
bf.interface.h
Normal file
24
bf.interface.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user