Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | //===-- 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 | |
| 19 | namespace lldb_private { |
| 20 | |
| 21 | //------------------------------------------------------------------------- |
| 22 | // CommandObjectScript |
| 23 | //------------------------------------------------------------------------- |
| 24 | |
| 25 | class CommandObjectScript : public CommandObject |
| 26 | { |
| 27 | public: |
| 28 | |
Greg Clayton | 238c0a1 | 2010-09-18 01:14:36 +0000 | [diff] [blame] | 29 | CommandObjectScript (CommandInterpreter &interpreter, |
| 30 | lldb::ScriptLanguage script_lang); |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 31 | |
| 32 | virtual |
| 33 | ~CommandObjectScript (); |
| 34 | |
| 35 | bool WantsRawCommandString(); |
| 36 | |
| 37 | virtual bool |
Greg Clayton | 238c0a1 | 2010-09-18 01:14:36 +0000 | [diff] [blame] | 38 | ExecuteRawCommandString (const char *command, |
Greg Clayton | 63094e0 | 2010-06-23 01:19:29 +0000 | [diff] [blame] | 39 | CommandReturnObject &result); |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 40 | |
| 41 | virtual bool |
Greg Clayton | 238c0a1 | 2010-09-18 01:14:36 +0000 | [diff] [blame] | 42 | Execute (Args& command, |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 43 | CommandReturnObject &result); |
| 44 | |
| 45 | ScriptInterpreter * |
Greg Clayton | 238c0a1 | 2010-09-18 01:14:36 +0000 | [diff] [blame] | 46 | GetInterpreter (); |
Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 47 | |
| 48 | private: |
| 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_ |