blob: 70f73f041d85decdc70decdaff3fa472dd3e2364 [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
Greg Clayton238c0a12010-09-18 01:14:36 +000050 CommandObjectArgs (CommandInterpreter &interpreter);
Chris Lattner24943d22010-06-08 16:52:24 +000051
52 virtual
53 ~CommandObjectArgs ();
54
55 virtual
56 Options *
57 GetOptions ();
58
59
60 virtual bool
Greg Clayton238c0a12010-09-18 01:14:36 +000061 Execute ( Args& command,
Chris Lattner24943d22010-06-08 16:52:24 +000062 CommandReturnObject &result);
63
64 virtual bool
65 WantsRawCommandString() { return false; }
66
67 protected:
68
69 CommandOptions m_options;
70 };
71
72} // namespace lldb_private
73
74#endif // liblldb_CommandObjectArgs_h_