27 lines
497 B
C++
27 lines
497 B
C++
#ifndef QUERY_HPP
|
|
#define QUERY_HPP
|
|
|
|
#include <string>
|
|
#include <limits>
|
|
#include <iostream>
|
|
|
|
#include "rapidjson/document.h"
|
|
|
|
template <class OUTPUT>
|
|
class Query
|
|
{
|
|
public:
|
|
Query<OUTPUT>(const std::string&);
|
|
Query<OUTPUT>(const std::string&, char*);
|
|
OUTPUT execute(const rapidjson::Document&) const;
|
|
private:
|
|
std::string _query;
|
|
char* _list;
|
|
|
|
bool _bool(const rapidjson::Document&);
|
|
std::string _string(const rapidjson::Document&);
|
|
int _int(const rapidjson::Document&);
|
|
};
|
|
|
|
#endif
|