2010-06-09 00:52:24 +08:00
|
|
|
//===-- CommandObjectArgs.h -------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef liblldb_CommandObjectArgs_h_
|
|
|
|
#define liblldb_CommandObjectArgs_h_
|
|
|
|
|
|
|
|
// C Includes
|
|
|
|
// C++ Includes
|
|
|
|
// Other libraries and framework includes
|
|
|
|
// Project includes
|
|
|
|
#include "lldb/Interpreter/CommandObject.h"
|
2010-06-16 03:49:27 +08:00
|
|
|
#include "lldb/Interpreter/Options.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
#include "lldb/Core/Language.h"
|
|
|
|
|
|
|
|
namespace lldb_private {
|
|
|
|
|
2012-06-09 05:56:10 +08:00
|
|
|
class CommandObjectArgs : public CommandObjectParsed
|
2010-06-09 00:52:24 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
class CommandOptions : public Options
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2011-04-08 06:46:35 +08:00
|
|
|
CommandOptions (CommandInterpreter &interpreter);
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
virtual
|
|
|
|
~CommandOptions ();
|
|
|
|
|
|
|
|
virtual Error
|
2011-04-13 08:18:08 +08:00
|
|
|
SetOptionValue (uint32_t option_idx, const char *option_arg);
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
void
|
2011-04-13 08:18:08 +08:00
|
|
|
OptionParsingStarting ();
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2011-03-25 05:19:54 +08:00
|
|
|
const OptionDefinition*
|
2010-06-09 00:52:24 +08:00
|
|
|
GetDefinitions ();
|
|
|
|
|
|
|
|
// Options table: Required for subclasses of Options.
|
|
|
|
|
2011-03-25 05:19:54 +08:00
|
|
|
static OptionDefinition g_option_table[];
|
2010-06-09 00:52:24 +08:00
|
|
|
};
|
|
|
|
|
2010-09-18 09:14:36 +08:00
|
|
|
CommandObjectArgs (CommandInterpreter &interpreter);
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
virtual
|
|
|
|
~CommandObjectArgs ();
|
|
|
|
|
|
|
|
virtual
|
|
|
|
Options *
|
|
|
|
GetOptions ();
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
CommandOptions m_options;
|
2012-06-09 05:56:10 +08:00
|
|
|
|
|
|
|
virtual bool
|
|
|
|
DoExecute ( Args& command,
|
|
|
|
CommandReturnObject &result);
|
|
|
|
|
2010-06-09 00:52:24 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lldb_private
|
|
|
|
|
|
|
|
#endif // liblldb_CommandObjectArgs_h_
|