blob: 997d289c1d3655505731b4c270c31838b007ef6a [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
61 Execute (Args& command,
62 CommandContext *context,
63 CommandInterpreter *interpreter,
64 CommandReturnObject &result);
65
66 virtual bool
67 WantsRawCommandString() { return false; }
68
69 protected:
70
71 CommandOptions m_options;
72 };
73
74} // namespace lldb_private
75
76#endif // liblldb_CommandObjectArgs_h_