blob: 5a73460e361a403c3e60fdc0eccbb690aeb5b9ea [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- CommandObjectArgs.h -------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef liblldb_CommandObjectArgs_h_
11#define liblldb_CommandObjectArgs_h_
12
13// C Includes
14// C++ Includes
15// Other libraries and framework includes
16// Project includes
17#include "lldb/Interpreter/CommandObject.h"
Jim Ingham84cdc152010-06-15 19:49:27 +000018#include "lldb/Interpreter/Options.h"
Chris Lattner24943d22010-06-08 16:52:24 +000019#include "lldb/Core/Language.h"
20
21namespace lldb_private {
22
23 class CommandObjectArgs : public CommandObject
24 {
25 public:
26
27 class CommandOptions : public Options
28 {
29 public:
30
31 CommandOptions ();
32
33 virtual
34 ~CommandOptions ();
35
36 virtual Error
37 SetOptionValue (int option_idx, const char *option_arg);
38
39 void
40 ResetOptionValues ();
41
42 const lldb::OptionDefinition*
43 GetDefinitions ();
44
45 // Options table: Required for subclasses of Options.
46
47 static lldb::OptionDefinition g_option_table[];
48 };
49
50 CommandObjectArgs ();
51
52 virtual
53 ~CommandObjectArgs ();
54
55 virtual
56 Options *
57 GetOptions ();
58
59
60 virtual bool
Greg Clayton63094e02010-06-23 01:19:29 +000061 Execute (CommandInterpreter &interpreter,
62 Args& command,
Chris Lattner24943d22010-06-08 16:52:24 +000063 CommandReturnObject &result);
64
65 virtual bool
66 WantsRawCommandString() { return false; }
67
68 protected:
69
70 CommandOptions m_options;
71 };
72
73} // namespace lldb_private
74
75#endif // liblldb_CommandObjectArgs_h_