-/* $Id$
-
-This file is part of gldbg
-Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the GPL
-*/
-
#ifndef COMMANDINTERPRETER_H_
#define COMMANDINTERPRETER_H_
protected:
Command() { }
-
public:
+ virtual ~Command() { }
+
void set_help(const std::string &);
void set_help(const std::string &, const std::string &);
const std::string &get_description() const { return description; }
public:
CommandInterpreter(GlDbg &);
+ ~CommandInterpreter();
template<typename T>
Command ®ister_command(const std::string &n, T *o, void (T::*f)(const std::string &))
private:
void cmd_help(const std::string &);
void cmd_run(const std::string &);
+ void cmd_break(const std::string &);
+ void cmd_unbreak(const std::string &);
+ void cmd_next(const std::string &);
+ void cmd_finish(const std::string &);
void cmd_continue(const std::string &);
void cmd_signal(const std::string &);
void cmd_kill(const std::string &);