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;
30 Command(Func, const std::string &);
31 Command(Func, const std::string &, const std::string &);
34 typedef std::map<std::string, Command> CommandMap;
40 CommandInterpreter(GlDbg &);
41 void execute(const std::string &);
44 void cmd_help(const std::string &);
45 void cmd_run(const std::string &);
46 void cmd_continue(const std::string &);
47 void cmd_signal(const std::string &);
48 void cmd_kill(const std::string &);
49 void cmd_exit(const std::string &);
50 void cmd_trace(const std::string &);
51 void cmd_profile(const std::string &);
52 void cmd_state(const std::string &);
53 void cmd_texture(const std::string &);
54 void cmd_buffer(const std::string &);