26 lines
613 B
C++
26 lines
613 B
C++
#include <ESPAsyncWebServer.h>
|
|
#include "Dictionary.hpp"
|
|
|
|
#ifndef HttpRequestHandler
|
|
#define HttpRequestHandler
|
|
|
|
typedef Dictionary<String, String> StringDictionary;
|
|
typedef Dictionary<String, String (*)(String)> CompilerDictionary;
|
|
|
|
class PageProcessor
|
|
{
|
|
private:
|
|
String ReadFile(String Path);
|
|
|
|
public:
|
|
PageProcessor();
|
|
PageProcessor(String file);
|
|
PageProcessor(String file, Dictionary<String, String> *dataset);
|
|
Dictionary<String, String>* Dataset;
|
|
Dictionary<String, String (*)(String)>* Compilers;
|
|
String Parse(String input);
|
|
String Execute();
|
|
String SourcePath;
|
|
};
|
|
|
|
#endif |