1 //===-- MICmnLLDBProxySBValue.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 #pragma once 11 12 // Third Party Headers: 13 #include "lldb/API/SBValue.h" 14 15 // In-house headers: 16 #include "MIDataTypes.h" 17 18 // Declarations: 19 class CMIUtilString; 20 21 //++ 22 //============================================================================ 23 // Details: MI proxy wrapper class to lldb::SBValue. The class provides 24 // functionality 25 // to assist in the use of SBValue's particular function usage. 26 //-- 27 class CMICmnLLDBProxySBValue { 28 // Statics: 29 public: 30 static bool GetValueAsSigned(const lldb::SBValue &vrValue, MIint64 &vwValue); 31 static bool GetValueAsUnsigned(const lldb::SBValue &vrValue, 32 MIuint64 &vwValue); 33 static bool GetCString(const lldb::SBValue &vrValue, 34 CMIUtilString &vwCString); 35 }; 36