]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - scripts/interface/SBTypeSummary.i
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / scripts / interface / SBTypeSummary.i
1 //===-- SWIG Interface for SBTypeSummary---------------------------*- 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     class SBTypeSummaryOptions
12     {
13     public:
14         SBTypeSummaryOptions();
15         
16         SBTypeSummaryOptions (const lldb::SBTypeSummaryOptions &rhs);
17         
18         ~SBTypeSummaryOptions ();
19         
20         bool
21         IsValid ();
22         
23         lldb::LanguageType
24         GetLanguage ();
25         
26         lldb::TypeSummaryCapping
27         GetCapping ();
28         
29         void
30         SetLanguage (lldb::LanguageType);
31         
32         void
33         SetCapping (lldb::TypeSummaryCapping);
34     };
35
36     %feature("docstring",
37     "Represents a summary that can be associated to one or more types.
38     ") SBTypeSummary;
39     
40     class SBTypeSummary
41     {
42     public:
43         
44         SBTypeSummary();
45         
46         static SBTypeSummary
47         CreateWithSummaryString (const char* data, uint32_t options = 0);
48         
49         static SBTypeSummary
50         CreateWithFunctionName (const char* data, uint32_t options = 0);
51         
52         static SBTypeSummary
53         CreateWithScriptCode (const char* data, uint32_t options = 0);
54         
55         SBTypeSummary (const lldb::SBTypeSummary &rhs);
56         
57         ~SBTypeSummary ();
58         
59         bool
60         IsValid() const;
61         
62         bool
63         IsEqualTo (lldb::SBTypeSummary &rhs);
64         
65         bool
66         IsFunctionCode();
67         
68         bool
69         IsFunctionName();
70         
71         bool
72         IsSummaryString();
73         
74         const char*
75         GetData ();
76         
77         void
78         SetSummaryString (const char* data);
79         
80         void
81         SetFunctionName (const char* data);
82         
83         void
84         SetFunctionCode (const char* data);
85         
86         uint32_t
87         GetOptions ();
88
89         void
90         SetOptions (uint32_t);
91         
92         bool
93         GetDescription (lldb::SBStream &description, 
94                         lldb::DescriptionLevel description_level);
95         
96         bool
97         operator == (lldb::SBTypeSummary &rhs);
98         
99         bool
100         operator != (lldb::SBTypeSummary &rhs);
101         
102         %pythoncode %{
103             __swig_getmethods__["options"] = GetOptions
104             __swig_setmethods__["options"] = SetOptions
105             if _newclass: options = property(GetOptions, SetOptions)
106             
107             __swig_getmethods__["is_summary_string"] = IsSummaryString
108             if _newclass: is_summary_string = property(IsSummaryString, None)
109
110             __swig_getmethods__["is_function_name"] = IsFunctionName
111             if _newclass: is_function_name = property(IsFunctionName, None)
112
113             __swig_getmethods__["is_function_name"] = IsFunctionCode
114             if _newclass: is_function_name = property(IsFunctionCode, None)
115
116             __swig_getmethods__["summary_data"] = GetData
117             if _newclass: summary_data = property(GetData, None)
118         %}
119         
120     };
121
122 } // namespace lldb
123