1//===-- SWIG Interface for SBTypeSynthetic-------------------------*- 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 10namespace lldb { 11 12 %feature("docstring", 13 "Represents a summary that can be associated to one or more types. 14 ") SBTypeSynthetic; 15 16 class SBTypeSynthetic 17 { 18 public: 19 20 SBTypeSynthetic(); 21 22 static lldb::SBTypeSynthetic 23 CreateWithClassName (const char* data, uint32_t options = 0); 24 25 static lldb::SBTypeSynthetic 26 CreateWithScriptCode (const char* data, uint32_t options = 0); 27 28 SBTypeSynthetic (const lldb::SBTypeSynthetic &rhs); 29 30 ~SBTypeSynthetic (); 31 32 bool 33 IsValid() const; 34 35 bool 36 IsEqualTo (lldb::SBTypeSynthetic &rhs); 37 38 bool 39 IsClassCode(); 40 41 const char* 42 GetData (); 43 44 void 45 SetClassName (const char* data); 46 47 void 48 SetClassCode (const char* data); 49 50 uint32_t 51 GetOptions (); 52 53 void 54 SetOptions (uint32_t); 55 56 bool 57 GetDescription (lldb::SBStream &description, 58 lldb::DescriptionLevel description_level); 59 60 bool 61 operator == (lldb::SBTypeSynthetic &rhs); 62 63 bool 64 operator != (lldb::SBTypeSynthetic &rhs); 65 66 %pythoncode %{ 67 __swig_getmethods__["options"] = GetOptions 68 __swig_setmethods__["options"] = SetOptions 69 if _newclass: options = property(GetOptions, SetOptions) 70 71 __swig_getmethods__["contains_code"] = IsClassCode 72 if _newclass: contains_code = property(IsClassCode, None) 73 74 __swig_getmethods__["synthetic_data"] = GetData 75 if _newclass: synthetic_data = property(GetData, None) 76 %} 77 78 }; 79 80} // namespace lldb 81