blob: 6cd09c4465e1e95415f5b1740af831af92a8ec38 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- CommandObjectCall.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_CommandObjectCall_h_
11#define liblldb_CommandObjectCall_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
23class CommandObjectCall : public CommandObject
24{
25public:
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 Language language;
49 lldb::Encoding encoding;
50 lldb::Format format;
51 bool debug;
52 bool show_types;
53 bool show_summary;
54 bool noexecute;
55 bool use_abi;
56 };
57
58 CommandObjectCall ();
59
60 virtual
61 ~CommandObjectCall ();
62
63 virtual
64 Options *
65 GetOptions ();
66
67
68 virtual bool
69 Execute (Args& command,
70 CommandContext *context,
71 CommandInterpreter *interpreter,
72 CommandReturnObject &result);
73
74 virtual bool
75 WantsRawCommandString() { return false; }
76
77protected:
78
79 CommandOptions m_options;
80};
81
82} // namespace lldb_private
83
84#endif // liblldb_CommandObjectCall_h_