]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - scripts/interface/SBTypeFormat.i
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / scripts / interface / SBTypeFormat.i
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 char* type, uint32_t options = 0);
25         
26         SBTypeFormat (const lldb::SBTypeFormat &rhs);
27         
28         ~SBTypeFormat ();
29         
30         bool
31         IsValid() const;
32         
33         bool
34         IsEqualTo (lldb::SBTypeFormat &rhs);
35         
36         lldb::Format
37         GetFormat ();
38         
39         const char*
40         GetTypeName ();
41         
42         uint32_t
43         GetOptions();
44         
45         void
46         SetFormat (lldb::Format);
47         
48         void
49         SetTypeName (const char*);
50         
51         void
52         SetOptions (uint32_t);        
53         
54         bool
55         GetDescription (lldb::SBStream &description, 
56                         lldb::DescriptionLevel description_level);
57         
58         bool
59         operator == (lldb::SBTypeFormat &rhs);
60
61         bool
62         operator != (lldb::SBTypeFormat &rhs);
63         
64         %pythoncode %{
65             __swig_getmethods__["format"] = GetFormat
66             __swig_setmethods__["format"] = SetFormat
67             if _newclass: format = property(GetFormat, SetFormat)
68             
69             __swig_getmethods__["options"] = GetOptions
70             __swig_setmethods__["options"] = SetOptions
71             if _newclass: options = property(GetOptions, SetOptions)            
72         %}
73
74     };
75     
76     
77 } // namespace lldb
78