blob: d74f7b156fd5e090ad501df12196e88947a9c689 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- CommandObjectScript.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_CommandObjectScript_h_
11#define liblldb_CommandObjectScript_h_
12
13// C Includes
14// C++ Includes
15// Other libraries and framework includes
16// Project includes
17#include "lldb/Interpreter/CommandObject.h"
18
19namespace lldb_private {
20
21//-------------------------------------------------------------------------
22// CommandObjectScript
23//-------------------------------------------------------------------------
24
25class CommandObjectScript : public CommandObject
26{
27public:
28
29 CommandObjectScript (lldb::ScriptLanguage script_lang);
30
31 virtual
32 ~CommandObjectScript ();
33
34 bool WantsRawCommandString();
35
36 virtual bool
Greg Clayton63094e02010-06-23 01:19:29 +000037 ExecuteRawCommandString (CommandInterpreter &interpreter,
38 const char *command,
39 CommandReturnObject &result);
Chris Lattner24943d22010-06-08 16:52:24 +000040
41 virtual bool
Greg Clayton63094e02010-06-23 01:19:29 +000042 Execute (CommandInterpreter &interpreter,
43 Args& command,
Chris Lattner24943d22010-06-08 16:52:24 +000044 CommandReturnObject &result);
45
46 ScriptInterpreter *
Greg Clayton63094e02010-06-23 01:19:29 +000047 GetInterpreter (CommandInterpreter &interpreter);
Chris Lattner24943d22010-06-08 16:52:24 +000048
49private:
50 lldb::ScriptLanguage m_script_lang;
51 std::auto_ptr<ScriptInterpreter> m_interpreter_ap;
52};
53
54} // namespace lldb_private
55
56#endif // liblldb_CommandObjectScript_h_