2016-02-07 03:48:40 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-02-11 06:34:49 +08:00
|
|
|
#include "query_engine/query_result.hpp"
|
2016-02-07 03:48:40 +08:00
|
|
|
#include "database/db.hpp"
|
|
|
|
|
|
|
|
class ICodeCPU
|
|
|
|
{
|
|
|
|
public:
|
2016-02-11 06:34:49 +08:00
|
|
|
virtual QueryResult::sptr run(Db& db) = 0;
|
2016-02-07 03:48:40 +08:00
|
|
|
virtual ~ICodeCPU() {}
|
|
|
|
};
|
|
|
|
|
2016-02-11 06:34:49 +08:00
|
|
|
using produce_t = ICodeCPU*(*)();
|
|
|
|
using destruct_t = void (*)(ICodeCPU*);
|