-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathengine.h
44 lines (35 loc) · 787 Bytes
/
engine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef ENGINE_H
#define ENGINE_H
#include "scan.h"
#include "compiler.h"
#include "error.h"
#include <string>
namespace amps
{
class engine
{
std::string path_;
std::string result_;
error &error_;
scan scanner_;
compiler compiler_;
public:
engine(error &err);
~engine();
void set_template_directory(const std::string &path);
void prepare_template(const std::string &name);
bool compile(const user_map &um);
std::string render(const user_map &um);
/*
const error &get_error() const
{
return error_;
}
const std::string &get_result() const
{
return result_;
}
*/
};
}
#endif // ENGINE_H