blob: eacd3a6b3ead821d5b8a018312a898144ab68283 [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
Greg Clayton238c0a12010-09-18 01:14:36 +000029 CommandObjectScript (CommandInterpreter &interpreter,
30 lldb::ScriptLanguage script_lang);
Chris Lattner24943d22010-06-08 16:52:24 +000031
32 virtual
33 ~CommandObjectScript ();
34
35 bool WantsRawCommandString();
36
37 virtual bool
Greg Clayton238c0a12010-09-18 01:14:36 +000038 ExecuteRawCommandString (const char *command,
Greg Clayton63094e02010-06-23 01:19:29 +000039 CommandReturnObject &result);
Chris Lattner24943d22010-06-08 16:52:24 +000040
41 virtual bool
Greg Clayton238c0a12010-09-18 01:14:36 +000042 Execute (Args& command,
Chris Lattner24943d22010-06-08 16:52:24 +000043 CommandReturnObject &result);
44
45 ScriptInterpreter *
Greg Clayton238c0a12010-09-18 01:14:36 +000046 GetInterpreter ();
Chris Lattner24943d22010-06-08 16:52:24 +000047
48private:
49 lldb::ScriptLanguage m_script_lang;
50 std::auto_ptr<ScriptInterpreter> m_interpreter_ap;
51};
52
53} // namespace lldb_private
54
55#endif // liblldb_CommandObjectScript_h_