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