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