CommandObjectPythonFunction.h [plain text]
#ifndef liblldb_CommandObjectPythonFunction_h_
#define liblldb_CommandObjectPythonFunction_h_
#include "lldb/Interpreter/CommandObject.h"
namespace lldb_private {
class CommandObjectPythonFunction : public CommandObject
{
private:
std::string m_function_name;
public:
CommandObjectPythonFunction (CommandInterpreter &interpreter,
std::string name,
std::string funct);
virtual
~CommandObjectPythonFunction ();
virtual bool
ExecuteRawCommandString (const char *raw_command_line, CommandReturnObject &result);
virtual bool
WantsRawCommandString ()
{
return true;
}
bool
Execute (Args& command,
CommandReturnObject &result)
{
std::string cmd_string;
command.GetCommandString(cmd_string);
return ExecuteRawCommandString(cmd_string.c_str(), result);
}
};
}
#endif // liblldb_CommandObjectPythonFunction_h_