blob: b9fa759bb7b77b0bcd2d5fe7c61c0c0e4ea22ddb [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
Chris Lattner24943d22010-06-08 16:52:24 +000045private:
46 lldb::ScriptLanguage m_script_lang;
Chris Lattner24943d22010-06-08 16:52:24 +000047};
48
49} // namespace lldb_private
50
51#endif // liblldb_CommandObjectScript_h_