3 This file is part of gldbg
4 Copyright © 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
8 #ifndef COMMANDINTERPRETER_H_
9 #define COMMANDINTERPRETER_H_
16 class CommandInterpreter
21 typedef void (CommandInterpreter::*Func)(const std::string &);
24 std::string description;
28 Command(Func, const std::string &);
29 Command(Func, const std::string &, const std::string &);
32 typedef std::map<std::string, Command> CommandMap;
38 CommandInterpreter(GlDbg &);
39 void execute(const std::string &);
42 void cmd_help(const std::string &);
43 void cmd_run(const std::string &);
44 void cmd_continue(const std::string &);
45 void cmd_signal(const std::string &);
46 void cmd_kill(const std::string &);
47 void cmd_exit(const std::string &);
48 void cmd_trace(const std::string &);
49 void cmd_state(const std::string &);
50 void cmd_texture(const std::string &);
51 void cmd_buffer(const std::string &);