]> git.siccegge.de Git - frida/frida.git/blob - src/bindings/Interpreter.hxx
PoC: Add menu item to load script
[frida/frida.git] / src / bindings / Interpreter.hxx
1 #ifndef INCLUDE__Interpreter_hxx_
2 #define INCLUDE__Interpreter_hxx_
3
4 #include <string>
5 #include <sstream>
6
7 class Interpreter {
8 public:
9 virtual int evaluate(const std::string& command,
10 std::ostream& stdout,
11 std::ostream& stderr,
12 std::string& result) = 0;
13
14 virtual int loadFile(const std::string& filename,
15 std::ostream& stdout,
16 std::ostream& stderr,
17 std::string& result) = 0;
18
19 virtual std::string fileExtension() const = 0;
20 private:
21 };
22
23 #endif /* INCLUDE__Interpreter_hxx_ */