1 //===-- ScriptInterpreterNone.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_ScriptInterpreterNone_h_ 11 #define liblldb_ScriptInterpreterNone_h_ 12 13 // C Includes 14 // C++ Includes 15 // Other libraries and framework includes 16 // Project includes 17 #include "lldb/Interpreter/ScriptInterpreter.h" 18 19 namespace lldb_private { 20 21 class ScriptInterpreterNone : public ScriptInterpreter { 22 public: 23 ScriptInterpreterNone(CommandInterpreter &interpreter); 24 25 ~ScriptInterpreterNone() override; 26 27 bool ExecuteOneLine( 28 const char *command, CommandReturnObject *result, 29 const ExecuteScriptOptions &options = ExecuteScriptOptions()) override; 30 31 void ExecuteInterpreterLoop() override; 32 33 //------------------------------------------------------------------ 34 // Static Functions 35 //------------------------------------------------------------------ 36 static void Initialize(); 37 38 static void Terminate(); 39 40 static lldb::ScriptInterpreterSP 41 CreateInstance(CommandInterpreter &interpreter); 42 43 static lldb_private::ConstString GetPluginNameStatic(); 44 45 static const char *GetPluginDescriptionStatic(); 46 47 //------------------------------------------------------------------ 48 // PluginInterface protocol 49 //------------------------------------------------------------------ 50 lldb_private::ConstString GetPluginName() override; 51 52 uint32_t GetPluginVersion() override; 53 }; 54 55 } // namespace lldb_private 56 57 #endif // liblldb_ScriptInterpreterNone_h_ 58