CommandObjectMultiword.h [plain text]
#ifndef liblldb_CommandObjectMultiword_h_
#define liblldb_CommandObjectMultiword_h_
#include <map>
#include "lldb/Interpreter/CommandObject.h"
namespace lldb_private {
class CommandObjectMultiword : public CommandObject
{
public:
CommandObjectMultiword (CommandInterpreter &interpreter,
const char *name,
const char *help = NULL,
const char *syntax = NULL,
uint32_t flags = 0);
virtual
~CommandObjectMultiword ();
virtual bool
IsMultiwordObject () { return true; }
bool
LoadSubCommand (const char *cmd_name,
const lldb::CommandObjectSP& command_obj);
void
GenerateHelpText (CommandReturnObject &result);
lldb::CommandObjectSP
GetSubcommandSP (const char *sub_cmd, StringList *matches = NULL);
CommandObject *
GetSubcommandObject (const char *sub_cmd, StringList *matches = NULL);
virtual bool
Execute (Args& command,
CommandReturnObject &result);
virtual int
HandleCompletion (Args &input,
int &cursor_index,
int &cursor_char_position,
int match_start_point,
int max_return_elements,
bool &word_complete,
StringList &matches);
virtual const char *GetRepeatCommand (Args ¤t_command_args, uint32_t index);
CommandObject::CommandMap m_subcommand_dict;
};
}
#endif // liblldb_CommandObjectMultiword_h_